After that, we defined the type of DHT sensor that which DHT sensor we are using. Then we initialized the pins where we have connected the LCD and the DHT22 sensor. ![]() Connect the GND pin of relay module to the GND of Arduino.Connect the IN pin of the relay module to the pin 9 of Arduino.Connect VCC pin of relay module to the 5V pin of Arduino.On the input side of the relay module, make the following connections: Then connect the Keyes_ST1y relay module to the Arduino. Connect pin 16 which is the negative of backlight of LED to the ground of Arduino.Connect pin 15 which is the positive pin of backlight of LED to the 5V pin through the 220ohm resistor.Connect D4-D7 pins to the pin 4, 5, 6, 7 of Arduino.Connect E (Enable) pin to the pin 3 of Arduino.Connect RS pin to the pin 2 of Arduino.Connect other two pins of potentiometer to the 5V and the ground. Connect V0 pin to the center pin of 10K potentiometer.Connect VSS pin of LCD to ground of Arduino.First of all, make the connection of the LCD module with the Arduino as follows:
0 Comments
Leave a Reply. |