Skip to content

A Python library for the Raspberry Pi and TB6612FNG motor driver

License

Notifications You must be signed in to change notification settings

nick-hunter/Raspberry_Pi_TB6612FNG_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Raspberry Pi TB6612FNG Python Library

A Python library for the Raspberry Pi and TB6612FNG motor driver

Example

from motor import *
from time import sleep #Only used for example

#Motor(IN1,IN2,PWM,STANDBY,(Reverse polarity?))
test = Motor(13,19,26,6,False)

test.drive(100) #Forward 100% dutycycle
sleep(1)
test.drive(-100) #Backwards 100% dutycycle
sleep(1)
test.brake() #Short brake
sleep(0.1)

test.standby(True) #Enable standby
test.standby(False) #Disable standby

About

A Python library for the Raspberry Pi and TB6612FNG motor driver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages