Skip to content

A small Arduino library for controlling DC motors with H-Bridge and Half-H motor drivers. Written for C++/OOP newbies.

Notifications You must be signed in to change notification settings

goodmajo/MotorDriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

MotorDriver

Summary

This is a small library for Arduino users to help them control DC motors in a cleaner fashion. The first incarnation of this library came about in late 2016 while I was still in college. I wrote it to control a robot for a class assignment, and it was the first big thing I ever wrote in a language that wasn't MATLAB. It worked really well, but I had no idea what I was doing and as a result it was extremely messy. This new version is a lot better and easier to understand, and it's basically just a wrapper around a bunch of Arduino functions so newbies can easily understand how it works if they have a rudimentary knowledge of how Arduino works. I hope that this also represents OOP in a way that young programmers can wrap their heads around.

I hope people find this useful!

TODO

  • Test the Half-H class. I am waiting on the appropriate hardware to arrive in the mail. Once it gets here, I'll confirm that it works.
  • Test TransmitterPot class.
  • Write a function/program to help users determine transmitter/controller stick limits.
  • m_scaleFactor stuff
    • Set value in constructor?
    • This could also be adusted via a hardware switch or pot (TransmitterPot object would handle this).
  • Write a tutorial?

About

A small Arduino library for controlling DC motors with H-Bridge and Half-H motor drivers. Written for C++/OOP newbies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages