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

How to connect NodeMcu ESp8266(lua) to Mosquitto MQTT Broker?

My problem is that I try to connect an NodeMcu ESP 8266(Lua) to a mosquitto mqtt broker. I create a mosquitto topic listener in console so i can test if it works, i send some message to that topic from another console and it shows them but when i…
leonardus
  • 11
  • 1
1
vote
1 answer

CAN on ESP32 with Nodemcu

I have tried various Nodemcu builds based on the idf 4 (including the online builder) and cannot get the CAN bus to work on the built-in CAN controller. When I do make menuconfig, I don't see anything about the CAN module except the TWAI…
hofmaker
  • 11
  • 3
1
vote
0 answers

Error loading main.py to MicroPython on NodeMCU Lilin V3

I have a NodeMCU board and I'm trying to use it for IoT. I'm using mac and this is the commands I'm using to install MicroPython: esptool.py --port /dev/cu.usbserial-110 erase_flash esptool.py --port /dev/cu.usbserial-110 --baud 115200 write_flash…
Alexgar
  • 21
  • 3
1
vote
0 answers

Sending data wirelessly to esp8266 NodeMCU v3 from ArduinoIDE

I am working on a school project. I have to build a robot that will push the other robot off the table. the robot should have a camera and move by it self, but my teacher said that if i manage to connect xbox controller to it it will be fine. I was…
1
vote
0 answers

How do I play a prerecorded audio using GSM Sim800a with ESP8266 and Arduino IDE

I am writing a DTMF based code that whenever I call a specified person using my GSM Module i.e. SIM800A and ESP8266 (NodeMCU v2) using Arduino IDE, person will hear an audio file about the DTMF Tones available. But while searching the internet on…
Ansh Goel
  • 13
  • 5
1
vote
1 answer

delay() instruction generating Exception (9) error on ESP8266 / nodeMCU with ESPAsyncWebServer library

The following script generates an exception 9 error and resets the nodeNUC. The conflicting line is the one that says "delay(1)". If I comment it out it works. Is it possible to delay the execution without getting an exception error…
FedeKrum
  • 435
  • 1
  • 6
  • 15
1
vote
0 answers

Error loading module 'liquidcrystal' from file 'liquidcrystal.lua': not enough memory

I'm trying to use a LCD display 16x2 (based on Hitachi HD44780) with 4-bit I²C interface (based on PCF8574) on an ESP8266 NodeMCU V.3 (ESP-12E) and when I load the liquidcrystal.lua library (by Matsievskiy Sergey on GitHub) I get the following…
1
vote
0 answers

Debugging for esp8266 through jtag?

I am working on esp8266 - NodeMcu. According to the docs from EspressIf, I couldn't find any documentation about Jtag port in Esp8266, so I think Jtag port is not supported in this chip. However, we can debug esp8266 with Openocd via Jtag port. Here…
1
vote
1 answer

I can't reflash ESP8266 any more

Suddenly I was unable to reflash a pair of ESP8266 boards (one nodeMCU, and one Wemos D1). I had been using those for testing/developing a remote temperature and humidity sensor station with Arduino (C++) and MicroPython for over a year, but…
Candid Moe
  • 131
  • 1
  • 9
1
vote
2 answers

How to solve wdt reset, rst cause:4, boot mode:(3,6) / NODEMCU 1.0 (ESP 8266) / ThingSpeak

Where is the problem? Watchdog reset triggers every time. I am somewhat new to this type of project. Couldn't quite find the solution anywhere. Somewhere I found out that breaking down the delay values might help. But that didn't work in my…
1
vote
1 answer

Can't able to integrate google calendar with ESP32...?

Hi I'm trying to get the calendar events through esp32 and I'm using NodeMCU firmware with Lua(5.1) (Nodemcu: https://nodemcu.readthedocs.io/en/dev-esp32/modules/http/) everything I've done correctly I wrote google script for the same and tested…
Abhi
  • 73
  • 8
1
vote
2 answers

ESP8266 NodeMCU MicroPython garbage in serial, cannot erase_flash or upload files

Looks like I broke my NodeMCU Lolin esp8266 module, please confirm) Firstly everything worked fine, but then... I uploaded a bit strange boot.py to play with UART0 #boot.py import uos, machine import gc gc.collect() import esp import…
Philipp
  • 27
  • 4
1
vote
2 answers

LUA Script produces error while Compiling

When compiling the following lua script in Arduino 1.8.16 to be loaded to NodeMCU 8266 MOD 12-F I get a failure message (attached after the script). I am new in the whole Arduino (and SW overall..) topics and just trying to build some DYI based on…
Igor
  • 11
  • 1
1
vote
0 answers

UnicodeEncodeError with installing uPyCraft

I really need help. I want to program my nodeMCU with python using uPyCraft. When I install it and wanted to run the app it give me an error. Traceback (most recent call last): File "uPyCraft.py", line 2965, in File "uPyCraft.py", line…
arvin sh
  • 9
  • 2
1
vote
1 answer

NodeMCU Unity Connection, using UDP

I am trying to connect NodeMCU with unity for my university project. My nodemcu receives data (tested with a UDP test tool application). I will leave the code below. But I have problems with Unity. I tried to find a simple example or something like…
YGreater
  • 42
  • 1
  • 11