Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 771 Bytes

README.md

File metadata and controls

21 lines (17 loc) · 771 Bytes

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