Idea: Remote Pendant (Playstation 3 Dualshock Controller / SIXAXIS Controller)
See original GitHub issueIssue Description
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:
- Node.js
- https://www.npmjs.com/package/node-gamepad [Lots of supported controllers, looks most promissing, Uses node-hid]
- https://www.npmjs.com/package/node-hid [All Human Interface Devices]
- https://github.com/KenanSulayman/PS3.js
- Python
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
# 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)
wget http://www.pabr.org/sixlinux/sixpair.c
gcc -o sixpair sixpair.c -lusb
### Connect PS3 over USB
# Get PS3 DS
sudo ./sixpair
### Disonnect PS3 over USB
bluetoothctl
### Connect PS3 over USB
devices
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
quit
### 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:
- Created 6 years ago
- Comments:24 (14 by maintainers)
Top 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 Walmart.com.
Read more >Amazon.com: 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI, new baby today. Going to be busy for the next week. Will pick this backup once things settle down.
PS3 CNC Control Button Map Work in Progress.