Aim:
To simulate a basic automation system where a fan or LED turns ON if the temperature is high.
Requirements:
-
Arduino Uno
-
TMP36 temperature sensor (or Tinkercad slider as substitute)
-
LED or simulated fan
-
Jumper wires
-
Breadboard
-
Resistor (220Ω for LED)
Steps:
-
Open Tinkercad Circuits and start a new project.
-
Place components: Arduino Uno, TMP36 sensor or slider (simulate temperature), LED, and breadboard.
-
Connect:
-
TMP36:
-
Middle pin → A0 (analog input)
-
Left pin → 5V
-
Right pin → GND
-
-
LED:
-
Anode (long leg) → digital pin 8 via 220Ω resistor
-
Cathode → GND
-
-
-
Open the Code panel → use Blocks + Text.
-
Create logic:
-
Read temperature value from A0.
-
If temperature > 30°C, set pin 8 HIGH (LED ON).
-
Else, set pin 8 LOW (LED OFF).
-
-
Use the slider to increase temperature and observe LED behavior.