RC ServosRC Servo Internalshttp://www.servocity.com/assets/images/Servo_Breakdown.jpgServo Control Loophttp://www-cdr.stanford.edu/dynamic/servo/servoloop.gifBlock Diagramhttp://www.digitalnemesis.com/info/docs/rcservo/resources/servodiagram1.png BJ Furman | ME 106 Intro to Mechatronics | RC servos.doc | 05OCT2010 Page 1 of 2http://pcbheaven.com/scripts/imagepresent.php?filename=%2Fwikipages%2Fimages%2Fhowservoswork_1245415989.jpgRC ServosGenerating the RC Servo Control Signal (PWM waveform)Uses the ATmega16 timer/counter 0Figure 6. How OCR0 Controls Duty Cycle. The figure demonstrates how the OCR0 value is used to control the duty cycle for Phase Correct PWM. The OC0 pin is initially at 5V, and once the counter reaches the OCR0 value, the OC0 pin is set to low. OC0 is pulled high when the counter reaches the OCR0 valueagain.TCCR0 InitializationWhat byte is stored in TCCR0? BJ Furman | ME 106 Intro to Mechatronics | RC servos.doc | 05OCT2010 Page 2 of 2http://www.pinballmedic.net/images/parts/typical_flipper_assembly_sm.jpgExample Coil SpecsStern flipper solenoid dual winding coil.Specifications: Wire Gauge: 22 /30Number of turns: 750 /2600Resistance in ohms: 2.6 / 92http://www.marcospecialties.com/storeitems.asp?cc=COIL void init() {//Initialize Timer0TCCR0 = _BV(WGM00) | _BV(COM01) | _BV(CS02);//Enable outputDDRB |= _BV(PB3);//Initialize the UART.uart_init();
View Full Document