Skip to content
Raspberry PI GPIO programs in JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



I've purchased a Sensor Kit for the Raspberry Pi from Sunfounder ( Code examples, at least those in C, are crappy at the best so I've decided to recode them in JavaScript using the rpio JavaScript module (

Naming convention

Program names are named following this convention: nn_[acro]_mm.js

  • nn is the sequential number that uses SunFounder's for the examples.
  • [acro] is an acronym that identifies the sensor programmed.
  • mm is a program sequence number being 01 the number of the program that is a direct refactor of the Sunfounder's code.

Installing & Running

As a pre-requisite you need to install in the Raspberry:

  • node
  • Then you must install the rpio node package (by using npm). I needed to rebuild the package since, as downloaded, my programs crashed.

Finally, I only was able to run my programs as root (through sudo).


You can’t perform that action at this time.