Chat freely about anything...

User avatar
By vautrinr
#19736 Hello there !
I am a big noob in hardware, this night has been rough, but here I am with my ESP8266 nodemcu devkit, and a webserver which is working :D :D :D
--> it returns me a webpage where there is a button which could either turn on or off the GPIO00 or GPIO02

However, I have tried for long hours to light on a single led. I have wired a bread board with the nodemcu devkit (I think it is a sort of fork of the esp12 isn't it ? )

--> the - is provided by the first top left hole of the devkit
--> the + is provided by the microUSB / USB wire
--> there is a resistor between the led and the -
--> the led is plugged on the third or fourth top right hole of the devkit
My LED is on. So what the hell am I asking ? It is always on.

--> When I connect the led to the other holes it can be either a powerfull light or a less powerfull light
--> It is always on. I have tried to put in putty (serial COM4) a thing like 'print(gpio.read(led1))' it is 0 when I click the button on the webpage generated by the nodemcu.
What the hell am I not understanding ?
Could someone explain me some basic or give me some tuts please ?

Thanks by advances guys,
Regards
Remi
User avatar
By GeorgeIoak
#19768 This sounds like you have not had much experience with electronics based on what you have written. If that is true than the ESP platform is not the best for you to learn how to work with microcontrollers and electronics. It would be very good for you to get an Arduino board and work with that platform first since there are many examples and tutorials on the internet to help you.

NodeMCU maps GPIO pins so you need to refer to the table on their Wiki

An example of connecting a LED and making it blink can be found at this page, http://www.arduinesp.com/blink and you can use that as guidance to check if you have wired your LED correctly.
User avatar
By cal
#19793 Moin,

starting with an arduino to learn some basics of electronics is good advice.
The starter kits come with all kinds of sensors and parts you can re-use for you esp later on.
There are good tutorials that start from ground up.
The arduinoesp is sharing a lot with arduino but needs to be different in some aspects.
I started with and use nodemcu firmware on my esp. That way I can talk with my device
using a terminal program if neded.

Cal