Bough these on Amazon to enable me to drop 5V from a USB power supply down to 3.3V:
It uses a AMS1117 chip on it, I assumed this would be just a matter of putting the 5V from usb into the Vin and from Vout i would have 3.3V that i could use to power a ESP-01
However i must be doing something wrong as i am not getting anything close to 3.3v on the Vout and also when connected the power coming from USB also seems to drop.
Can only assume i need something else but am not sure what.
Be gentle am a developer so out of my comfort zone a bit.
I have plugged in a 9v battery and get a steady 3.3v on the Vout.
So the next question is what is the problem with using an old USB cable from a 5v phone charger connected either into the wall or via a PC? On the multi-meter i can see i am getting 5v but as soon as connected to the voltage regulator the voltage drops.
Is there some clever circuity going on within the USB cable or socket?
What current output is the phone charger rated for? Maybe it cannot deliver enough current and the voltage collapses below the AMS1117 working voltage.
I have plugged in a 9v battery and get a steady 3.3v on the Vout.
If your battery was connected to one of your AMS1117 modules and it works but does not work using 5V from USB then you should suspect the USB cable (or something else) is dipping the voltage below the AMS1117 working voltage or the chips are out of specification.
timuk:
I have tried a few different ones now but all with the range output of 5V at 2A which i would have assumed would be plenty for what i am doing.
Only with a suitable USB cable - standard USB cables can drop voltage even at 0.5A even due to the wires being very thin. Its pretty common to only see 4.75V or so in practice through a USB cable
Since the 1117 regulator needs a large drop-out voltage (about 1.5V) this will matter much more than with
a really low-drop out regulator.
What current are you drawing? What input and output voltages do you see from the 1117 module?
Thanks everyone for your help, it looks like the 3 cables i was testing with are some sort of cheap ones. Tried a nice new one and 3.3V straight out the voltage regulator.