This experiment shows how easy it is to program using Arduino. Here this experiment demonstrates different programs using different sensors.
1.Laptop
2.Arduino IDE
3.Bread Board
1.Laptop
2.Arduino IDE
3.LED
4.Resistor (330 ohms)
5.Jumper wires
6.Bread Board
1.Laptop
2.Arduino IDE
3.DHT11 sensor
4.Resistor(10 K ohms)
5.Jumper wires
6.Bread Board
1. Connect pin1 of DHT11 to VCC (3.3V) pin1 of NodeMCU.
2. Connect pin2, the Digital output pin of the sensor to D7(pin 13) of NodeMCU.
3. Connect pin 4 of DHT to GND (pin of NodeMCU).
4. Connect resistor across the DHT11 output(pin2 of DHT11) and VCC(pin1 of NodeMCU).
Experiment 1: Blinking of Internal LED
Things Required:
1.Laptop
2.Arduino IDE
3.Bread Board
Wiring Connection:
Simply connect the NodeMCU to the Laptop and run the blink program.
Code: https://github.com/jyothi-lanka/IoT/blob/master/Arduino/InternalLEDBlink.ino
Demo:
Experiment 2: Blinking of External LED
Things Required:
1.Laptop
2.Arduino IDE
3.LED
4.Resistor (330 ohms)
5.Jumper wires
6.Bread Board
Wiring Connection:
1. Connect the D7 (pin 13) of NodeMCU to one end of the resistor.
2. Connect the other end of the terminal to the positive terminal of LED.
3. Connect the negative terminal of LED to GND ().
Code: https://github.com/jyothi-lanka/IoT/blob/master/Arduino/ExternalLEDBlink.ino
Demo:
Experiment 3: Temperature and Humidity measurements using DHT11 Sensor
Things Required:
1.Laptop
2.Arduino IDE
3.DHT11 sensor
4.Resistor(10 K ohms)
5.Jumper wires
6.Bread Board
Wiring Connection:
2. Connect pin2, the Digital output pin of the sensor to D7(pin 13) of NodeMCU.
3. Connect pin 4 of DHT to GND (pin of NodeMCU).
4. Connect resistor across the DHT11 output(pin2 of DHT11) and VCC(pin1 of NodeMCU).
No comments:
Post a Comment