Skip to content

Use Pygame to control a robot with your RaspberryPi

Notifications You must be signed in to change notification settings

rlitchfield-Edcara/PygameRobot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

PygameRobot

Use Pygame to control a robot with your RaspberryPi.

I initially wrote this script to control a two-wheeled robot with realtime commands. Though using raw_input() is useful for many applications, it does not facilitate capturing realtime keyup and keydown events – this is where Pygame comes in handy. There are more advanced ways to do this without Pygame but they require knowledge of more advanced features like curses or getch().

This example is for a two-wheeled robot using a L298N motor driver.

Dependencies: Pygame sudo apt-get install python-pygame

About

Use Pygame to control a robot with your RaspberryPi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%