Category PS4 CFW and Hacks       Thread starter PSXHAX       Start date Sep 15, 2019 at 5:31 AM       1,824       2            
Following the DJI Tello Drone and DeepRacer RC remote control PS4 DualShock 4 mods, recently Veilkrand on Github shared a Simple Wireless Rover for Raspberry Pi Controlled by PS4 DS4 via WiFi for exploration and race hobby enthusiasts. 🏁

Download: simplePiRover-master.zip / GIT

You can check out Alberto Naranjo's Blog for more, and from the README.md: Simple Wireless Rover for Raspberry Pi

Small robotic platform based on Raspberry Pi controlled by a remote PS4 game controller over a wireless network.

Kickstart Guide

1. Install Adafruit Motor Hat in Raspberry Pi

https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library.git

2. Start server in Raspberry Pi
Code:
python3 robotServer.py
3. Start the client on a remote machine

Connect game controller to remote machine. Configure the correct server IP on client and run python3 client.py on the remote machine.
Code:
client.py -h <host> -p <port> [--verbose] [--python2]
Use the --python2 or -y option to use the pickle protocol 2 to be backward compatible with Python2 (e.g. for ROS).

4. Control
  • L2: Forward
  • R2: Backward
  • Right pad: Spin left or right
Hardware
  • Raspberry Pi 3 with Raspbian Jessie.
  • Adafruit Motor Hat: https://www.adafruit.com/product/2348
  • 4x 5-12V DC gear motors.
  • 12V battery pack for motor power
  • USB based battery pack for Raspberry Pi 3
Files
  • client.py UDP client that will connect the first game controller and start sending data to a predefined ip and port.
  • robotServer.py UDP server to receive the remote game controller inputs and move the rover.
  • GameController.py Class to handle the bluetooth PS4 game controller.
  • SimpleUDPClient.py Basic client class.
  • SimpleUDPServer.py Basic server class.
  • test_SimpleUDPServerClass.py A simple test to visualize a client.
  • test_SimpleUDPServerClass_python2.py A simple test to visualize a client.
  • SimpleUDPServer_python2.py Downgraded to be compatible with Python2.
  • Robot4WD.py Class to handle the robot control using Adafruit Motor Hat. https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library.git
Simple Wireless Rover for Raspberry Pi Controlled by PS4 DS4 via WiFi.jpg
 

Comments

Recent Articles
Free Call of Duty: Modern Warfare Going Dark PS4 Theme Released
With the official CoD: MW PS4 release arriving on October 24th alongside the Call of Duty: Modern Warfare PS4 Pro 1TB Bundle, a free dynamic Call of Duty: Modern Warfare Going Dark PlayStation 4...
PlayStation Store October Savings Feature Up to Half Off PSN Games
In Sony's latest PlayStation Store sale, you'll find October savings featuring up to 50% off select PSN games including Slime Rancher, MXGP 2019: The Official Motocross Videogame, Human: Fall Flat...
PlayStation 4 & PS4 Pro Price Drop Rumored in Black Friday 2019 Ad Leak
As we get closer to the holidays we'll do a dedicated topic on Black Friday 2019 ad scans like we did last year, but until then an alleged Walmart Black Friday 2019 ad leak brings rumors of both a...
Call of Duty: Modern Warfare & MediEvil Join New PS4 Games Next Week
Next week the PlayStation 4 gets some heavy hitters, including Call of Duty: Modern Warfare for PS4 on October 24th, and both MediEvil and The Outer Worlds on October 25th. 😃 Without further ado...
Top