Comments on: ESP8266 NodeMCU Digital Inputs and Digital Outputs (Arduino IDE) https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Wed, 28 Aug 2024 20:54:19 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Joep https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-952263 Wed, 28 Aug 2024 20:54:19 +0000 https://randomnerdtutorials.com/?p=95244#comment-952263 Great tutorial!
When I had several leds working via internet, I really had the feeling that I made an achievement, small as it may be.

]]>
By: Stanley https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-826367 Tue, 21 Mar 2023 21:58:24 +0000 https://randomnerdtutorials.com/?p=95244#comment-826367 Hello!

I followed the tutorial and the LED does indeed light up when I press the button, but it doesn’t turn off when I release it. I have to touch the physical pins on the NodeMCU module for it to turn off. What am I doing wrong?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-813353 Fri, 27 Jan 2023 10:24:36 +0000 https://randomnerdtutorials.com/?p=95244#comment-813353 In reply to J Salama.

Hi.
We recommend using the corresponding GPIO number instead of D0…D5.
For example, from the pinout diagram, you know that D1 corresponds to GPIO 5, so in your code, simply use 5.
I hope this is clear.
Regards,
Sara

]]>
By: J Salama https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-813090 Thu, 26 Jan 2023 07:07:23 +0000 https://randomnerdtutorials.com/?p=95244#comment-813090 Greetings and nice article!
I love that there is ‘advanced beginners tutorial’ that is not using just besic android.
This article says that you should use D0…D5 instead of just 1…5
I had some problems when I used just numbers when pointing pinMode.

instructables.com/Get-Started-With-ESP8266-NodeMCU-Lolin-V3/

]]>
By: Jafar Mousavi https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-802478 Mon, 12 Dec 2022 11:26:17 +0000 https://randomnerdtutorials.com/?p=95244#comment-802478 Hello
Can all bases be defined as output? And connected to them Led.
Please give an example

]]>
By: Facundo https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-781578 Wed, 07 Sep 2022 14:59:47 +0000 https://randomnerdtutorials.com/?p=95244#comment-781578 Hi, I have a simple question about the circuit.
Why did you choose a 330ohm resistor?
Based on my formula I got a 65 ohm resistor.
3.3V – 2V (red 5mm) / 20mA = 65ohm.
Am I doing something wrong?

Regarding the pullup/pulldown resistor. I have a 1Kohm resistor. Is that enough??:
3.3V – 0V / 1Kohm = 3.3mA
P = 10.89 mW

Thanks in advance.
Facundo.

]]>
By: pankaj https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-742007 Thu, 28 Apr 2022 19:51:09 +0000 https://randomnerdtutorials.com/?p=95244#comment-742007 But what if I want to connect some normal modules and leds to NodeMCU? How can I extend the number of ports available on nodemcu then for general purpose input and output? With Arduino it wasn’t a problem but with Nodemcu I think the ports are just 2 that you mentioned.

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-726393 Tue, 15 Feb 2022 11:58:41 +0000 https://randomnerdtutorials.com/?p=95244#comment-726393 In reply to Ronald Russell.

Hi.
We don’t have that specific example, but we have similar tutorials that you can modify:
https://randomnerdtutorials.com/esp8266-and-node-red-with-mqtt/
Regards,
Sara

]]>
By: Ronald Russell https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-726296 Tue, 15 Feb 2022 00:27:46 +0000 https://randomnerdtutorials.com/?p=95244#comment-726296 Hi,
Thank you for the example. Would it be possible to make a lesson that would explain how to have the switch in this example control an output on a RPi over MQTT?
Thanks, rr

]]>
By: Sara Santos https://randomnerdtutorials.com/esp8266-nodemcu-digital-inputs-outputs-arduino/#comment-726162 Mon, 14 Feb 2022 12:11:13 +0000 https://randomnerdtutorials.com/?p=95244#comment-726162 In reply to Sonz.

Hi.
We don’t have any tutorials on that subject.
Regards,
Sara

]]>