I will not give up my dream so easily, this time I am gonna make temp sensor for my room but by using DHT11 and LCD screen to show me the results but before you need to enter password because it's very senstive information and LED so if temp exceed specific read the LED will warn me to check out the temp.
Since not every component available on TinkerCad i had to use photoshop to show my wiring in the next step.
to connect the LCD with the arduino :
GND on LCD connected to GND on arduino.
VCC on LCD connected to 5V on arduino.
SDA on LCD connected to A4 on arduino.
SCL on LCD connected to A5 on arduino.
To connect the DHT11 temp sensor :
VS Connected to pin 2 on arduino.
DATA Connected to pin 13 on arduino.
GND Connected to GND on arduino.
To connect the Keypad 3*4 :
from right to the left
pin 1 on keypad connected to pin 3 on arduino.
pin 2 on keypad connected to pin 4 on arduino.
pin 3 on keypad connected to pin 5 on arduino.
pin 4 on keypad connected to pin 6 on arduino.
pin 5 on keypad connected to pin 7 on arduino.
pin 6 on keypad connected to pin 8 on arduino.
pin 7 on keypad connected to pin 9 on arduino.
To connect the LED :
320 Ohm resistor connected to pin 12 on the arduino then connected the resistor to LED positive pin.
Nigative LED pin connected to GND on arduino.
VOILA
everything is connected together now.
Now it's time for programing.
I will make comment lines after every code line in arduino CC please check the code out to see the code explanation.
as usual, Atef Rostom he is my biggest fan, but he is not fan of typing password to know the temp :D
I was thinking about using LED to blink faster if the temp exceed specific read but it was too hard to make it happen so instead of blinking i used LED to turn on and off.
It's my first time to use multiple input components and multiple action components definitely it will help me somehow with my final project.