Skip to content

wouterds/ps3-controller-raspberry-pi-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PS3 Controller Raspberry Pi NodeJS

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

Demo

Prerequisites

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.