Eye Level Stabilizer

Preview:

Citation preview

8/6/2019 Eye Level Stabilizer

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

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

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.

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.

8/6/2019 Eye Level Stabilizer

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

8/6/2019 Eye Level Stabilizer

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

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

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

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.

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

8/6/2019 Eye Level Stabilizer

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

Hardware Current progress

8/6/2019 Eye Level Stabilizer

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

Hardware Current progress

8/6/2019 Eye Level Stabilizer

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

Hardware Current progress

8/6/2019 Eye Level Stabilizer

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

Hardware (Circuit Diagram)

8/6/2019 Eye Level Stabilizer

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

Hardware (Circuit Diagram)

Power regulating

Servo motors interfacing

8/6/2019 Eye Level Stabilizer

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

Hardware (Circuit Diagram)

Sensor Pins configuration

Sensor interfacing

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.

8/6/2019 Eye Level Stabilizer

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

Code sections

8/6/2019 Eye Level Stabilizer

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

Code sections

8/6/2019 Eye Level Stabilizer

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

Code sections

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.

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.

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.

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

8/6/2019 Eye Level Stabilizer

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

Thank You for Listening