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
1 answer

How to fix xtensa-lx106-elf-g++: error: unrecognized command line option '-std=gnu++17' error on Arduino IDE

This is my first time using Arduino IDE, and this is my code: I am trying to use the SendDemo sketch from RCSwitch on my NodeMCU board (ESP-12E), with the following configuration, Select; Tools -> Board: -> (Select the board of your choice).…
Jayman
  • 17
  • 5
1
vote
1 answer

How to generate string from variable in a function and show it by serial port (ESP8266)

I use to program different microcontrollers, but at low level. I mean, I program them to control power converters and so. However, I am interested in working with the nodemcu (ESP8266) due to the fact that messages can be send via MQTT protocol. I…
Pabloqb
  • 13
  • 3
1
vote
2 answers

Can anybody please tell me how to set or reset a bit in lua..?

I want to perform set and reset of particular bit in a number. As I'm using lua 5.1 I can't able to use APIs and shifting operators so it is becoming more and more complex so please help me finding this
Abhi
  • 73
  • 8
1
vote
1 answer

EPS32 is continuously rebooting due to less deep sleep time mentioned init file

'''I'm using ESP32 with nodemcu coded with lua. To test deep sleep by mistake I've mentioned node.dsleep(10) in init.lua file without any condition so my ESP32 is continuously restarting I can't able to upload the another program (modified one )…
Abhi
  • 73
  • 8
1
vote
2 answers

Soft wdt Reset - ESP8266 / NodeMCU using Stepper motor

I'm running very basic code and my ESP8266 times out during the stepper motor function. I get a "Soft wdt Reset" about 1600 ms into the myStepper.step function call. The program works for a MyStepper.setSpeed of 38, but not for 37. This happens on…
Matt
  • 13
  • 3
1
vote
2 answers

ATTiny serial communication does not work at 3.3V with ESP8266 (NodeMCU V3)

I am transmitting data from ATTiny85 to ESP8266(NodeMCU v3). I am powering NodeMCU using USB cable. It works fine when I power up ATTiny using 5V. However I'm planning to transfer my project to ESP32, which is not 5V tolerant. Therefore I have to…
Akila Uyanwatta
  • 543
  • 1
  • 4
  • 11
1
vote
2 answers

How to write messages over the I2C bus on two different addresses using Arduino IDE?

I have a master-slave setup consisting of a nodeMCU(master) and an arduino nano(slave). I want to sent two different types of data on two different I2C addresses. Datatype 1 are integers and datatype 2 are chars. I have written these two codes, they…
Nawin Narain
  • 353
  • 1
  • 4
  • 17
1
vote
1 answer

When passing ip adress in OkHttp response is null

I'm working on a project that combines nodemcu and android. I set nodemcu as server. I need to connect it to android and fetch data according to instructons. Here is my Android code @Override protected void onCreate(Bundle savedInstanceState) { …
1
vote
1 answer

Get request URL in Arduino web server

Am trying to display whatever value is sent to my Arduino (mega + WiFi r3) web server how do I do it ? Thanks in advance. Using this sample, the server listens for "ledOn" and then performs an action but I want the server to listen to any request…
1
vote
0 answers

ESP8266, Twilio doesn't send SMS

I've been trying to create SMS alarm using Twilio, Firebase and Arduino IDE. Using sensors I am measuring the temperature. If the temperature is higher than a specified value (ESP reads that value from Firebase Realtime Database), a SMS should be…
1
vote
1 answer

Is there a way to use ESP NOW protocol using lua?

i'm working on a project using esp8266 nodemcu board, and found right at the beginning that there is an IDE for this board called ESPlorer IDE which uses Lua code, so i've using https://nodemcu.readthedocs.io as my go to, but now i want to implement…
1
vote
1 answer

Is Pymodbus compatible with MicroPython?

I'm starting an IoT project and I've decided to use the NodeMCU board. The project consists of remote monitoring of electrical grids, so then it is composed of a module which takes a lot of data from a power grid analyzer and then sends that to a…
1
vote
1 answer

UART communication in ESP-12E

I am using micro python in same board to start a serial communication from machine import UART uart = UART(1, 9600) uart.init(9600, bits=8, parity=None, stop=1) uart.write('abc') and reading serial data using usb to serial…
1
vote
2 answers

Blynk.syncVirtual(V1) not updating Virtual Pins values

I was trying this code to run stepper motors and print Blynk app joystick's X and Y coordinates. But the code is only getting the joystick values once. But it works fine when I use if condition instead of while(). I needed while condition to run…
1
vote
1 answer

Cant compile code with AzureIoTHub library on NodeMcu v3 (ESP8266) in Visual Code with Platformio

I'm working with Visual Studio Code, Platformio extension, Arduino framework. Have NodeMCU v3 board with ESP8266. I wrote some simple program, which gets data from sensor and blinks some LED. Everythink went fine, code compiled and worked on the…