ESP8266

kylehunter
Posts: 1
Joined: Fri Apr 21, 2017 11:20 am

ESP8266

Postby kylehunter » Fri Apr 21, 2017 11:23 am

Hey guys,

Having tons of issues with my first attempts at using this board. I have a lot of experience using arduino's and various microcontrollers, but my current project requires WiFi connectivity. I ordered the esp-12 and have had trouble getting it to be stable at all. I'm using the arduino IDE.

No matter what sketch I use, even if it just a loop printing to serial, it is unbelievably unstable. It will print fine for a while, then non stop exception errors and stack traces. The exception numbers vary each time, usually 0/29/8. It's just super intermittent. It will work fine for 20 minutes and then just spam errors until I reset and re upload my sketch. I notice that it occurs almost every time I reset the board. I started using it just as it came without flashing any new firmware. I thought that it could be the issue, but then I flashed the lasted nodemcu, and there was no change.

I assume it is something with my power setup, since it seems like they are very sensitive, but I think I am doing it right. I'm using this schematic for the board:
Image

A CP2102 Serial cable: https://www.amazon.com/gp/product/B01A0BOGHG/ref=oh_aui_detailpage_o03_s01?ie=UTF8&psc=1

Voltage is regulated with a LD1117V33 voltage regulator, from a 2AMP 5V wall power supply.

I connect the serial cable's 3.3v power to my common power rail, because it doesn't upload without that (I feel like this may be my issue).

I'm really bad at drawing schematics, so here's a picture of my voltage regulator board and the esp board. To upload I bring GPIO0 to low and have reset low and as it starts to upload bring it high. Thanks a lot for any help.

Image

Image

pratik

Re: ESP8266

Postby pratik » Wed Apr 26, 2017 1:36 pm

Breadboarding with the ESP-12 module is not a fun experience. The module needs VERY clean power supply and long ground wires will always cause an issue. Ground loops will cause random resets too.
I would recommend getting a nodeMCU or something, so that you can test your programs first and then implement that on a lone ESP-12 module. That way, less doubt on what is faulty - hardware or software.

Also, please start from example programs for ESP8266, do not attempt to write your own right away. The ESP is not similar to any other platform and might be tough to start with even for ARM veterans.

MLsi
Posts: 4
Joined: Mon May 22, 2017 4:44 am

Re: ESP8266

Postby MLsi » Wed May 24, 2017 10:37 pm

Usually when I have problems power supply, long leads, and allways really, I put a 100nF condensator/capacitor between +3.3V and ground. I may well help here too.

MLsi
Posts: 4
Joined: Mon May 22, 2017 4:44 am

Re: ESP8266

Postby MLsi » Fri May 26, 2017 8:50 pm

Well. There seems to be a capacitor so no problem there. I may well help here too.=It may well help ...

Who is online

Users browsing this forum: No registered users and 3 guests