So, from what I've researched on the internet the esp01 needs about 3.3v to 3.6v and can handle a current of 20ma to 170ma.
for the power source I will be using a 12v 2A AC/DC adapter, this means that i should step down the volt from 12v to about 3.5v and I have done this by using a buck converter.
reducing the voltage using the buck converter increases the current and, in this case, the current has increase from 2A to about 4A after stepping down the voltage. So, in order to reduce the current to about 160ma I have used a 22ohm resistor
the image below shows how I have wired up the circuit.
Now for the problem (YAYYY!!).
the red light on the esp01 indicates whether the esp01 is powered up but when I power up the circuit the red light on the esp01 just flashes for about half a second and goes off
meaning the esp01 is not powered. I checked the power on the whole circuit using a multimeter and all the readings seem fine