Strange issue with motor PWM output

I'm using a homemade Quad with the beta3 code following the guide for a clean setup but I'm having major issues getting the PWM output to work right or at all. I though it may be H/W at first so I calibrated my ESCs, tried them directly (from receiver) and they work fine. So I then tried the example pde for the RC and that drives the motors fine through the ACM. But even after a clean rebuild of the code and setup the ACM code doesn't drive the motors. The motors arm (green light goes from solid to flashing) but no RPM.After a trying a few things I managed to get it working but had to move the line, "set_servos_4();" which outputs the servo values,down to the 50Hz loop (from the 160Hz loop). With that changed the code works perfectly, all be it requiring a little tunning as its oscillatory. Has anyone got any ideas what this is about or why it happening? I haven't seen anyone report the same issue, so it makes me think it is bad H/W or something I've done wrong. The ESCs don't complain about no signal, so it makes me think the PWM is almost good or really high frequency some thing must be getting outputted; I'll try to get an oscilloscope trace.I currently have my quad in a rig allowing pitch only +-50deg so I can tune the controller on the bench. Hence why I was willing to try the drastic code hack!!BTW, great project guys, it's my childhood dream come true. Just wish I had a bit more time so I could contribute and give something back. Maybe one day.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    Whats escs are you using. id suggest your escs cant handle that update rate. whereas the kit ones can
This reply was deleted.

Activity