SlideShare a Scribd company logo
1 of 16
Smart Mount
Joseph Gulotta, Nicholas Parisi, Ryan Wright
Description
 Design consists of two servo motors
1. Controls up/down tilt movement
2. Controls left/right tilt movement
Requirements
 Must be able to change vertical angle
 Must be able to change horizontal angle
 Must be able to calculate the vertical angle via the
accelerometer
 Must be able to move to any position easily
Functions
 Tilt the mount up and down
 Tilt the mount right and left
 Calculate the vertical angle
 Be able to set any position easily
Resources
 1 MSP430 LaunchPad Microprocessor
 2 Servo Motors
 1 Accelerometer
 Voltage Divider Circuits
 2 Potentiometers
 Breadboard
 Wires linking the MSP430 to the breadboard
 1 Board to represent a wall
 1 board to represent the mount & monitor
 Power Supply in Lab – May eventually be changed
to an external supply
State Diagram
Set
Vert.
Pos.
Initial
Set
Horz.
Pos.
Calc.
Angle
Final
Pos.
Inputs & Outputs
 Input
 Power Supply in Lab
 Potentiometers
 Effects duty cycle and PWM
 NOTE: PWM does not go through the pot, that would just
decrease the amplitude.
 Team made the initial mistake of putting the PWM into the pot.
 Output
 Servo Arm Positions
 Angle of the vertical tilt
 Accelerometer
Algorithms & Error Handling
 Algorithms
 Turn each servo in their respective direction.
 Done by turning the potentiometer.
 Setting duty cycles
 Calculating angle via the accelerometer
 Error Handling
 Unsure what to put here, more to come soon.
Communication
 The MSP430 will communicate to the servo motors
and provide power
 The voltage divider circuit with the potentiometer will
communicate position to the servo arm
 The accelerometer will communicate the vertical
angle to the user
Coding Practices
 Neat, commented code
 Modular
 Able to be re-used easily
 No hard coding.
 Error Handling
 Informing and specific
 More to be added soon.
 Interfaces
 COBS
 ADC
Software Architecture
 Code Modules – Builds on the servo ADC lab
 Main
 Calls ADCInit() and ServoInit()
 Calls ServoSetDuty, passing in StartADC() and adding 1100 to it.
This is done because the servo may not turn due to the duty cycle
not being in the proper range. The transfer function here simply is
StartADC()+1100.
 Servo.c
 ServoInit(void)
 ServoInit initializes the servo. This sets the timer, output mode, output
pin, and which peripheral will be used. In addition, the period that it will
operate at is 20ms. An initial duty cycle for the PWM is set.
 ServoSetDuty(uint16_t regVal)
 ServoSetDuty looks at the values stored in regVal and compares it to
the upper and lower duty bounds set by Servo.h, making sure that the
duty cycle does not go above or below the bounds set.
 ServoStop
 Stop the servo from performing its current task.
Software Architecture
 Code Modules Continued.
 Servo.h
 Contains macros for upper and lower bounds for the timer, thus
defining the duty cycle’s lower and upper bounds. Also declares
the functions ServoInit(void), ServoSetDuty(uint16_t regVal), and
ServoStop(void).
 Adc.c
 ADCInit()
 Declares registers to enable and control the ADC.
 StartADC(void)
 Starts the analog to digital conversion. While certain registers are
active, whatever is stored in the 10 bit ADC memory register will be
returned.
 Adc.h
 Declares the functions ADCInit() and StartADC(void).
 MSP430_launchpad.h
 Defines Pins & Buttons for the MSP430 launchpad.
Software Architecture
 Code Modules Continued.
 Accelerometer Module
 Accelerometer Read
 Reads the x, y, and z values acceleration data gathered by the
accelerometer.
 Accelerometer Get Data
 I^2C read operation to fetch the data gathered by “Accelerometer
Read”.
 User will use “Accelerometer Get Data” to get the x, y, and z
acceleration data, and return it.
 Use a structure -- pass it in, place data in, pass it back.
 Uint16 inside structure.
Power and Grounding Management
 Power
 Powered from the computer
 Need to get a different supply.
 Grounding
 1 common ground
 Power ground
Safety Assessment
 Don’t overload the servos by putting too much
weight on the end.
 Structure must be stable and not break
 Breaking would cause damage to whatever is being held
up.
 Proper grounding
Documentation
 Lab report complete with pictures and references
 MSP 430 datasheet
 Accelerometer datasheet
 PowerPoint outlining the project
 Gantt Chart outlining our progress

More Related Content

What's hot

Digital object counter (group 12)
Digital object counter (group 12)Digital object counter (group 12)
Digital object counter (group 12)Aviral Srivastava
 
ROBOTIC ARM WITH VOICE CONTROLLED AND IMAGE PROCESSING (1)
ROBOTIC ARM WITH VOICE CONTROLLED AND IMAGE PROCESSING (1)ROBOTIC ARM WITH VOICE CONTROLLED AND IMAGE PROCESSING (1)
ROBOTIC ARM WITH VOICE CONTROLLED AND IMAGE PROCESSING (1)Jayan Kant Duggal
 
Robotic arm control through internet/Lan for patient operation
Robotic arm control through internet/Lan for patient operationRobotic arm control through internet/Lan for patient operation
Robotic arm control through internet/Lan for patient operationSuchit Moon
 
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
 
BLDC Motor Speed Control with RPM Display and PWM
BLDC Motor Speed Control with RPM Display and PWMBLDC Motor Speed Control with RPM Display and PWM
BLDC Motor Speed Control with RPM Display and PWMEdgefxkits & Solutions
 
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
 
Automatic railway gate control using microcontroller
Automatic railway gate control using microcontrollerAutomatic railway gate control using microcontroller
Automatic railway gate control using microcontrollerpukeshwar harmukh
 
Stepper motor-interfacing
Stepper motor-interfacingStepper motor-interfacing
Stepper motor-interfacingLecturer
 
E bike bldc motor test set up
E bike bldc motor test set upE bike bldc motor test set up
E bike bldc motor test set upDhaneshwar Patil
 
Biratnagar Robotics Club, Nepal
Biratnagar Robotics Club, NepalBiratnagar Robotics Club, Nepal
Biratnagar Robotics Club, NepalSarwar Alam Ansari
 
Line Following Robot
Line Following RobotLine Following Robot
Line Following RobotVikram Jha
 

What's hot (20)

Arm
ArmArm
Arm
 
Digital object counter (group 12)
Digital object counter (group 12)Digital object counter (group 12)
Digital object counter (group 12)
 
ROBOTIC ARM WITH VOICE CONTROLLED AND IMAGE PROCESSING (1)
ROBOTIC ARM WITH VOICE CONTROLLED AND IMAGE PROCESSING (1)ROBOTIC ARM WITH VOICE CONTROLLED AND IMAGE PROCESSING (1)
ROBOTIC ARM WITH VOICE CONTROLLED AND IMAGE PROCESSING (1)
 
Robotic arm control through internet/Lan for patient operation
Robotic arm control through internet/Lan for patient operationRobotic arm control through internet/Lan for patient operation
Robotic arm control through internet/Lan for patient operation
 
Object counter
Object counterObject counter
Object counter
 
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
 
BLDC Motor Speed Control with RPM Display and PWM
BLDC Motor Speed Control with RPM Display and PWMBLDC Motor Speed Control with RPM Display and PWM
BLDC Motor Speed Control with RPM Display and PWM
 
Stepper speed control
Stepper speed controlStepper speed control
Stepper speed control
 
Drone
DroneDrone
Drone
 
WIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETER
WIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETERWIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETER
WIRELESS GESTURED CONTROLLED ROBOT USING ACCELEROMETER
 
Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051Interfacing Stepper motor with 8051
Interfacing Stepper motor with 8051
 
Presentation on gesture control robot
Presentation on gesture control robotPresentation on gesture control robot
Presentation on gesture control robot
 
Obstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic VehicleObstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic Vehicle
 
Automatic railway gate control using microcontroller
Automatic railway gate control using microcontrollerAutomatic railway gate control using microcontroller
Automatic railway gate control using microcontroller
 
Obstacle Detection Robot
Obstacle Detection RobotObstacle Detection Robot
Obstacle Detection Robot
 
Stepper motor-interfacing
Stepper motor-interfacingStepper motor-interfacing
Stepper motor-interfacing
 
E bike bldc motor test set up
E bike bldc motor test set upE bike bldc motor test set up
E bike bldc motor test set up
 
Biratnagar Robotics Club, Nepal
Biratnagar Robotics Club, NepalBiratnagar Robotics Club, Nepal
Biratnagar Robotics Club, Nepal
 
Line Following Robot
Line Following RobotLine Following Robot
Line Following Robot
 
Atul
AtulAtul
Atul
 

Viewers also liked

Viewers also liked (16)

Mutual funds & schemes
Mutual funds & schemesMutual funds & schemes
Mutual funds & schemes
 
eLybra A4 - Dec 2016 (6)
eLybra A4 - Dec 2016 (6)eLybra A4 - Dec 2016 (6)
eLybra A4 - Dec 2016 (6)
 
Divya raj
Divya rajDivya raj
Divya raj
 
Group4
Group4Group4
Group4
 
ratios subhash
ratios subhashratios subhash
ratios subhash
 
Actividad tic´s
Actividad tic´sActividad tic´s
Actividad tic´s
 
ASIWA PRESENTATION
ASIWA PRESENTATIONASIWA PRESENTATION
ASIWA PRESENTATION
 
Discos duros
Discos durosDiscos duros
Discos duros
 
Brug_af_smart_meter_data
Brug_af_smart_meter_dataBrug_af_smart_meter_data
Brug_af_smart_meter_data
 
Trabajo empresa (1)
Trabajo empresa (1)Trabajo empresa (1)
Trabajo empresa (1)
 
Número áureo
Número áureoNúmero áureo
Número áureo
 
ASHOK V CV
ASHOK V CVASHOK V CV
ASHOK V CV
 
Biodata peserta koleksi museum
Biodata peserta koleksi museumBiodata peserta koleksi museum
Biodata peserta koleksi museum
 
2015Interface Design_Moti
2015Interface Design_Moti 2015Interface Design_Moti
2015Interface Design_Moti
 
Explanation of soorat al kahf
Explanation of soorat al kahfExplanation of soorat al kahf
Explanation of soorat al kahf
 
Modern views on the legal system February 27, 2016
Modern views on the legal system February 27, 2016Modern views on the legal system February 27, 2016
Modern views on the legal system February 27, 2016
 

Similar to Two Servo Smart Mount Controls Position & Angle

IISC CPDM Task 1 Report
IISC CPDM Task 1 ReportIISC CPDM Task 1 Report
IISC CPDM Task 1 ReportPARNIKA GUPTA
 
Interfacing with Atmega 16
Interfacing with Atmega 16Interfacing with Atmega 16
Interfacing with Atmega 16Ramadan Ramadan
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and RoboticsNIT Raipur
 
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
 
Tachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor controlTachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor controlSushil Mishra
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARHarshit Jain
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsPallavi Bharti
 
project report on embedded system
project report on embedded systemproject report on embedded system
project report on embedded systemram avtar
 
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
 
Tolomatic electric stepper products brochure
Tolomatic electric stepper products brochureTolomatic electric stepper products brochure
Tolomatic electric stepper products brochureElectromate
 
Amp bluac5 specsheet
Amp bluac5 specsheetAmp bluac5 specsheet
Amp bluac5 specsheetElectromate
 
POSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEMPOSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEMKEVSER CARPET
 
Joystick Controlled Wheelchair
Joystick Controlled WheelchairJoystick Controlled Wheelchair
Joystick Controlled WheelchairIRJET Journal
 
Aircraft master warning system with ftc prompting
Aircraft master warning system with ftc promptingAircraft master warning system with ftc prompting
Aircraft master warning system with ftc promptingSudhanshu Janwadkar
 

Similar to Two Servo Smart Mount Controls Position & Angle (20)

chapter 4
chapter 4chapter 4
chapter 4
 
IISC CPDM Task 1 Report
IISC CPDM Task 1 ReportIISC CPDM Task 1 Report
IISC CPDM Task 1 Report
 
Interfacing with Atmega 16
Interfacing with Atmega 16Interfacing with Atmega 16
Interfacing with Atmega 16
 
Microcontroller part 3
Microcontroller part 3Microcontroller part 3
Microcontroller part 3
 
Training Report on embedded Systems and Robotics
Training Report on embedded  Systems and RoboticsTraining Report on embedded  Systems and Robotics
Training Report on embedded Systems and Robotics
 
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
 
Tachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor controlTachometer using AT89S52 microcontroller with motor control
Tachometer using AT89S52 microcontroller with motor control
 
ACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CARACCELEROMETER BASED GESTURE ROBO CAR
ACCELEROMETER BASED GESTURE ROBO CAR
 
Industrial training report of embedded system and robotics
Industrial training report of embedded system and roboticsIndustrial training report of embedded system and robotics
Industrial training report of embedded system and robotics
 
project report on embedded system
project report on embedded systemproject report on embedded system
project report on embedded system
 
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
 
Tolomatic electric stepper products brochure
Tolomatic electric stepper products brochureTolomatic electric stepper products brochure
Tolomatic electric stepper products brochure
 
final report
final reportfinal report
final report
 
Assembler4
Assembler4Assembler4
Assembler4
 
Amp bluac5 specsheet
Amp bluac5 specsheetAmp bluac5 specsheet
Amp bluac5 specsheet
 
POSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEMPOSITION ANALYSIS OF DIGITAL SYSTEM
POSITION ANALYSIS OF DIGITAL SYSTEM
 
Joystick Controlled Wheelchair
Joystick Controlled WheelchairJoystick Controlled Wheelchair
Joystick Controlled Wheelchair
 
Bidirect visitor counter
Bidirect visitor counterBidirect visitor counter
Bidirect visitor counter
 
Aircraft master warning system with ftc prompting
Aircraft master warning system with ftc promptingAircraft master warning system with ftc prompting
Aircraft master warning system with ftc prompting
 
Servo 2.0
Servo 2.0Servo 2.0
Servo 2.0
 

Two Servo Smart Mount Controls Position & Angle

  • 1. Smart Mount Joseph Gulotta, Nicholas Parisi, Ryan Wright
  • 2. Description  Design consists of two servo motors 1. Controls up/down tilt movement 2. Controls left/right tilt movement
  • 3. Requirements  Must be able to change vertical angle  Must be able to change horizontal angle  Must be able to calculate the vertical angle via the accelerometer  Must be able to move to any position easily
  • 4. Functions  Tilt the mount up and down  Tilt the mount right and left  Calculate the vertical angle  Be able to set any position easily
  • 5. Resources  1 MSP430 LaunchPad Microprocessor  2 Servo Motors  1 Accelerometer  Voltage Divider Circuits  2 Potentiometers  Breadboard  Wires linking the MSP430 to the breadboard  1 Board to represent a wall  1 board to represent the mount & monitor  Power Supply in Lab – May eventually be changed to an external supply
  • 7. Inputs & Outputs  Input  Power Supply in Lab  Potentiometers  Effects duty cycle and PWM  NOTE: PWM does not go through the pot, that would just decrease the amplitude.  Team made the initial mistake of putting the PWM into the pot.  Output  Servo Arm Positions  Angle of the vertical tilt  Accelerometer
  • 8. Algorithms & Error Handling  Algorithms  Turn each servo in their respective direction.  Done by turning the potentiometer.  Setting duty cycles  Calculating angle via the accelerometer  Error Handling  Unsure what to put here, more to come soon.
  • 9. Communication  The MSP430 will communicate to the servo motors and provide power  The voltage divider circuit with the potentiometer will communicate position to the servo arm  The accelerometer will communicate the vertical angle to the user
  • 10. Coding Practices  Neat, commented code  Modular  Able to be re-used easily  No hard coding.  Error Handling  Informing and specific  More to be added soon.  Interfaces  COBS  ADC
  • 11. Software Architecture  Code Modules – Builds on the servo ADC lab  Main  Calls ADCInit() and ServoInit()  Calls ServoSetDuty, passing in StartADC() and adding 1100 to it. This is done because the servo may not turn due to the duty cycle not being in the proper range. The transfer function here simply is StartADC()+1100.  Servo.c  ServoInit(void)  ServoInit initializes the servo. This sets the timer, output mode, output pin, and which peripheral will be used. In addition, the period that it will operate at is 20ms. An initial duty cycle for the PWM is set.  ServoSetDuty(uint16_t regVal)  ServoSetDuty looks at the values stored in regVal and compares it to the upper and lower duty bounds set by Servo.h, making sure that the duty cycle does not go above or below the bounds set.  ServoStop  Stop the servo from performing its current task.
  • 12. Software Architecture  Code Modules Continued.  Servo.h  Contains macros for upper and lower bounds for the timer, thus defining the duty cycle’s lower and upper bounds. Also declares the functions ServoInit(void), ServoSetDuty(uint16_t regVal), and ServoStop(void).  Adc.c  ADCInit()  Declares registers to enable and control the ADC.  StartADC(void)  Starts the analog to digital conversion. While certain registers are active, whatever is stored in the 10 bit ADC memory register will be returned.  Adc.h  Declares the functions ADCInit() and StartADC(void).  MSP430_launchpad.h  Defines Pins & Buttons for the MSP430 launchpad.
  • 13. Software Architecture  Code Modules Continued.  Accelerometer Module  Accelerometer Read  Reads the x, y, and z values acceleration data gathered by the accelerometer.  Accelerometer Get Data  I^2C read operation to fetch the data gathered by “Accelerometer Read”.  User will use “Accelerometer Get Data” to get the x, y, and z acceleration data, and return it.  Use a structure -- pass it in, place data in, pass it back.  Uint16 inside structure.
  • 14. Power and Grounding Management  Power  Powered from the computer  Need to get a different supply.  Grounding  1 common ground  Power ground
  • 15. Safety Assessment  Don’t overload the servos by putting too much weight on the end.  Structure must be stable and not break  Breaking would cause damage to whatever is being held up.  Proper grounding
  • 16. Documentation  Lab report complete with pictures and references  MSP 430 datasheet  Accelerometer datasheet  PowerPoint outlining the project  Gantt Chart outlining our progress