microcontrollers

I2C-based H-bridge controller with PWM

ian – Tue, 2006 – 07 – 04 10:42

During development of my Sumo robot, I ran into some problems around controlling the H-bridges:

  • If you're going to use PWM, the PWM signals on each input of the H-bridge need to be synchronised (phase-coherent), and there's no such guarantee when using an AVR to drive them. If they're not phase-coherent, the H-bridge will get hot and not drive the motor properly.
  • I wanted to use braking on the H-bridge, which means I need independent control of all four H-bridge inputs. The ATMega32 that I was using has four PWM channels - more than most microcontrollers - but still only enough to run a single H-bridge.

Syndicate content