Sigh...
CHECK the polarity of the wires coming from your power supply. You may have connected the wires the other way around so you have
-12v hence why it heats up.
Read the DATASHEET of the MC34063 and DOUBLE CHECK the pinout of the IC ... the pins of the IC may not be in the same order as the ones in the Spice simulation.
Here's one, for example, but your IC may be made by another company :
http://www.onsemi.com/pub_link/Collateral/MC34063A-D.PDFI check the datasheet of MC34063. It shows the inductance value and circuit sample.
http://www.ti.com/lit/an/slva252b/slva252b.pdf
Inductance value and circuit sample FOR WHAT OUTPUT? What technical specs for the inductor (peak current, frequency etc... there's lots of inductors out there)?
You linked to the application report ... did you actually calculate all the values using the formulas for the BUCK regulator version - because MC34063 works in 3 modes, buck (from high voltage to low) , boost (from low to high) , inverter (from positive to negative)? Are you sure your inductor is suitable (see selecting the right induction section)
-
USB has four wires ... GND , D- , D+ , V
GND is ground, V is 5v .. D- and D+ are for transmitting data.
Normally, the charger has to have some brains and the device tries to talk to the charger and learn how much power the charger can give. BUT, since such chargers are more expensive due to having to use an IC to talk to devices, device manufacturers chose to implement a method of figuring out how much power the charger can provide without using an IC to talk to.
The way this is done is by outputting some voltage on the D- and D+ wires. If D- has 2.7v on it, and D+ has 2v, then an Apple device "learns" that the charger can give it up to 1A ... if D- and D+ both have 2v, then device "learns" the charger can only give 0.5A.
You can generate those voltages from the 5v using simple voltage dividers, two resistors. For example, if you use two resistors of same value, you get half the voltage between the resistors:
V ---- R1 -------x-------R2---------GND
If V = 5v, R1 = R2, then at x you have 2.5v.
So you can use a calculator like the one here to get 2.7v and 2.0v and connect those to D- and D+:
http://www.raltron.com/cust/tools/voltage_divider.aspex 820ohm and 1kohm will get you 2.74v which should be close enough for 2.7v 820ohm and 560ohm should get you 2.029v
Apple for example, sometimes refuses to charge