Hbridge deck design for bidirectional motor control
Posted: Tue May 03, 2022 2:21 am
This post is a followup on this older thread: viewtopic.php?p=24295&sid=70c32a9a98c96 ... 4b0f8f0752
---------------------------
Hello!
We also have a small research project going on for which we'll need to get bidirectionnal control of our Crazyflies motors. We managed to do it, for larger models, using the ESC+Bolt setup, but we now want to control the tiny Crazyflie motors with a dedicated custom deck. We plan to populate our deck with 4 H-bridges, such as https://www.digikey.ca/en/products/deta ... R/15286883. We will hook them to the PWM signals (as it is done on the BigQuad deck https://github.com/bitcraze/hardware/bl ... rev-c1.pdf), and several digital pins (ideally 2 are required for each H-bridge to get sleep and brake features). Do you have any other recommendation on the H-bridge chip or does anyone have tried this before?
Our current options for the digital inputs are:
- get 4 available digital outputs from the CF expansion pinout to control the Hbridge direction (forward and reverse have opposite signal - we lose the brake and sleep features);
- add an I2C chip to manage all of the H-bridges inputs;
- use different PWM frequencies for forward and reverse and detect the frequency change on our deck to swap the H-bridge control inputs.
Note that we also plan on using the flow deck v2 with z-ranging and maybe the LPS deck too....
Thank you for your support,
David.
---------------------------
Hello!
We also have a small research project going on for which we'll need to get bidirectionnal control of our Crazyflies motors. We managed to do it, for larger models, using the ESC+Bolt setup, but we now want to control the tiny Crazyflie motors with a dedicated custom deck. We plan to populate our deck with 4 H-bridges, such as https://www.digikey.ca/en/products/deta ... R/15286883. We will hook them to the PWM signals (as it is done on the BigQuad deck https://github.com/bitcraze/hardware/bl ... rev-c1.pdf), and several digital pins (ideally 2 are required for each H-bridge to get sleep and brake features). Do you have any other recommendation on the H-bridge chip or does anyone have tried this before?
Our current options for the digital inputs are:
- get 4 available digital outputs from the CF expansion pinout to control the Hbridge direction (forward and reverse have opposite signal - we lose the brake and sleep features);
- add an I2C chip to manage all of the H-bridges inputs;
- use different PWM frequencies for forward and reverse and detect the frequency change on our deck to swap the H-bridge control inputs.
Note that we also plan on using the flow deck v2 with z-ranging and maybe the LPS deck too....
Thank you for your support,
David.