Skip to content

Uses python to control servo motor connected to arduino microcontroller

Notifications You must be signed in to change notification settings

Rcode879/Arduino-servo-motor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Arduino-servo-motor

Uses python to control servo motor connected to arduino microcontroller.It uses python rather than the traditional arduino IDE language. You input and angle of choice and your servo motor will turn to that angle.

Required:

-pyfirmata

-Arduino IDE

-Arduino IDE in built firmata custom library

Key information:

-Before starting, upload the firmata code (this can be found in your arduino IDE custom libraries in "Firmata/StandardFirmata") from the arduino IDE into your arduino microcontroller

-The COM port is the usb location where your arduino device is connected

-When the code is run your code will upload to the arduino

-Servo motors do not turn beyond 180 degress so entering a number above that is useless

-No wiring diagram is provided

Troubleshooting:

-Check your computer COM port which the arduino is connected to

-Check if you have wired your physical servo motor to the Arduino correctly

-Check if you have selected the correct Arduino board on the Arduino IDE

-Check you have uploaded the "StandardFirmata" code to the arduino before running the python code

-Servo motors (generally)do not turn more than 180 degrees