e-toy Posted September 21, 2007 Report Share Posted September 21, 2007 well, I have read a lot of threads about PWM and stepper motors and so on, but I couldnt find an final answer that helps me to answer my next question.I like to control some RC servos with the MB64. That means the DOUT have to output an PWM signal.I'ts not really highspeed clocked ... every 20ms a pulse of 1ms (min. value) to 2 ms (max.value). I have read that PWM needs very much performance, but I dont know if this relative slow PWM is also too much for an PIC (in the case that there are 4 to 16 such PWM needet). And finaly I have no idea how I could programm such a PWM "option" ::).someone tried this ?any hints ?Thanks e-toy Quote Link to comment Share on other sites More sharing options...
stryd_one Posted September 22, 2007 Report Share Posted September 22, 2007 Ahhh PWM... It's like the $64000 question around here lately!There's a PWM peripheral on the PIC, has anyone aside from TK used it and feels like explaining it to us all? I've got a rough idea, so I'll step up and learn the rest if needed... But I don't want to reinvent the wheel if someone already knows ;)Anyhow, that's just the one output, not 4-16, so I don't know if this is the right way to go for you e-toy. Quote Link to comment Share on other sites More sharing options...
bill Posted October 5, 2007 Report Share Posted October 5, 2007 where is my post about aout and ne555 ??? out of topic ??? Quote Link to comment Share on other sites More sharing options...
stryd_one Posted October 5, 2007 Report Share Posted October 5, 2007 Sorry mate you replied to a crosspost&hijack (not your fault) and I had to do a cleanup... It's : Re: Organ Swell Shades Control Quote Link to comment Share on other sites More sharing options...
bill Posted November 20, 2007 Report Share Posted November 20, 2007 I have read that PWM needs very much performance, but I dont know if this relative slow PWM is also too much for an PIC (in the case that there are 4 to 16 such PWM needet). And finaly I have no idea how I could programm such a PWM "option" someone tried this ?any hints ?Check this :http://www.hobbyengineering.com/H1591.htmlhttp://www.crownhill.co.uk/product.php?prod=1267(looks very interesting, i ordered one!)I plan to try it, but maybe only after my mbhp stepper motor driver :) Quote Link to comment Share on other sites More sharing options...
Sasha Posted November 20, 2007 Report Share Posted November 20, 2007 I plan to try it, but maybe only after my mbhp stepper motor driver SmileyAnother project you working on I`m very interested in. :) Quote Link to comment Share on other sites More sharing options...
bill Posted November 27, 2007 Report Share Posted November 27, 2007 I like to control some RC servos with the MB64. Hmm, i wonder : what do you plan to do with servos ?(i just received my i2c servo driver... stay tuned ;) Quote Link to comment Share on other sites More sharing options...
bill Posted November 27, 2007 Report Share Posted November 27, 2007 I have this document : http://www.roboter-teile.de/datasheets/sd20.pdfcan someone translate this to me :Das ist der Einschaltzustand. Der Stellbereich geht von 1ms bis 2ms bei 1,5ms Mittelstellung(entspricht der RC-Modellbau Spezifikation). Um in den Standard Modus zurückzukommen(falls zuvor in den erweiterten Modus gegangen wurde), muss eine 0 (Null) in das Reg 21geschrieben werden. Werte von 1 - 255 (0x01 - 0xff) im Reg 21 schalten in den ErweitertenModus.I dont understand a german word, and google translator didn't help me much :(Should i write something to register 21 before i can use standard mode ? :-\ Quote Link to comment Share on other sites More sharing options...
audiocommander Posted November 27, 2007 Report Share Posted November 27, 2007 Hi Bill,it sais:This is the state when switched "on". Selectable values range from 1ms to 2ms (1.5ms middle) like the RC-model specification). When the extended Mode has been selected, you can switch back to standard mode by writing a 0 (zero) to register 21. Values from 1 - 255 (0x01 - 0xff) in register 21 switch to extended modeHope this helps ;)Best,Michael Quote Link to comment Share on other sites More sharing options...
bill Posted November 28, 2007 Report Share Posted November 28, 2007 Thank you Michael ;D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.