UP | HOME

Week11 : Output Device

home up previous next

This is a follow on the idea I started in the input week. Where I have a servo motor move accoring to the light direction.

idea.jpg

I started by designing the servo circuit in Eagle.

servo-circuit.png

tiny44-servo board tiny44-servo schematic

And I milled the PCB.

servo-milled.jpg

I used an Attiny45 circuit that I had ready for testing the code and identified the pin for PWM from the pinout diagram.

attiny-pinout.png

Which I easliy soldered a wire to and used it as my PWM pin, and had to draw the voltage and connect the ground to the pins in the ISP connection.

Tx-Rx-circuit-s.jpg

There are different servos around and each maker has a different color code for the wires that identify the ground, signal and vcc. The following diagram will help

servo-wire-guide.gif

I wrote a simple code that moves the servo between 0 and 180 degrees incrementaly one step at a time, then the servo will turn back to 0 from 180.

I later designed a new circuit based on the attiny45 I used.

servo-circuit-new.png

circuit-traces circuit-interior

eagle-board eagle-schematic

code

home up previous next

Date: 2015-03-30

Author: Salman Oraibi @ Fablab-Bahrain

Created: 2017-11-19 Sun 19:48

Emacs 24.5.1 (Org mode 8.2.10)

Validate