Posts

Showing posts from September, 2020

Connecting LED with Node MCU

Image
In this blog, we will learn how to connect an LED using a resistor with Node MCU. Hardware requirements- Led 200ohm resistor Node MCU Need for resistor If the maximum capacity of the led is 5 Volts and we give it a power supply of 10 volts then the LED will burn but if we use a resistor it prevents the extra flow of current. In the case of Node MCU, we don't need a resistor to turn an led on because node MCU supplies 3.3volts current that is bearable by an led, but it is a good practice. You can watch this video for a detailed understanding: There are two wires in an led. The long one is a positive wire which gets the power from digital pins and the short one is connected to the ground. How to make the connection- Connect one end of the led to one end of the resistor. Connect the other end of the led to the Ground pin of Node MCU. Then connect the resistor with the D1 pin of node MCU. You can use any GPIO pin from D0 to D8. For a detailed pin explanation of Node MCU watch this vide...