Skip to content

A python script to control a 4-wheel skid steer robot with a PlayStation 4 Dualshock 4 controller.

License

Notifications You must be signed in to change notification settings

hiwad-aziz/ds4-robot-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dualshock 4 Robot Control

A python script to control a 4-wheel skid steer robot with a PlayStation 4 Dualshock 4 controller and a Raspberry Pi 4 which I use to test mapping algorithms on a mobile robot.

Dependencies

Hardware Parts

  • Raspberry Pi 4
  • L298N motor driver

Setup

Set the appropriate values at the top of the script. In my setup, two motors from the same side are connected to one output on the L298N. Connect your PS4 controller to the Raspberry Pi and run the script.

Controls

  • L2: drive forward
  • R2: drive backward
  • L1: turn left in place
  • R1: turn right in place
  • L3: adjust turn factor for forward and reverse driving

About

A python script to control a 4-wheel skid steer robot with a PlayStation 4 Dualshock 4 controller.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages