My Project
All Classes Files Functions Variables Pages
motor.py File Reference

motor driver class that contains features of a DC motor More...

Classes

class  motor.MotorDriver
 This class implements a motor driver for the ME 305 Nucleo board. More...
 

Variables

 motor.encoder1 = Encoder(4, Pin.cpu.B6, Pin.cpu.B7, 0xFFFF, 0)
 
 motor.pin_nSLEEP = Pin.cpu.A15
 
 motor.pin_IN1 = Pin.cpu.B4
 
 motor.pin_IN2 = Pin.cpu.B5
 
int motor.tim = 3
 
 motor.moe = MotorDriver(pin_nSLEEP, pin_IN1, pin_IN2, tim)
 

Detailed Description

motor driver class that contains features of a DC motor

This code contains a class that encapsulates all of the features associated with driving a DC motor connected to the DRV8847 motor driver that is part of thebase unit that you’ve connected your Nucleo to. The base unit carries the DRV8847 motor driverfrom Texas Instruments which can be used to drive two DC motors or one stepper motor. The link to the code can be found here:

Author
Maisha Zaman
Date
March 18th, 2021