Originally shared by Ben Delarre Just got to 'working' tonight with a new GPIO

Originally shared by Ben Delarre

Just got to ‘working’ tonight with a new GPIO widget for Chilipeppr.

Couple of screenshots attached below.

Basically this is a simple Go based GPIO server. You install it the same as you do for the Serial Port JSON Server, and then connect to it using the GPIO widget I’ve thrown together (link below).

Once connected you can configure your GPIO pins and the widget then provides you with controls to modify them. I use this for turning on and off my TinyG and my ShopVac which are connected to two pins on my Raspberry Pi.

I’ll be putting up binaries for Raspberry Pi and BBB later.

Source : https://github.com/benjamind/gpio-json-server
Widget : http://jsfiddle.net/benjamind/L3c7csaw/

I’ve spoken to @jlauer and he’ll be including a GPIO button like the other addons in the UI when its ready so this will be easy to pull into your workspace.

Future plans include PWM support (so I can dim my LEDs) using Pi-Blaster for low CPU usage. I’ll also be adding w1-therm reading so you can graph temperatures inside enclosures and things like that.

Enjoy!

f01e5dc795fbfef49929246c53dd0a48.png

fe112a2e91f058edf1e07d47b3b91904.png

fed27a56a691331b924906db1b706f96.png

Fantastic stuff. This will allow me to control exhaust fans and a bunch of other things.

Yeah, this was a surprise to have Ben post this out of left field, but he’s got my brain massively chugging on all the cool GPIO I’ve been wanting to do and just never did. This could even toggle a laser on/off.

I wonder if this can be somehow leveraged to control PWM modulation for a laser. I was talking to picengrave today over on the SO forum and so far grbl/Arduino has this ability but TinyG does not (yet).

I am pretty sure John did some PWM for TinyG.