Beginners: please read this post and this post before posting to the forum.
0 Members and 1 Guest are viewing this topic.
I believe the rule of thumb is like 3 pulses for analog servos
QuoteI believe the rule of thumb is like 3 pulses for analog servoswouldnt that depend on the freq of the pulses?
well , i dont have an osci , what should i do? when turning 2 degrees, how can i be sure its setteledat minimum time?
i just wanna change the control pulses width, not stop em.so the servo should still draw current even after setteling , right? (to keep torque)or then it will be loose
#define TIMER1_OUTPUT_A = 0x80,#define TIMER1_PRESCALER_8 0x02#define TIMER1_WGM_A_PC_ICR_PWM 0x02 /* Wave generation mode settings for register A */#define TIMER1_WGM_B_PC_ICR_PWM 0x12
// Initialize Timer1 to Phase and Frequency correct PWM mode with ICR as top. TCCR1A |= TIMER1_WGM_A_PC_ICR_PWM; TCCR1B |= TIMER1_WGM_B_PC_ICR_PWM; // Set Timer1 prescaler. TCCR1B |= TIMER1_PRESCALER_8; // Set Timer1 top value using a base frequency of 50Hz and a prescaler of 1. // The equation is topValue = CLOCK_FREQUENCY / (baseFrequency * prescaler * 2) ICR1 = (unsigned int)20000; // Set Timer1 default compare values. OCR1A = 1500; OCR1B = 1500; OCR1C = 1500; // This turns on out to pin A. TCCR1A |= TIMER1_OUTPUT_A; DDRB |= 1 << 5;