Questions tagged [nodemcu]

NodeMCU is an open-source firmware that offers a Lua API for ESP8266, ESP8285, and ESP32. There is also a ESP8266 devkit with the same name. However, questions here should relate to writing Lua code on top of the firmware. Also if you need help understanding the NodeMCU API SO is the right place. Issues with firmware development are best addressed on GitHub. Hardware or general questions can be asked on esp8266.com.

The NodeMCU project is a Lua based firmware that runs directly on ESP8266, ESP8285, and ESP32 hardware, providing a easy and low cost solution. Build-deploy-test cycles are extremely short (contrary to e.g. Arduino) because you only build the firmware once and then simply update scripts on the device.

It provides access to almost all APIs in the Espressif C SDK. Hardware/SDK access is abstracted through close to 60 specific modules. The firmware comes with either integer or floating point support depending on your needs.

975 questions
1
vote
0 answers

nodemcu gpio interrupt not working properly

My nodemcu uses Lua firmware. Recently, when using gpio.trig() to obtain pulse signals, I found that the callback function cannot be triggered completely, and some pulses are always missed. Can someone help me? Test…
mary
  • 11
  • 2
1
vote
1 answer

NodeMCU (ESP8266) unresponsive when using endless loop (while True)

When I include a while True: in my main.py I can no longer overwrite it and upload a new version. Many beginner guides and tutorials, eg: this one and this one, use while True. So I guess it should be possible. I have tried using Thonny and ampy for…
Sander van Leeuwen
  • 2,963
  • 2
  • 22
  • 31
1
vote
1 answer

Is there a way to increase SD Card Write speed in LUA on Nodemcu ESP8266?

The maximum write speed I can achieve is 2.4 KB/s. Is there a way to increase this? Using LUA on a NodeMCU ESP8266 and the SPI module in User_Modules.h. #define BUILD_FATFS is also enabled in user_config.h. I have a datalogger that is sampling…
Micke
  • 33
  • 3
1
vote
0 answers

How to solve conflicting declaration on the Library?

This is my code to build SHT10 reading. But I got an error message. It says that pin D1 is conflicting between Sensirion.cpp and arduino.h #include #include SensirionSHT Sensor = SensirionSHT(4, 5); long delayTime =…
Vina Vinesta
  • 11
  • 1
  • 2
1
vote
0 answers

Sending data from Arduino to Node MCU but not showing on serial monitor

hey guys I am sending my data from Arduino Mega to NodeMCU. I want to do a serial communication. My Arduino code is about operating multiple buttons while the nodemcu code is relatively simple. The code on arduino is working perfectly and the code…
1
vote
0 answers

ESP8266 Air Quality Sensor CCS811

I am doing a project where I have to connect an ESP8266 NodeMcu v1 board (attached photo) and a CCS811 air quality sensor. Attached photo of the connection. Connection Photo In arduino I have version 2.7.4 of esp8266 installed. I have installed the…
1
vote
1 answer

Unable to digital write in NodeMCU ESP8266

When I used an example from ESP8266 to do some blinking LED. It works properly but, when I connected to WIFI and MySQL Database, it could not do a digital write LED built-in. Here is my code in NodeMCU…
1
vote
2 answers

ESP8266 running NodeMCU - Detect Pulse Stream Start/Stop

I've built an automatic, self-filling water bowl for my dogs that's working perfectly with a water level controller and I'd like to now add some monitoring capabilities using an ESP8266. Like detecting if water is flowing, or an overflow has…
Jeff
  • 23
  • 4
1
vote
1 answer

How to get access to ESP8266 ( NODEMCU ) served website outside local network?

I'm able to connect my ESP8266 to local network, serve a website and access it on my mobile using the local IP address. So I tried getting my Public IP using api.ipify.org and use it to access the nodemcu server outside my local network but I…
Pervez
  • 391
  • 1
  • 10
1
vote
1 answer

How to list all 'romtable' modules built-in into currently running NodeMCU firmware?

This question is as in the title, and pretty much that's it. The firmware certainly knows what it carries inside. Here's the NodeMCU's "welcome" info: NodeMCU ESP32 built on nodemcu-build.com provided by frightanic.com branch: dev-esp32 …
quetzalcoatl
  • 32,194
  • 8
  • 68
  • 107
1
vote
0 answers

NodeMCU cannot get MQTT and Led strip script work together

I am trying to configure a NodeMCU v1 (with led driver board) to control a ledstrip with MQTT, First I started with controlling the led strip. for this I've used the LEDStripDriver package which has some example code which I minified, but still…
kgerbers
  • 23
  • 3
1
vote
1 answer

ESP8266[NodeMCU] LittleFS Library Problem

I'm working on Arduino IDE to implement LittleFS file system.However I get the error message as "src\LITTLEFS.cpp:17:21: fatal error: vfs_api.h: No such file or directory #include "vfs_api.h" when I try to compile my program. Code : #include…
1
vote
1 answer

ESP8266 randomly cutting response

I want my NodeMCU V3 to fetch weather data from OpenWeatherMapApi. I found some sample codes how to send GET request, but the response is getting cut randomly. After reading response, I print the length of the received JSON response. The response…
PoCiTo
  • 63
  • 7
1
vote
0 answers

How to add two physical buttons to AC fan dimmer sketch and update the corresponding slider/step widget once it’s pressed

There are a lot of AC Fan dimmer codes are available in internet with zero cross detection and runs by Blynk app as well. Problem is All those are only controllable by wifi (with internet) , rather have no manual control (without internet) at…
1
vote
0 answers

SD card writing with an nodeMCu ESP8266

I am trying to write some data to an SD card with a nodeMCU ESP8266 card. Here is the basic code I use : #include #include const int CS_PIN = D8; void setup() { Serial.begin(115200); if(!SD.begin(CS_PIN)){ …