Products > Embedded Computing

NodeMCU / Arduino / ESP8266 - wont run on its own?

(1/2) > >>

TomS_:
Hi all.

Normally, I work directly with MCUs like PICs etc, but I needed to whip something up that had wifi connectivity, and using an ESP8266 based product and the Arduino IDE seemed to be a good way to do that.

I bought some NodeMCU boards off Amazon, they seem to have a 12E on them.

I have a problem, however, where they just dont seem to "run by themselves". By this I mean:

* When I write code and upload via the Arduino IDE, they will boot and start operating every time
* If I take a board that has had code uploaded to it, and plug it in to a USB power adapter somewhere, it doesnt seem to run

I have an RTC hooked up via I2C which generates a once per minute interrupt which causes the ESP to send off a small amount of data which gets logged on a Raspberry Pi, but I dont see these logs coming in unless I am effectively running it in a development environment.

Does anyone know what is causing this? It kind of defeats the purpose of building something that can then be tucked away and forgotten about, if they are going to need constant attention. :-//

I have sometimes randomly been able to get them to boot, but its very infrequent.

Thanks!

westfw:
The ESP8266 has some requirements for the state of certain pins to cause booting.  I think on a NODEMCU those pins are normally manipulated by the Serial/USB controller, and if it's not in use you may need some pullups or something...https://www.forward.com.au/pfod/ESP8266/GPIOpins/index.html


JackJones:

--- Quote from: westfw on January 10, 2019, 10:05:49 am ---https://www.forward.com.au/pfod/ESP8266/GPIOpins/index.html

--- End quote ---


--- Quote ---How to use
GPIO0, GPIO2 and GPIO15 pins
as Outputs and Inputs on ESP8266 modules
--- End quote ---

Funnily enough, I also usually just use microcontrollers directly but needed something with wifi without a hassle. I bought one of those e-paper driver boards with an ESP-12F built in, and the schematic it has does have pull ups for GPIO0, GPIO2 and GPIO15 which the link mentions. So probably try pullups on those pins?

Edit: Here's a link to the schematic: https://www.waveshare.com/w/upload/7/7e/ESP8266_e-paper.pdf

mauroh:
+1 for westfw statement.

The NodeMCU board have all the needed pullups, and should take care of the boot and upload sequence, but try watching this 2 videos to be sure everything is as you expect.

Troubleshooting NodeMCU (ESP8266) Arduino Uploads


How To: Pick the right pins on the NodeMCU ESP8266 and ESP32


Mauro

TomS_:
Brilliant! Thanks everyone. I will look in to these and report back.  :-+

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version