Basic example of interfacing a PS3 controller on a Raspberry Pi using NodeJS
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
resources
.editorconfig
.gitignore
README.md
index.js
package.json

README.md

PS3 Controller Raspberry Pi NodeJS

A basic example of interfacing a PS3 controller on a Raspberry Pi using NodeJS.

Demo

Prerequisites

1. Have a PS3 controller paired

2. Have NodeJS installed

Note: at the moment of writing it doesn't work yet with NodeJS 10, use latest version of 9 instead (I used 9.9.0).

3. Packages

sudo apt-get update
sudo apt-get install joystick -y

Wiring

Wiring

Install

npm i

Usage

sudo node .

We need to use sudo because we can't communicate with the GPIO otherwise, there's ways around this but out of scope.