Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Idea: Remote Pendant (Playstation 3 Dualshock Controller / SIXAXIS Controller)

See original GitHub issue

Gamepad Control

Goal:Use Use Playstation 3 Controller wirelessly over bluetooth to control CNC. Ideally I want the control to happen on the host device (raspberry pi), not just the client.

Using a wireless game controller (like a PS3 controller) seems to be one of the lowest cost & simplest solution methods. Integrating Node.js libraries for support looks like the best option. I also looked at

Resources Options:

Playstation Controller Setup ( general guide to connect hardware )

Here is what I have figured out so far for PS3 on Raspberry PI 3 w/ integrated bluetooth. The bellow just shows how to get PS3 controller connected.


# Install & Enable Bluetooth Tools
sudo apt-get install -y bluetooth libbluetooth3 libusb-dev
sudo systemctl enable bluetooth.service

# Add pi user to bluetooth group
sudo usermod -G bluetooth -a pi

Pairing Tools

# Get and build the command line pairing tool (sixpair)
gcc -o sixpair sixpair.c -lusb

### Connect PS3 over USB
# Get PS3 DS 
sudo ./sixpair

### Disonnect PS3 over USB
### Connect PS3 over USB
agent on
trust MAC # Replace "MAC" with MAC of "Device 64:D4:BD:B3:9E:66 PLAYSTATION(R)3 Controller"
trust 64:D4:BD:B3:9E:66 
### Disonnect PS3 over USB, you should now be able to connect wirelessly. To check this, first list everything in /dev/input:

Test Controller Connectivity

# List Devices
ls /dev/input

### PS3 Controller: press the PS button, the lights on the front of the controller should flash for a couple of seconds then stop, leaving a single light on. If you now look again at the contents of /dev/input you should see a new device, probably called something like ‘js0’:

# List Devices
ls /dev/input

Get Battery Level

cat "/sys/class/power_supply/sony_controller_battery_64:d4:bd:b3:9e:66/capacity"

Joystick Application

# Install
sudo apt-get install joystick

# Usage / Test
jstest /dev/input/js0

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:24 (14 by maintainers)

github_iconTop GitHub Comments

AustinSaintAubincommented, Dec 22, 2016

FYI, new baby today. Going to be busy for the next week. Will pick this backup once things settle down.

AustinSaintAubincommented, Dec 16, 2016

PS3 CNC Control Button Map Work in Progress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wireless Controller Dualshock 3 Games Remote Bluetooth Sixaxis ...
Buy Wireless Controller Dualshock 3 Games Remote Bluetooth Sixaxis Control Gamepad Durable Game Accessories for PlayStation3 PS3 at
Read more > Playstation3 Sixaxis Wireless Controller
Game like never before with the motion-sensing SIXAXIS wireless controller designed exclusively for the PLAYSTATION 3. It utilizes Bluetooth technology so ...
Read more >
Ps3 Controller - Etsy
Check out our ps3 controller selection for the very best in unique or ... Sony PlayStation DualShock 1 Controller Teardown Template ...
Read more >
How to Use a PS3 Controller Wirelessly on Android with ...
1. Root your Android. You can buy the Sixaxis Controller app from the Play Store without rooting your phone, but your controller won't...
Read more >
How To Clean A Playstation 3 Controller - YouTube
If you've got a dirty Playstation 3 Dual Shock controller, this is for you. I'll show you how to safely take it apart...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found