Lucas Murray ME 305 Portfolio
Classes | Variables
driver.py File Reference

A driver that controls the two motors on the board. More...

Classes

class  driver.DRV8847
 A motor driver class for the DRV8847 driver from TI. More...
 

Variables

 driver.pinB4 = Pin(Pin.cpu.B4, Pin.OUT_PP)
 
 driver.pinB5 = Pin(Pin.cpu.B5, Pin.OUT_PP)
 
 driver.pinB0 = Pin(Pin.cpu.B0, Pin.OUT_PP)
 
 driver.pinB1 = Pin(Pin.cpu.B1, Pin.OUT_PP)
 
 driver.motorDRV = DRV8847(3)
 
 driver.motor1 = motorDRV.motor(pinB4, pinB5, 1, 2)
 
 driver.motor2 = motorDRV.motor(pinB0, pinB1, 3, 4)
 

Detailed Description

A driver that controls the two motors on the board.

The driver class instantiates a driver that can control the behavior of the motors connected to it. It is able to detect faults in the motor as well as able to disable and re-enable both motors at once. It can create multiple motors internally which allows the use of the motor class functions through the driver.


Source Code: https://bitbucket.org/lmurray03/me305_lucas_murray/src/master/Lab%200x03/driver.py

Author
Lucas Murray
Max Cassady
Date
February 16, 2022