Week TEN : Output Devices

Assignment :

•Add an output device to a micro controller board you’ve designed and program it to do something.

There many output devices such as :

1-Servo : a servomotor is a rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity and acceleration. It consists of a suitable motor coupled to a sensor for position feedback.

and this is the connection graph for servomotor

2-LCD : A liquid-crystal display (LCD) is a flat-panel display or other electronically modulated optical device that uses the light-modulating properties of liquid crystals. Liquid crystals do not emit light directly, instead using a backlight or reflector to produce images in color or monochrome

and there are a lot more output devices for example,LED array, speaker, RGB LED and varieties of motors like brush dc, brushless dc, stepper etc

What I did :


I will program my board to move a servo motor: which is a rotary actuator or linear actuator that allows for precise control of angular or linear position, velocity and acceleration.[1] It consists of a suitable motor coupled to a sensor for position feedback. It also requires a relatively sophisticated controller, often a dedicated module designed specifically for use with servomotors. (Wikipedia)
I choose servo motor because my potential final project contains servo motor.
Design:

I am using Attiny 45 and my servo motor is connected to PB3 pin
.
.

.
.

This is my Schematic design in eagle :
.
.

.
.
and this is the board design :
.
.

.
.

Since I am using connection pis that needs drilling holes in the board the bottom layer copper will short circuit them so I had to remove it using electric grinder
.

.

Then I soldered the pins, checked the shorts and everything is good
.

.

.

Programming :

I used this code to program the board to move the servomotor note that the Servo is connected to pin no. 0 and I have to download the Arduino servo library :



This is the video of the output :

Download Files :

Download brd file here


Download sch file here


Previous Page Home Next Page