Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Releases: ahogen/MegaMotoLib

v0.8 - H-Bridge Working

28 May 19:10
30024c2
Compare
Choose a tag to compare

I no longer have access to working MegaMoto hardware, so unfortunately I have no way to develop and test new features.

Note on date of this tag: This tag is being created over a year after the last real code change. I wasn't as familiar with Git and releases back then, so I didn't bother with tags. I've learned lots since then and wanted a release to exist in this repo, even if the code hasn't changed for a year.

What's working in this release:

  • Configurable PWMA / PWMB pin assignments
  • Configurable Enable pin assignment (If no Enable pin is provided, it won't attempt to use Enable at all!)
  • Handles the H-bridge hardware configuration
  • Ramps motor up/down from current speed to the new speed
  • Immediate stop/off. If there is some safety-critical setting, you can shut down your device immediately without ramping down first.

What I would have liked to add to this library:

  • Handles the half-bridge hardware configuration
  • Current sense reporting. Reads the voltage from the current sense output on the MegaMoto and converts it to milliamps (mA) and returns the milliamp value as an integer.
  • Synchronous current sensor measurement for RMS and peak current readings
  • Current limiting via PWM compression