Skip to content

benjamind/gpio-json-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPIO JSON Server

A (very) rudimentary interface to provide GPIO control on a remote server via a simple interface.

This is primarily for use with the ChiliPeppr CNC control software (http://www.chilipeppr.com)

This is still very much alpha code, and was my first Go project, so its a bit messy. This will get cleaned up when I get some time.

It has thus far only been tested on a Raspberry Pi, but embd (the gpio library) supports Beaglebone Black too so in theory it should work there also.

Current implementation allows you to setup GPIO pin states and toggle them through a simple interface. Future features will include w1-therm monitoring for temperature monitoring, PWM control for LED lighting and other PWM uses, and a cleaner JSON based interface.

Installation

This requires GPIO port access which itself requires sudo, so run with

sudo ./gpio-json-server

PWM on Raspberry Pi

Raspberry Pi has not very good support for PWM, so I'm using the excellent Pi-Blaster which allows fast easy PWM on any digital io https.

Download : http://github.com/sarfata/pi-blaster

Installation is easy, and once installed you can use any GPIO pin as PWM!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages