Home 2018 Forums Crumble Support Motor Outputs: Spec please!

Tagged: , ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2242
    Mike
    Participant

    Hi,

    I’ve been experimenting and it looks like the motor outputs are PWM? Could you confirm the expected output as we set the motors forward and back from 0-100%, including the frequency, please?

    I’ve hit the problem that I have a little DC motor which won’t run on the motor outputs, whatever I set them to, but it runs fine if I just attach it to the 5V supply.

    I would like to control it though, so I’m trying to work out the least possible hardware to do this through the crumble…

    Many thanks!

    Mike

    • This topic was modified 5 years, 4 months ago by Mike.
    #2248
    Joseph
    Keymaster

    Hi Mike,

    The PWM frequency is very close to 1kHz (it uses the same timer to measure ms). The percentage represents the duty cycle, so at 100% you should not see any PWM.

    External power does need to be connected to run the motors (i.e. not just USB). If you have power connected (e.g. batteries), you can check connection by attaching the motor directly to the other, free, power pads on the Crumble. You may have already done this though?

    Joseph

    #2251
    Mike
    Participant

    Many thanks Joseph! I will try again in a moment. Maybe there’s a current limit on the motor drive pads or something else getting in the way of it just working… :/

    #2252
    Joseph
    Keymaster

    There is over-current and thermal protection. It’s possible the startup current is too high, but I’d be surprised if it didn’t work and any power (%) level. Does it make any whining sounds?

    The motor driver is a DRV8835, so good for up to 1.5A.

    Joseph

    #2258
    Mike
    Participant

    Hi,

    Not working. It’s fine on 5v from the battery pack. On the motor pads it just whines with motor set to FORWARD 100%.

    Hopefully you can see the setup in the picture. It’s just a little fan motor I ripped from a broken laptop…

    DC motor failing to work on motor pads

    #2259
    Mike
    Participant

    sorry – image problems…

    motor

    • This reply was modified 5 years, 4 months ago by Mike.
    #2263
    Joseph
    Keymaster

    Hmmm… It sounds like the output is not reaching 100% duty, and still pulsing. I think those little fans have a brushless motor controlled by an IC, so a PWM output could mess it up. I will investigate tomorrow (not near my scope at the moment).

    Joseph

    #2281
    Joseph
    Keymaster

    Looks like little bug, sort of. At 100% the motor isn’t quite full on. I said, ‘sort of’, because I now recall doing it on purpose: the motor driver overcurrent trip gets reset every PWM cycle, so it behaves better with larger startup currents.

    I look at changing this in future version, but would like to do a couple of test first.

    You can cheat however by using a variable to set the power to 101% 🙂

    Joseph

    • This reply was modified 5 years, 4 months ago by Joseph.
    Attachments:
    You must be logged in to view attached files.
    #2286
    Mike
    Participant

    Oh you evil genius! 🙂

    Works perfectly.

    TYVM

    • This reply was modified 5 years, 4 months ago by Mike.
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.