Practical Work 1 Q - December 2020
Practical Work 1 Q - December 2020
Practical Work 1 Q - December 2020
CLO 2P: Demonstrate entrepreneurial and good managerial skills in proposing IoT solutions
to solve problems. (A3, PLO 7)
OBJECTIVES :
By the end of this lab, students should be able to:
• TinkerCad
Procedure:
1. Follow the circuit diagram and make the connections as shown in the image given
using TinkerCad software.
Connections:
Photoresistor :
First pin --> 5V
Second pin --> A0 (a resistance is connected to the GND and to the photoresistor second
pin).
Components
Text Code:
*click at the photoresistor sensor, the adjustment controller will pop up. Adjust the controller and see the
result at the serial monitor.
The HC-SR04 ultrasonic sensor uses SONAR to determine the distance of an object just like the
bats do. It offers excellent non-contact range detection with high accuracy and stable readings
in an easy-to-use package from 2 cm to 400 cm or 1” to 13 feet.
The operation is not affected by sunlight or black material, although acoustically, soft materials
like cloth can be difficult to detect. It comes complete with ultrasonic transmitter and receiver
module.
Procedure:
1. Follow the circuit diagram and make the connections as shown in the image given using
TinkerCad software.
Connections:
Components
The Ultrasonic sensor has four terminals - +5V, Trigger, Echo, and GND connected as follows −
Text Code:
*click at the ultrasonic Distance sensor, the adjustment controller will pop up. Adjust the controller and
see the result at the serial monitor.
The Temperature Sensor LM35 series are precision integrated-circuit temperature devices with
an output voltage linearly proportional to the Centigrade temperature.
The LM35 device has an advantage over linear temperature sensors calibrated in Kelvin, as the
user is not required to subtract a large constant voltage from the output to obtain convenient
Centigrade scaling. The LM35 device does not require any external calibration or trimming to
provide typical accuracies of ±¼°C at room temperature and ±¾°C over a full −55°C to 150°C
temperature range.
Procedure:
1. Follow the circuit diagram and make the connections as shown in the image given using
TinkerCad software.
Connections:
Components
LM35 sensor has three terminals - Vs, Vout and GND. We will connect the sensor as follows −
Result:
*click at the LM35 sensor, the adjustment controller will pop up. Adjust the controller and see the result
at the serial monitor.
ACTIVITY D: Button input
Button input
In the Arduino Button tutorial you are going to learn about interfacing the button with
Arduino using the Arduino digitalRead function. The buttons are very easy to use with
Arduino but you have to take care of few things like using the pull up resistor or using the
pull down resistor that I am going to explain in this tutorial. Without these things, the
button will behave erratically.
We will first simply connect the button with Arduino and will observe the unusual behavior
of the button. Then I will explain to you when is happening and we will overcome this
problem by using either the external Pull up or Pull down resistor or internal Pull up
resistor of the Arduino.
Then we will follow a more practical example and will make the LED high on pressing the
button two times and the LED will go LOW on pressing the button one time.
Procedure:
1. Follow the circuit diagram and make the connections as shown in the image given using
TinkerCad software.
Connections:
Components
Text Code:
*Press the switch button, the LED light will OFF (0) & release the switch button and LED light will
ON (1). See the result at the serial monitor.
Conclusion :