UNIT 3_part 3 sensor n actuator integration with arduino_SRD
UNIT 3_part 3 sensor n actuator integration with arduino_SRD
Sensors
• Electronic elements
• Converts physical quantity/ measurements into
electrical signals
• Can be analog or digital
Types of Sensors
Some commonly used sensors:
• Temperature
• Humidity
• Compass
• Light
• Sound
• Accelerometer
Digital Humidity and Temperature
Sensor(DTH)
PIN 1, 2, 3, 4 (from left to
right)
• PIN 1- 3.3V-5V Power
supply
• PIN 2- Data
• PIN 3- Null
• PIN 4- Ground
DHT Sensor Library Supported by Arduino
➢dht.readHumidity()
➢dht.readTemperature()
(Here we are using Arduino ATMEGA 2560
IT has 4 UART)
Connection
Actuator
• Mechanical/Electro-mechanical device
• Converts energy into motion
• Mainly used to provide controlled motion to
other components
Basic Working Principle
• Servo motor
• Stepper motor
• Hydraulic motor
• Solenoid
• Relay
• AC motor
Servo Motor
• }
Servo motor Program …
• voidloop()
• {
• ServoDemo.write(0); //Servo moves to 0 degrees
• delay(1000);
• ServoDemo.write(90); // Servo moves to90 degrees
• delay(1000);