I have a circuit as below details and I facing a weird connection behaviour from my esp8266
- I have an esp8266 chip like this one with an adapter
- Connected to AMS1117 with 5v/1amp as input
- 1000uf connected to the AMS1117 between GND and the Vout
- AMS1117 Vout –> to esp8266 VCC
- AMS117 GND –> to esp8266 GND
I also have a common cathode 3 RGB LEDs connected in parallel, each of which connect to a transistor to control its colour.
Transistor for Red –> esp GPIO 12
Transistor for Green–> esp GPIO 13
Transistor for Blue –> esp GPIO 14
- On the first minutes after turn on, I could connect to my esp8266 with no problem even when I try to ping its IP I got about 30% packet loss. but I could send a hex colour code on the URL and my code on the esp8266 convert it to RGB and turn led one with that colour
- after little minutes, I lost the connection at all and got 100% packet loss
I don’t know what is the issue I changed my power source from one offer 5v up to 450mApm to this one with 1Amp to have a sufficient current as I thought the issue is with the power but nothing changed!
Hello, based on that information I’m not sure… What do you see in the Arduino IDE serial monitor?
Hello Rui, Actually this happens when I installed it so it now no longer connected to pc only powering.
I’ll try to connect an FTDI to it and see what is the issue, I just ask as if I miss something in power the esp8266
Are you powering the ESP8266 with 5v? If you did t hat, you probably already fried your board.
If you’re using an ESP-12E bare chip, you need to provide only 3.3V. The ESP should only a maximum of 150-mA to 200mA while performing a Wi-Fi task.
Sure, I’m not using direct 5v.
I’m using AMS1117 as voltage regulator from 5v to 3.3v
Oh, I see! By mistake I thought you’ve mentioned the DHT22 (also known as AM2302). I’m not sure then, it might be something with your code that crashes the ESP8266 after X number of seconds. It doesn’t look like a power issue to me…
Try see what happens in the Arduino IDE serial monitor…