Aim:
To connect different sensors to the Arduino Uno and read their values in Tinkercad.
Requirements:
-
Computer with internet access
-
Tinkercad account
-
Virtual components in Tinkercad:
-
Arduino Uno
-
Breadboard
-
LDR (Light Dependent Resistor)
-
Ultrasonic Sensor (HC-SR04)
-
Temperature Sensor (TMP36)
-
Steps:
Step 1: Open Tinkercad Circuits
-
Log in to Tinkercad.
-
Go to Circuits → Create New Circuit.
-
You will see a blank workspace.
Step 2: Place Arduino and Breadboard
-
From the components menu, drag an Arduino Uno into the workspace.
-
Drag a breadboard beside it (this helps in connecting sensors neatly).
Step 3: Add and Connect Sensors
(A) Light Sensor (LDR):
-
Drag an LDR onto the breadboard.
-
Connect one pin of the LDR to 5V (Arduino power).
-
Connect the other pin to A0 (an analog pin).
-
Also connect a 10kΩ resistor from that pin to GND (to stabilize readings).
(B) Ultrasonic Sensor (HC-SR04):
-
Place the ultrasonic sensor on the breadboard.
-
Connect VCC → 5V, GND → GND.
-
Connect Trig pin → Digital pin 9, Echo pin → Digital pin 10.
(These pins help Arduino measure distance by sending and receiving sound waves.)
(C) Temperature Sensor (TMP36):
-
Drag the TMP36 sensor onto the breadboard.
-
Connect Left pin → 5V, Right pin → GND, Middle pin → A1.
(This gives a voltage that changes with temperature.)
Step 4: Start Simulation
-
Click Start Simulation in Tinkercad.
-
Open the Serial Monitor (top right corner).
-
You will see numbers being printed. These are the sensor readings.
Step 5: Test the Sensors
-
For LDR: Use Tinkercad’s slider to change light intensity. Watch values change from low (dark) to high (bright).
-
For Ultrasonic Sensor: Drag an object closer or farther in simulation. Values show distance in cm.
-
For Temperature Sensor: Adjust the environment temperature in simulation. The readings increase or decrease.