DC motor Servo project

What you need:

- Encoder motor from hp printer
- Atmel mega32 avr set up with 16Mhz crystal
- 12V power supply


Schematics:

full schematic, click to enlarge



you dont have to build it all at once, just what you need for the step your on, but dont take anything apart, cause they all build on each other.



ATmega32 - 40 PIN DIP LAYOUT FOR DECODER AND PWM -
_______________________
ALI <- [ 1]PB0 PA0[40] <- up button
[ 2]PB1 PA1[39] <- down button
[ 3]PB2 PA2[38] -> led
BHI <- [ 4]PB3 PA3[37]
[ 5]PB4 PA4[36]
[ 6]PB5 PA5[35]
[ 7]PB6 PA6[34]
[ 8]PB7 PA7[33]
RESET -> [ 9]RST AREF[32] <- +5V VCC
5V VCC -> [10]VCC GND[31] <- GROUND
GROUND -> [11]GND AVCC[30] <- +5V VCC
16 MHZ XTAL -> [12]XTAL1 PC7[29] -> LCD DATA 7
16 MHZ XTAL -> [13]XTAL2 PC6[28] -> LCD DATA 6
[14]PD0 PC5[27] -> LCD DATA 5
[15]PD1 PC4[26] -> LCD DATA 4
Encoder 1 [16]PD2 PC3[25] -> LCD E
Encoder 2 [17]PD3 PC2[24] -> LCD RS
[18]PD4 PC1[23] -> LCD RW
[19]PD5 PC0[22]
[20]PD6 PD7[21] -> BLI
______________________
 
 
+5V -> AHI







This will be assembled in a series of stages, you should have each stage working before moving on the to next

  1. Flashing led
  2. Buttons
  3. LCD
  4. Motor driver
  5. PWM
  6. Interrupts
  7. Encoder