Skip to content

Python module to control servo motor with raspberry pi

Notifications You must be signed in to change notification settings

Tonyy18/Servo-motor-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Raspberry Pi Servo motor module

Control servo motor with raspberry pi and python

Uses RPi.GPIO and time libraries.

Constructor

Create new servo instance
import Servo

servo = Servo.Init(7)

Provide your control/pwm pin in the constructor

Run()

Use this method to control your motor by degree
Accepts degrees between 0 and 180
import Servo

servo = Servo.Init(7)
servo.run(90)

About

Python module to control servo motor with raspberry pi

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages