3 servo claw arm

clranc's picture
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0



This is an AVR-C project that permits the user control of a claw arm 
operated by multiple DC servos through analog and digital input for the 
atmega328p.  The servos managing left, right, up, and down motion are controlled
via an analog stick while the claw is changed from being opened and closed via
pressing a button. 


The motion managing servos are controlled on the PWM signals generated by compares use of the TCNT0 counter 

while the claw servo is managed by the PWM signal controlled by the compare for the TCNT1 counter.  The TCNT0 

increments every 1024 cycles while the TCNT1 increments every 256 cycles.  This is to prevent the counters from 

sending OVF interrupts at the same time when updating their next duty cycle values.