Digital Input and Digital Output on the NodeMCU ESP8266
ฝัง
- เผยแพร่เมื่อ 9 มิ.ย. 2024
- #ESP8266 #NodeMCU #ArduinoIDE #IOT
In our everyday life we turn ON and OFF numerous devices. Generally if we had to count it would be a big number ranging from 900~2000. Just count the number of times you have turned ON your phone screen and then turned it OFF.
Digital signals have 2 states : ON and OFF. These two states are going to be used on our ESP8266. So we are going to take digital input from a push button and give digital output from a LED as we start off with the ESP8266 NodeMCU.
You will have to set a GPIO pin to INPUT for the switch and another GPIO pin to OUTPUT for the LED. Remember that we are going to use the Arduino IDE.
Detailed Post here : www.electronicssimplified.in/?...
0:00 Digital Input and Digital Output
0:11 Things we Need
0:55 Circuit Diagram
1:12 Connections
3:51 Code
4:32 Code Explained
4:50 Connections
7:46 Output
Link for Components required
ESP8266 NodeMCU - amzn.to/3zfBj7j
LED x 1 - amzn.to/2Xjixi9
Pushbutton x 1 - amzn.to/3lAzTiS
1kΩ Resistor x 2 - amzn.to/3lCdMc9
Breadboard - amzn.to/39gOD0C
Jumper Wires - amzn.to/3nHlQeg
Circuit Diagram - bit.ly/3AlPYiF
Code - bit.ly/3khbPSG
Circuit Diagram and Codes for this project : github.com/rolan37/Digital-In...
Music by jorikbasov from Pixabay Music by Zen_Man from Pixabay - วิทยาศาสตร์และเทคโนโลยี
thank you very much i didnt know about the diference in the numbers printed on my esp8266 with the actual numbers i have to use in the program
Will this work if giv external 5v supply to the board without the usb connection
Yes ....