25
EYE LEVEL STABILIZER Name: TurkiAlfagheeh Graduation Project(1) Student ID: 08407301 20/05/2011

Eye Level Stabilizer

Embed Size (px)

Citation preview

Page 1: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 1/25

Page 2: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 2/25

Contents The project

Introduction

Project objectives

Applications + example

Briefly how

Current progress Hardware wise + circuit diagrams

Software wise + code sections

Problem faced Hardware problems

Software problems

Current problems

The Time plan

Page 3: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 3/25

Introduction

It is a setting that consists of an

accelerometer sensing any tilt and two servo

motors that would act to compensate for thechange

Keeping the camera on level with the horizonat all time regardless to motion.

Page 4: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 4/25

Project Objectives

Studying the applications of the

Accelerometer sensors.

Getting familiar with interfacing servomotors.

Assemble the project for the most portability.

Utilize the MCU code for efficiency.

Manipulate speed versus accuracy.

Page 5: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 5/25

Page 6: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 6/25

Page 7: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 7/25

Briefly how

The sensor Movement concept

Current gravitational acceleration+ the new one

Page 8: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 8/25

Briefly how

Capturing each axis voltageMCU converting it into PWM signal

PWM control the direction and

angle of the Servo

Two Servo attached for both axis

Page 9: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 9/25

Current Progress

70% of prototype.

Full sensor communication. Calibrated servo motors.

Filtered noise.

Page 10: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 10/25

Hardware

Part name Quantity Reasons for usage

AVRAtmega 128 1 Familiarity + multiple timers with internal clock

MMA7260Q 3-axis

accelerometer

1 High sensitivity+ availability of English datasheet

Hitec HS-311 motor 2 Easy to configure + light weight + affordable

Voltage regulatorKIA278R33PI

1 To provide 3.3 volts required for the sensor.

AVR ISP MKll 1 Flashing the MCU with code.

DC adapter 1 Powering the whole prototype.Capacitors 11 Filtering and interfacing

Resistors 9 Surge protection + interfacing

Page 11: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 11/25

Hardware Current progress

Page 12: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 12/25

Hardware Current progress

Page 13: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 13/25

Hardware Current progress

Page 14: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 14/25

Hardware (Circuit Diagram)

Page 15: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 15/25

Hardware (Circuit Diagram)

Power regulating

Servo motors interfacing

Page 16: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 16/25

Hardware (Circuit Diagram)

Sensor Pins configuration

Sensor interfacing

Page 17: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 17/25

Software current progress

80% of total desired progress.

Array setup to accomplish 2 channel in-out/ Resetting position at start up.

Utilizing 80 degree of the servo motor on

each direction. Offsetting the center position.

Page 18: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 18/25

Code sections

Page 19: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 19/25

Code sections

Page 20: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 20/25

Code sections

Page 21: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 21/25

Problem Faced (Hardware)

Servo Motor response varies greatly with

noise, solved by extra filtering.

Burned accelerometer due to excessivecurrent.

Finding parts that are common in my country

or accelerometer with proper English Datesheet.

Page 22: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 22/25

Problem Faced (Software)

Started writing the program as direct data conversionone line which result in complex logic when declaring

interchangeable variables.

Solved by making many functions and smallsimple main function.

Started by programming only for one axis and onereading which made it difficult to add another channel.

Solved by using array reading variables nested in multi loops.

Page 23: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 23/25

Current problems

Getting both speed and accuracy from the

servo motor is tricky because the servo motor

has only 50 steps for the range of 90 degreewhich cause vibration.

Finding a suitable camera module todemonstrate the prototype.

Making the project source independent

without losing power for motors.

Page 24: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 24/25

Time Plan

Tasks Mar Apr May Jun July Aug Sep Oct Nov Dec

Getting the Hardware

Design Hardware circuit

Coding sensor readings

Coding outputs to Servos

Calibration and filtering

Testing initial prototype

Fix speed issue

Change powering source

Repackage in smaller size

Testing final project

Page 25: Eye Level Stabilizer

8/6/2019 Eye Level Stabilizer

http://slidepdf.com/reader/full/eye-level-stabilizer 25/25

Thank You for Listening