SlideShare a Scribd company logo
1 of 16
Motorized Gesture Controlled Pan-Tilt
Mechanism
A Project report
Student: Kanishka V. Namdeo (BE 3rd
Year)
Guidance:A C Tiwari, Head of Department of Mechanical
Engineering
Roll no. : 0101ME111022
A C TIWARI
HOD, Department of Mechanical Engineering
Objective: Controllingthe two servo
motors with an accelerometer
Servo motor
Servomotors (or servos) areself-contained electric devices that rotate or push
parts of a machine with great precision.
Itis a rotary actuator that allows for precisecontrol of angular position,
velocity and acceleration. Itconsists of a suitable motor coupled to a sensor for
position feedback
As the name suggests, a servomotor is a servomechanism. Morespecifically, it
is a closed-loop servomechanismthatuses position feedback to control its
motion and final position. The input to its controlis some signal, either
analogue or digital, representing the position commanded for the output shaft.
Accelerometer
An accelerometer is an electromechanical device that will measure
acceleration forces. These forces may be static, like the constantforceof
gravity pulling at your feet, or they could be dynamic - caused by moving or
vibrating the accelerometer.
What are accelerometers useful for?
By measuring the amount of static acceleration due to gravity, you can find out
the angle the device is tilted at with respect to the earth. By sensing the
amount of dynamic acceleration, you can analyze the way the device is
moving. At first, measuring tilt and acceleration doesn'tseem all that exciting.
However, engineers have come up with many ways to make really useful
products with them.
Accelerometers havemultiple applications in industry and science. Highly
sensitiveaccelerometers are components of inertial navigation systems for
aircraftand missiles. Accelerometers are used to detect and monitor vibration
in rotating machinery. Accelerometers are used in tablet computers and digital
cameras so that images on screens arealways displayed upright.
Accelerometers are used in drones for flight stabilisation.
Arduino Uno (ATmega328)
The Arduino Uno is a microcontroller board based on
the ATmega328 (datasheet). Ithas 14 digital input/output pins (of which 6 can
be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB
connection, a power jack, an ICSP header, and a reset button. Itcontains
everything needed to supportthe microcontroller; simply connect it to a
computer with a USB cable or power it with an AC-to-DC adapter or battery to
get started.
Summary
Microcontroller ATmega328
Operating Voltage 5V
InputVoltage
(recommended)
7-12V
InputVoltage (limits) 6-20V
Digital I/O Pins 14 (of which 6 providePWMoutput)
Analog InputPins 6
DC Currentper I/O Pin 40 mA
DC Currentfor 3.3V Pin 50 mA
Flash Memory
32 KB (ATmega328) of which 0.5 KB used by
bootloader
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16 MHz
ADXL345( the Accelerometer I used)
The ADXL345 is a small, thin, low power, three-axis MEMS accelerometer with
high resolution (13-bit) measurement up to ±16g. Digital output data is
formatted as 16-bittwos complement and is accessiblethrough either a SPI (3-
or 4-wire) or I2Cdigital interface.
The ADXL345 is well suited for mobile device applications. Itmeasures the
static acceleration of gravity in tilt-sensing applications, as well as dynamic
acceleration resulting frommotion or shock. Its high resolution (4mg/LSB)
enables resolution of inclination changes of as little as 0.25°.
Several special sensing functions areprovided. Activity and inactivity sensing
detect the presenceor lack of motion and if the acceleration on any axis
exceeds a user-setlevel. Tap sensing detects single and double taps. Free-Fall
sensing detects if the device is falling. These functions can be mapped to
interrupt output pins. An integrated 32 level FIFO can be used to storedata to
minimize host processor intervention.
Low power modes enable intelligent motion-based power management with
threshold sensing and active acceleration measurementat extremely low
power dissipation.
Features:
 1.8V to 3.6V supply
 Low Power: 25 to 130uA @ 2.5V
 SPI and I2Cinterfaces
 Up to 13bit resolution at +/-16g
 Tap/Double Tap detection
 Activity/Inactivity monitoring
 Free-Fall detection
Servo Motor used (ES08MA II (9g) Metal gear
Analog Servo)
Other Components used
Breadboard(Solderless)
Jumper Cables
Arduino Software
ADXL345 to Arduino UNO Connection
Servo Motor to UNO Connection
Source Code
#include <Wire.h>
#include <Servo.h>
#define DEVICE (0x53) //ADXL345 device address
#define TO_READ (6) //num of bytes we are going to read each
time (two bytes for each axis)
byte buff[TO_READ] ; //6 bytes buffer for saving data read from the
device
char str[512]; //string buffer to transform data
before sending it to the serial port
Servo myservox;
Servo myservoy;
int pos = 0;
int anglex;
int angley;
void setup()
{
Wire.begin(); // join i2c bus
Serial.begin(115200); // start serial for output
myservox.attach(11);
myservoy.attach(12);
//Turning on the ADXL345
writeTo(DEVICE, 0x2D, 0);
writeTo(DEVICE, 0x2D, 16);
writeTo(DEVICE, 0x2D, 8);
}
void loop()
{
int regAddress = 0x32; //first axis-acceleration-data register on
the ADXL345
int x, y, z;
readFrom(DEVICE, regAddress, TO_READ, buff); //read the acceleration
data from the ADXL345
//each axis reading comes in 10 bit resolution, ie 2 bytes. Least
Significat Byte first!!
//thus we are converting both bytes in to one int
x = (((int)buff[1]) << 8) | buff[0];
y = (((int)buff[3])<< 8) | buff[2];
z = (((int)buff[5]) << 8) | buff[4];
anglex = x;
anglex = constrain(anglex, -279, 279);
angley = y;
angley = constrain(angley, -279, 279);
anglex = map(anglex, -279, 279, 5, 175);
angley = map(angley, -279, 279, 5, 175);
myservox.write(anglex);
myservoy.write(angley);
//we send the x y z values as a string to the serial port
sprintf(str, "%d %d %d", x, y, z);
Serial.print(str);
Serial.write(10);
//It appears that delay is needed in order not to clog the port
delay(15);
}
//---------------- Functions
//Writes val to address register on device
void writeTo(int device, byte address, byte val) {
Wire.beginTransmission(device); //start transmission to device
Wire.write(address); // send register address
Wire.write(val); // send value to write
Wire.endTransmission(); //end transmission
}
//reads num bytes starting from address register on device in to buff
array
void readFrom(int device, byte address, int num, byte buff[]) {
Wire.beginTransmission(device); //start transmission to device
Wire.write(address); //sends address to read from
Wire.endTransmission(); //end transmission
Wire.beginTransmission(device); //start transmission to device
Wire.requestFrom(device, num); // request 6 bytes from device
int i = 0;
while(Wire.available()) //device may send less than requested
(abnormal)
{
buff[i] = Wire.read(); // receive a byte
i++;
}
Wire.endTransmission(); //end transmission
}
Actual photos of the project
Figure 1: Arduino UNO board setup with sensor
Figure 2: sensor wiring
Figure 3: what the actual wiring looks like
Figure 4: motors glued together to perform a pan-tilt mechanism
Motorized pan tilt(Arduino based)

More Related Content

What's hot

Hand Gesture Controlled Wireless Robot
Hand Gesture Controlled Wireless RobotHand Gesture Controlled Wireless Robot
Hand Gesture Controlled Wireless Robotsiddhartha muduli
 
Gesture control robot using accelerometer ppt
Gesture control robot using accelerometer pptGesture control robot using accelerometer ppt
Gesture control robot using accelerometer pptRajendra Prasad
 
Robot arm control through human hand motion
Robot arm control through human hand motionRobot arm control through human hand motion
Robot arm control through human hand motionvignesh viki
 
WIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETER
WIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETERWIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETER
WIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETERLOKENDAR KUMAR
 
Presentation on gesture control robot
Presentation on gesture control robotPresentation on gesture control robot
Presentation on gesture control robotprashant sharma
 
Gulotta_Wright_Parisi_FinalProjectOverview1
Gulotta_Wright_Parisi_FinalProjectOverview1Gulotta_Wright_Parisi_FinalProjectOverview1
Gulotta_Wright_Parisi_FinalProjectOverview1Nicholas Parisi
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARHarshit Jain
 
Astrobot session 5
Astrobot session 5Astrobot session 5
Astrobot session 5osos_a215
 
Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar9766686371
 
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET Journal
 
Wireless gesture controlled robotic arm
Wireless gesture controlled robotic armWireless gesture controlled robotic arm
Wireless gesture controlled robotic armsneha daise paulson
 
How to make a Line Follower Robot
How to make a Line Follower RobotHow to make a Line Follower Robot
How to make a Line Follower RobotroboVITics club
 
Human robot interaction based on gesture identification
Human robot interaction based on gesture identificationHuman robot interaction based on gesture identification
Human robot interaction based on gesture identificationRestin S Edackattil
 
Arduino Ch3 : Tilt Sensing Servo Motor Controller
Arduino Ch3 : Tilt Sensing Servo Motor Controller Arduino Ch3 : Tilt Sensing Servo Motor Controller
Arduino Ch3 : Tilt Sensing Servo Motor Controller Ratzman III
 

What's hot (20)

Hand Gesture Controlled Wireless Robot
Hand Gesture Controlled Wireless RobotHand Gesture Controlled Wireless Robot
Hand Gesture Controlled Wireless Robot
 
Gesture control robot using accelerometer ppt
Gesture control robot using accelerometer pptGesture control robot using accelerometer ppt
Gesture control robot using accelerometer ppt
 
Robot arm control through human hand motion
Robot arm control through human hand motionRobot arm control through human hand motion
Robot arm control through human hand motion
 
CHART FOR PROJECT
CHART FOR PROJECTCHART FOR PROJECT
CHART FOR PROJECT
 
WIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETER
WIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETERWIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETER
WIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETER
 
Obstacle Detection Robot
Obstacle Detection RobotObstacle Detection Robot
Obstacle Detection Robot
 
Presentation on gesture control robot
Presentation on gesture control robotPresentation on gesture control robot
Presentation on gesture control robot
 
Gulotta_Wright_Parisi_FinalProjectOverview1
Gulotta_Wright_Parisi_FinalProjectOverview1Gulotta_Wright_Parisi_FinalProjectOverview1
Gulotta_Wright_Parisi_FinalProjectOverview1
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CAR
 
Astrobot session 5
Astrobot session 5Astrobot session 5
Astrobot session 5
 
Power point presenttation seminar
Power point presenttation seminarPower point presenttation seminar
Power point presenttation seminar
 
2 Digit Object counter
2 Digit Object counter2 Digit Object counter
2 Digit Object counter
 
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
IRJET- Testing the Induction Motor Voltage, Current, Torque, Speed, Power and...
 
Wireless gesture controlled robotic arm
Wireless gesture controlled robotic armWireless gesture controlled robotic arm
Wireless gesture controlled robotic arm
 
How to make a Line Follower Robot
How to make a Line Follower RobotHow to make a Line Follower Robot
How to make a Line Follower Robot
 
Human robot interaction based on gesture identification
Human robot interaction based on gesture identificationHuman robot interaction based on gesture identification
Human robot interaction based on gesture identification
 
Arduino Ch3 : Tilt Sensing Servo Motor Controller
Arduino Ch3 : Tilt Sensing Servo Motor Controller Arduino Ch3 : Tilt Sensing Servo Motor Controller
Arduino Ch3 : Tilt Sensing Servo Motor Controller
 
Robotic Hand
Robotic HandRobotic Hand
Robotic Hand
 
presentation
presentationpresentation
presentation
 
Plc programming course1
Plc programming course1Plc programming course1
Plc programming course1
 

Similar to Motorized pan tilt(Arduino based)

QuickSilver Controls QCI-DS032 QCI-N2-MX
QuickSilver Controls QCI-DS032 QCI-N2-MXQuickSilver Controls QCI-DS032 QCI-N2-MX
QuickSilver Controls QCI-DS032 QCI-N2-MXElectromate
 
Gesture Controlled Chair
Gesture Controlled ChairGesture Controlled Chair
Gesture Controlled Chairtheijes
 
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050Vijay Kumar Jadon
 
Npm motion control_serial_communication_catalog
Npm motion control_serial_communication_catalogNpm motion control_serial_communication_catalog
Npm motion control_serial_communication_catalogElectromate
 
Obstacle avoiding Robot
Obstacle avoiding RobotObstacle avoiding Robot
Obstacle avoiding RobotRasheed Khan
 
Applied motion products st datasheet
Applied motion products st datasheetApplied motion products st datasheet
Applied motion products st datasheetElectromate
 
ADIS1636X iSensor® IMUs
ADIS1636X iSensor® IMUsADIS1636X iSensor® IMUs
ADIS1636X iSensor® IMUsPremier Farnell
 
Design and Development of a prototype of AGV
Design and Development of a prototype of AGVDesign and Development of a prototype of AGV
Design and Development of a prototype of AGVKUNJBIHARISINGH5
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYVishnu
 
Ls catalog thiet bi tu dong i s5_e_1105_dienhathe.vn
Ls catalog thiet bi tu dong i s5_e_1105_dienhathe.vnLs catalog thiet bi tu dong i s5_e_1105_dienhathe.vn
Ls catalog thiet bi tu dong i s5_e_1105_dienhathe.vnDien Ha The
 
Interfacing with Atmega 16
Interfacing with Atmega 16Interfacing with Atmega 16
Interfacing with Atmega 16Ramadan Ramadan
 
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Tawsif Rahman Chowdhury
 
Joystick Controlled Wheelchair
Joystick Controlled WheelchairJoystick Controlled Wheelchair
Joystick Controlled WheelchairIRJET Journal
 
arduino.pdf
arduino.pdfarduino.pdf
arduino.pdfShipra72
 
Maxon maxpos feature chart
Maxon maxpos feature chartMaxon maxpos feature chart
Maxon maxpos feature chartElectromate
 
Short Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoShort Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoIRJET Journal
 

Similar to Motorized pan tilt(Arduino based) (20)

Hexapod ppt
Hexapod pptHexapod ppt
Hexapod ppt
 
Stepper speed control
Stepper speed controlStepper speed control
Stepper speed control
 
QuickSilver Controls QCI-DS032 QCI-N2-MX
QuickSilver Controls QCI-DS032 QCI-N2-MXQuickSilver Controls QCI-DS032 QCI-N2-MX
QuickSilver Controls QCI-DS032 QCI-N2-MX
 
2008 sensor manual
2008 sensor manual2008 sensor manual
2008 sensor manual
 
Gesture Controlled Chair
Gesture Controlled ChairGesture Controlled Chair
Gesture Controlled Chair
 
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
Inertial Measurement Unit-Accelerometer and Gyroscope MPU6050
 
Npm motion control_serial_communication_catalog
Npm motion control_serial_communication_catalogNpm motion control_serial_communication_catalog
Npm motion control_serial_communication_catalog
 
Obstacle avoiding Robot
Obstacle avoiding RobotObstacle avoiding Robot
Obstacle avoiding Robot
 
Applied motion products st datasheet
Applied motion products st datasheetApplied motion products st datasheet
Applied motion products st datasheet
 
ADIS1636X iSensor® IMUs
ADIS1636X iSensor® IMUsADIS1636X iSensor® IMUs
ADIS1636X iSensor® IMUs
 
Design and Development of a prototype of AGV
Design and Development of a prototype of AGVDesign and Development of a prototype of AGV
Design and Development of a prototype of AGV
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIY
 
Ls catalog thiet bi tu dong i s5_e_1105_dienhathe.vn
Ls catalog thiet bi tu dong i s5_e_1105_dienhathe.vnLs catalog thiet bi tu dong i s5_e_1105_dienhathe.vn
Ls catalog thiet bi tu dong i s5_e_1105_dienhathe.vn
 
Interfacing with Atmega 16
Interfacing with Atmega 16Interfacing with Atmega 16
Interfacing with Atmega 16
 
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
Microcontroller based Ultrasonic Radar (Microprocessors and Embedded Systems ...
 
Joystick Controlled Wheelchair
Joystick Controlled WheelchairJoystick Controlled Wheelchair
Joystick Controlled Wheelchair
 
arduino.pdf
arduino.pdfarduino.pdf
arduino.pdf
 
Maxon maxpos feature chart
Maxon maxpos feature chartMaxon maxpos feature chart
Maxon maxpos feature chart
 
Bidirect visitor counter
Bidirect visitor counterBidirect visitor counter
Bidirect visitor counter
 
Short Range Radar System using Arduino Uno
Short Range Radar System using Arduino UnoShort Range Radar System using Arduino Uno
Short Range Radar System using Arduino Uno
 

Recently uploaded

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...Call Girls in Nagpur High Profile
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 

Recently uploaded (20)

Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
High Profile Call Girls Nashik Megha 7001305949 Independent Escort Service Na...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 

Motorized pan tilt(Arduino based)

  • 1. Motorized Gesture Controlled Pan-Tilt Mechanism A Project report Student: Kanishka V. Namdeo (BE 3rd Year) Guidance:A C Tiwari, Head of Department of Mechanical Engineering Roll no. : 0101ME111022 A C TIWARI HOD, Department of Mechanical Engineering
  • 2. Objective: Controllingthe two servo motors with an accelerometer Servo motor Servomotors (or servos) areself-contained electric devices that rotate or push parts of a machine with great precision. Itis a rotary actuator that allows for precisecontrol of angular position, velocity and acceleration. Itconsists of a suitable motor coupled to a sensor for position feedback As the name suggests, a servomotor is a servomechanism. Morespecifically, it is a closed-loop servomechanismthatuses position feedback to control its motion and final position. The input to its controlis some signal, either analogue or digital, representing the position commanded for the output shaft.
  • 3. Accelerometer An accelerometer is an electromechanical device that will measure acceleration forces. These forces may be static, like the constantforceof gravity pulling at your feet, or they could be dynamic - caused by moving or vibrating the accelerometer. What are accelerometers useful for? By measuring the amount of static acceleration due to gravity, you can find out the angle the device is tilted at with respect to the earth. By sensing the amount of dynamic acceleration, you can analyze the way the device is moving. At first, measuring tilt and acceleration doesn'tseem all that exciting. However, engineers have come up with many ways to make really useful products with them. Accelerometers havemultiple applications in industry and science. Highly sensitiveaccelerometers are components of inertial navigation systems for aircraftand missiles. Accelerometers are used to detect and monitor vibration in rotating machinery. Accelerometers are used in tablet computers and digital cameras so that images on screens arealways displayed upright. Accelerometers are used in drones for flight stabilisation.
  • 4. Arduino Uno (ATmega328) The Arduino Uno is a microcontroller board based on the ATmega328 (datasheet). Ithas 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz ceramic resonator, a USB connection, a power jack, an ICSP header, and a reset button. Itcontains everything needed to supportthe microcontroller; simply connect it to a computer with a USB cable or power it with an AC-to-DC adapter or battery to get started.
  • 5. Summary Microcontroller ATmega328 Operating Voltage 5V InputVoltage (recommended) 7-12V InputVoltage (limits) 6-20V Digital I/O Pins 14 (of which 6 providePWMoutput) Analog InputPins 6 DC Currentper I/O Pin 40 mA DC Currentfor 3.3V Pin 50 mA Flash Memory 32 KB (ATmega328) of which 0.5 KB used by bootloader SRAM 2 KB (ATmega328) EEPROM 1 KB (ATmega328) Clock Speed 16 MHz
  • 6. ADXL345( the Accelerometer I used) The ADXL345 is a small, thin, low power, three-axis MEMS accelerometer with high resolution (13-bit) measurement up to ±16g. Digital output data is formatted as 16-bittwos complement and is accessiblethrough either a SPI (3- or 4-wire) or I2Cdigital interface. The ADXL345 is well suited for mobile device applications. Itmeasures the static acceleration of gravity in tilt-sensing applications, as well as dynamic acceleration resulting frommotion or shock. Its high resolution (4mg/LSB) enables resolution of inclination changes of as little as 0.25°. Several special sensing functions areprovided. Activity and inactivity sensing detect the presenceor lack of motion and if the acceleration on any axis exceeds a user-setlevel. Tap sensing detects single and double taps. Free-Fall sensing detects if the device is falling. These functions can be mapped to interrupt output pins. An integrated 32 level FIFO can be used to storedata to minimize host processor intervention. Low power modes enable intelligent motion-based power management with threshold sensing and active acceleration measurementat extremely low power dissipation. Features:  1.8V to 3.6V supply
  • 7.  Low Power: 25 to 130uA @ 2.5V  SPI and I2Cinterfaces  Up to 13bit resolution at +/-16g  Tap/Double Tap detection  Activity/Inactivity monitoring  Free-Fall detection
  • 8. Servo Motor used (ES08MA II (9g) Metal gear Analog Servo)
  • 10. Arduino Software ADXL345 to Arduino UNO Connection
  • 11. Servo Motor to UNO Connection Source Code #include <Wire.h> #include <Servo.h> #define DEVICE (0x53) //ADXL345 device address #define TO_READ (6) //num of bytes we are going to read each time (two bytes for each axis) byte buff[TO_READ] ; //6 bytes buffer for saving data read from the device char str[512]; //string buffer to transform data before sending it to the serial port Servo myservox; Servo myservoy; int pos = 0; int anglex; int angley; void setup() { Wire.begin(); // join i2c bus Serial.begin(115200); // start serial for output myservox.attach(11); myservoy.attach(12); //Turning on the ADXL345 writeTo(DEVICE, 0x2D, 0); writeTo(DEVICE, 0x2D, 16); writeTo(DEVICE, 0x2D, 8);
  • 12. } void loop() { int regAddress = 0x32; //first axis-acceleration-data register on the ADXL345 int x, y, z; readFrom(DEVICE, regAddress, TO_READ, buff); //read the acceleration data from the ADXL345 //each axis reading comes in 10 bit resolution, ie 2 bytes. Least Significat Byte first!! //thus we are converting both bytes in to one int x = (((int)buff[1]) << 8) | buff[0]; y = (((int)buff[3])<< 8) | buff[2]; z = (((int)buff[5]) << 8) | buff[4]; anglex = x; anglex = constrain(anglex, -279, 279); angley = y; angley = constrain(angley, -279, 279); anglex = map(anglex, -279, 279, 5, 175); angley = map(angley, -279, 279, 5, 175); myservox.write(anglex); myservoy.write(angley); //we send the x y z values as a string to the serial port sprintf(str, "%d %d %d", x, y, z); Serial.print(str); Serial.write(10); //It appears that delay is needed in order not to clog the port delay(15); } //---------------- Functions //Writes val to address register on device void writeTo(int device, byte address, byte val) { Wire.beginTransmission(device); //start transmission to device Wire.write(address); // send register address Wire.write(val); // send value to write Wire.endTransmission(); //end transmission } //reads num bytes starting from address register on device in to buff array void readFrom(int device, byte address, int num, byte buff[]) { Wire.beginTransmission(device); //start transmission to device Wire.write(address); //sends address to read from Wire.endTransmission(); //end transmission Wire.beginTransmission(device); //start transmission to device Wire.requestFrom(device, num); // request 6 bytes from device int i = 0;
  • 13. while(Wire.available()) //device may send less than requested (abnormal) { buff[i] = Wire.read(); // receive a byte i++; } Wire.endTransmission(); //end transmission } Actual photos of the project Figure 1: Arduino UNO board setup with sensor
  • 14. Figure 2: sensor wiring Figure 3: what the actual wiring looks like
  • 15. Figure 4: motors glued together to perform a pan-tilt mechanism