Mechatronics
Documentation for ME 405 labs
Motor.py File Reference

Drivers for bushed DC motors and Texas Instruments DRV8847 motor driver. More...

Classes

class  drivers.Motor.Motor
 This class implements a motor driver for the ME405 board. More...
 
class  drivers.Motor.MotorDriver
 A driver class for interacting with two motors while also protecting against over-current. More...
 

Variables

int drivers.Motor.MAX_CHANNEL_NUM = 4
 Set a limit for the board for maximum number of channels.
 
 drivers.Motor.driver = MotorDriver()
 
 drivers.Motor.M1 = driver.ch1
 
 drivers.Motor.M2 = driver.ch2
 

Detailed Description

Drivers for bushed DC motors and Texas Instruments DRV8847 motor driver.

This driver class based on the motor.py class developed in ME 305, with added overcurrent protection. Motor objects can be created with input and output pins and a timer to control PWM. Only 1 MotorDriver object can exist at a time, which is given control of 2 Motors.

Author
Tyler Olson
Date
June 5, 2021