Squirrels have fuzzy tails.
0 Members and 1 Guest are viewing this topic.
all pwm is is a PULSE WIDTH that is modulated eh?
eg. you send a pulse and wait 1.5ms for center etc...
Hi,Quote from: SmAsH on April 12, 2009, 09:08:16 AMall pwm is is a PULSE WIDTH that is modulated eh? And exactly how do you modulate a width??
Hi,Quote from: SmAsH on April 12, 2009, 09:08:16 AMall pwm is is a PULSE WIDTH that is modulated eh? And exactly how do you modulate a width?? Quote from: SmAsH on April 12, 2009, 09:08:16 AMeg. you send a pulse and wait 1.5ms for center etc...No, You send a pulse that IS 1.5 ms wide (for center position), then wait for around 17..18 ms before repeating the stunt.
void servo_left(signed long int speed) { PORT_ON(PORTD, 0); delay_cycles(speed); PORT_OFF(PORTD, 0);//keep off delay_cycles(200); }
Look in the $50 robot sor_utils.hIt saysCode: [Select]void servo_left(signed long int speed) { PORT_ON(PORTD, 0); delay_cycles(speed); PORT_OFF(PORTD, 0);//keep off delay_cycles(200); }It's saying turn on portd wait for 1ms to 2ms turn portd off. Then wait around 9ms and do it again. You specify the 1-2ms delay to choose the position of the servo. Write a similair function to this and you'll be good.
Thanks for the info, but I don't really need it (I played with micros, servos and lots of other stuff back when you were probably just a glimpse in your fathers eye, or even long before he had such thoughts
was merely pointing out that you cannot modulate a "width", that expression doesn't make sense at all and in electronics, as well as in all other technical science, you have to be precise in your statements.
BTW. A cycle time of 10ms might easily be too short for some servos, the specified nominal cycle time of the R/C protocol is 50Hz/20ms (not 60Hz like you might read somewhere around the net).
Wow, a little rude.
I didn't use the word width in my reply at all, although that is the name of this technique, I don't know why, because as you said that expression doesn't make any sense.
hes not really stuck, like 8 spare ports for him to use, and how the hell do you do that?
by dx7 do you mean jackson DX7? ive been wanting to get my hands on one of those sweet babies for ever now!