Questions tagged [nodemcu]
For questions about NodeMCU, an open source IoT platform which includes firmware for running on the ESP8266.
563 questions
0
votes
2
answers
902
views
2 way switch with Arduino?
Hey I'm working on a home automation system where I can replace one of my 2 way switches to an Arduino Or node MCU controlled one but I want to avoid normal relays because as of what I know they can ...
2
votes
1
answer
293
views
How to attempt connection to WiFi only once?
I am working on a garden timer project, I connect to WiFi once and if its successful show time from NTPClient or else show time from RTC.
I have been done the above, and it works in the sense that if ...
1
vote
0
answers
190
views
Inconsistent values from NTP client
Hardware- ESP8266 Based NodeMCU
I am using NTP Client for time in my alarm project.
I am facing an issue where NTP client is not returning proper values, in the sense that it works properly for the ...
1
vote
0
answers
608
views
Prevent flicker - Lcd with I2C module?
I have a 16x2 LCD with a I2C interface, and a Esp8266 based NodeMCU.
I Have an issue where the second line of the LCD is flickering, but somehow the first line does not flicker.
Why does this happen ...
1
vote
1
answer
589
views
Why is this extremely simple code not working?
I have a problem with a for loop, and Serial.print("Its Working") does not appear. Seems simple, I've done it before, now for whatever reason, its not working anymore
void setup() {
// put ...
2
votes
0
answers
1k
views
Multiple MQTT topics
I have 3 nodemcu's(ESP32) each connected with a sensor, from which I get data and send it to aws IoT-core. How can I send all 3 sensor's data by a single MQTT subscription? The below code is for a ...
1
vote
1
answer
158
views
Node MCU not functioning correctly
i have a node mcu and i uploaded one example code to test it for rf signal decoding it worked. so after that i have written a code based on that and when i uploaded the code my node MCU suddenly isn't ...
0
votes
1
answer
2k
views
Decode rf remote signals with ESP32 or node MCU?
I'm trying to decide my rf remote signals using ESP32 or node MCU. I have tried with Arduino and was successful but for some reason it is not working on either ESP32 or node MCU even using the same ...
1
vote
1
answer
1k
views
How to use millis instead of delay? [duplicate]
Sorry if something similar has been answered before...
I am working on a garden timer project that runs on a ESP8266 based NodeMCU and is integrated with Blynk.
I have a waterNow function that ...
1
vote
0
answers
214
views
NodeMCU server stops responding after a while
I'm new to NodeMCU and ESP. I've created a basic web server on my NodeMCU.
The server works fine for the first few minutes after resetting the board or re-uploading code. But after about half an hour, ...
3
votes
0
answers
76
views
ESP8266 requires two resets to wake up from deep sleep [duplicate]
I'm working with the following circuit using a NodeMCU:
I have the solder jumper bridged between RST and BTN. In addition to what's in the schematic, pins 2, 3, and 4 of J1 are connected to the ...
4
votes
1
answer
15k
views
ESP32S v1.1 NodeMcu vs ESP32 DevKitV1
I have two different ESP32 development boards labelled "ESP32S v1.1 NODEMCU" (A) and "ESP32 DEVKITV1" (B). From what I can tell they have the same major components, but their pins ...
2
votes
0
answers
283
views
ESP8266 + 4x TM1637 == possible?
I'm having trouble getting my NodeMCU connected to 4 x 4 Digit 7 Segment Displays.
So far I've been able to connect 2 & get them to display things from the demo repository.
However, after trying ...
1
vote
0
answers
154
views
L298N Motor Driver not working
I am using a L298N motor driver to connect a motor with NodeMCU. But i did a few tests since a few tests while learning how to control it now when i connect it the motor doesn't even work. Then i ...
1
vote
1
answer
329
views
NodeMCU and relay with VIN power
Have read a lot of different things online, and I just ain't sure yet.
I'm trying to hook up a NodeMCU to control some relays. And want to power the NodeMCU by the VIN pin.
Anyone know if this setup ...
0
votes
2
answers
654
views
Why echo "R" > /dev/ttyUSB0 doesn't work, but on the same PC Serial Monitor in Arduino IDE works?
I have a strange problem. I am running Ubuntu and NodeMCU si plugged into USB. I have very simple sketch running on it, when it reads letter "R" on serial, it turns ON relay.
When I open ...
1
vote
0
answers
510
views
nodemcu POST request over https return error code -1
I have a nodejs application deployed and have been trying to send data to the api using the following sketch on my nodemcu:
#include <ESP8266HTTPClient.h>
#include <ESP8266WiFi.h>
void ...
1
vote
0
answers
495
views
Debouncing interrupt using capacitor
I'm currently working on nodeMCU and need to use interrupt pin. I find out there are bouncing problem when using interrupt thus i use capacitor 100uF to solve this problem. The question is by using ...
1
vote
0
answers
225
views
How can I use GPIO pins on an esp12e UART?
I've bought an esp12e UART that unfortunately had some issues, but I was able to fix them.
This is how I connected it to the arduino. With this setup, I was able to host a simple web server and it ...
0
votes
1
answer
337
views
NodeMCU and SDS011
today I connected the SDS011 to NodeMCU. I noticed that this only works when the sensor is connected to the voltage VU. If I connect the sensor to another pin for the voltage, it does not respond.
Why ...
1
vote
0
answers
86
views
Deep sleep hangs when used with D0 pin when we connect to reset pin in nodemcu
I am using a nodemcu and running a code using hall effect sensor and ultrasonic sensor with deep sleep except the deep sleep keeps hanging when I use this code. With code taken from online it does not ...
1
vote
1
answer
228
views
Deep sleep hangs when used with gpio 16 when we connect to reset pin
I have a node MCU and it hangs when I used a deep sleep, as shown in the image attached. My code looks like this:
/*
* ESP8266 Deep sleep mode example
* Rui Santos
* Complete Project Details https:...
3
votes
1
answer
5k
views
How to flash a NodeMCU (ESP8266) with an external FTDI programmer?
Hi my USB to UART bridge (CP2102) seems to be broken on one of my NodeMCU Dev Boards with ESP8266.
It seems to be just that specific board since all other boards that I have can be flashed without ...
1
vote
1
answer
120
views
Help with NodeMCU based smart switch
The project I'm planning is to use a NodeMCU at each electrical board in house to control lights and fans via relays. Each MCU will communicate via MQTT over WiFi to a Raspberry Pi 4 from where I can ...
0
votes
2
answers
471
views
can't connect paj7620 (gesture detector module) to nodemcu
I'm trying to connect paj7620 to nodemcu micro-controller. I have implemented the following code and it worked perfect on arduino uno. The problem is that I was made to migrate to nodemcu.
Here is my ...
0
votes
1
answer
2k
views
How to change ArduinoOTA upload timeout?
I'm using ESP8266WiFiMulti, ESP8266WebServer and ArduinoOTA to communicate with my device and perform over-the-air-updates. Everything was working perfectly until I moved the ESP8266 further from the ...
-1
votes
1
answer
2k
views
Send data from one NodeMCU to another NodeMCU using Serial Communication
i am using NodeMCU (ESP8266) to communicate with another NodeMCU (ESP8266) using Serial Communication. Because i am using ESP-NOW to communicate and ESP-NOW and WiFi can not work together very well so ...
0
votes
1
answer
74
views
How to reset the count/data after HTTP.POST?
I have a project that records interrupts from a reed switch to nodemcu.
It records like this: 0.3,0.6,0.9,1.2 Then what I want to happen is to go back to zero when it successfully HTTP.POST to a ...
0
votes
1
answer
2k
views
Not able to upload code to NodeMCU
Im now working on a Node MCU based project but the problem is that i cannot upload the code to the board. Further more whenever i connect the usb to the NodeMCU my keyboard stops working and only ...
0
votes
2
answers
1k
views
I'm working on a NodeMCU project and have a small doubt about LEDs and resistors
In my NodeMCU I want a statement to turn on an LED, which is easy, just use pinnumber, HIGH. But, what I'm trying to do here is connect multiple LEDs to one pin like this:
I just wanted to know if ...
0
votes
1
answer
784
views
Arduino Pro micro Serial communication problem with Node MCU
I recently bought an ATmega32U4 based Arduino Pro micro. I am using the Keyboard library and interfacing with my PC via USB.
I am trying to create a serial communication between the Arduino Pro micro ...
1
vote
0
answers
1k
views
MAX31865 & NodeMCU RTD Low Threshold and Exception
I've got a NodeMCU V1 and a MAX31865 with a PT100 attached. When using the example arduino code, it seems to log out the correct values but with an RTD Low Threshold error like so:
RTD value: 8068
...
2
votes
1
answer
2k
views
Voltage, current measurement from solar panel using INA219 and ESP-12F
I recently started tinkering with ESP-12F thus I am a novice here. As a standard novice project, I am making a standalone weather station for my living room. I want to use solar panels to charge the ...
2
votes
0
answers
3k
views
Node MCU code is stuck in while (WiFi.status() != WL_CONNECTED) [closed]
I am using the Node MCu V3 board ESP8266MOD
Board Manager Version: 2.7.4
Arduino IDE: 1.8.12
My code is stuck in the while (WiFi.status() != WL_CONNECTED)
Here is code:
#include <ESP8266WiFi.h> ...
1
vote
0
answers
2k
views
Wemos d1 mini code not uploading
I have a wemos d1 mini. I uploaded a code in wemos d1 mini and after that my wemos mini not working. I tried to upload another code in it even the led blink sketch and even a blank sketch but whenever ...
1
vote
0
answers
162
views
using esp8266 to fetch specific data from firebase
I want to fetch specific data from firebase using Node Mcu ESP 8266. I can fetch the num value, but I failed to fetch the id value. The serial monitor kept displaying 0 when I try to fetch the id ...
1
vote
0
answers
102
views
Looking to interface height and weight sensor based on I2C Protocol
I have interfaced a height sensor and a weight sensor. The I2C address of the height and weight sensors are 0x29 and 0x2A respectively. I have merged the example of both the sensors.
This is the first ...
0
votes
1
answer
233
views
Remove a sudden pulse on pin d3 of nodemcu when powering it up [duplicate]
I am using node mcu and a 2 channel relay connected to the motor via pin d3.
When I power on the circuit, it shoots a pulse to the relay and i think it will damage the motor.
Please suggest me how to ...
3
votes
2
answers
1k
views
I2C protocol doesn't work properly
I am trying to make I2C Communication between NodeMCU and arduino Uno boards. However it is not working properly. It makes communication for once time when i uploaded code.
Master Device Code(NodeMCU ...
1
vote
2
answers
121
views
How do I know when a filter coffee machine is finished by using any sensor? [closed]
I have a filter coffee machine that looks like this one and I would like to send a message to the machine users by using any development board (like Arduino or NodeMcu) when the machine is finished.
I ...
2
votes
0
answers
869
views
Nodemcu OTA - no response issue
I was trying to use nodemcu for a project. No issues when uploading the OTA sample code. Added led blink to test. But when trying to upload the second sketch via OTA getting an error
no response from ...
1
vote
1
answer
538
views
Serial communication between nodemcu and Arduino Uno
For the last days, I am trying to establish serial communication between nodemcu and Arduino Uno but I failed to do this. Currently, I am working on a Home Automation project. I receive data from ...
0
votes
3
answers
5k
views
NodeMCU ESP8266 Ver 0.1 not powering on with VIN
I'm trying to power on my NodeMCU ESP8266 Ver 0.1 (thats what is written in board), via VIN and Ground with my phone charger.
I'm 100% sure that the USB charger is working, providing 5V, and that the ...
2
votes
2
answers
1k
views
esp2866 powered externally not working
I got a beginner level problem.
I got two esp2866 nodeMCU, they both work with the usb cable and I can get the blink program to run though it.
Running them with external power doesn't seem to work ...
3
votes
1
answer
1k
views
Ultrasonic Sensor(HC-SR04) recording random distance
I am am trying to make a code which automatically controls relay on basis of ultrasonic sensor measurements. I am using a nodeMCU as a microcontroller rather than an arduino. The relay and the ...
0
votes
0
answers
755
views
Error compiling for board NodeMCU 1.0
i tried compiling a program to upload sensor readings that i connected with my ESP8266 to cloud (in my case, Antares) but i keep getting this error message. Can anyone tell me where the problem is, ...
2
votes
2
answers
415
views
Is it possible to have long wire connections from an NodeMCU to a servo motor or button?
For my proyect, I need to conect my NodeMCU to a servo motor as well as a push button, the thing is, the distance from the NodeMCU and both components has to have a distance of around 6.10 meters (or ...
1
vote
0
answers
350
views
NodeMCU unable to communicate with MFRC522 RFID reader even though the nodeMCU is successfully connected to a mobile hotspot
I am replicating a project that will read the RFID card or tag data, store that into a mysql database and display the data via PHP.
I am using NodeMCU, RC522 RFID reader and Ardunio IDE to do that.
...
3
votes
1
answer
1k
views
use Nodemcu to program Attiny85
I have a dev board for my attiny85.
when connecting it to the computer I get "unknown USB device(device descriptor request failed)"
although I have the needed drivers, so I thought of trying ...
1
vote
0
answers
38
views
How can I power off a servo the best way? Problems with MG90S servo [duplicate]
I have a NodeMCU and im trying to control a servo to move from angle A to B and viceversa. The thing is I want to be able to power off the servo after moving so it could stop getting voltage and ...