Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.65 KB

README.md

File metadata and controls

24 lines (17 loc) · 1.65 KB

gpio-timer

A GPIO timer for DerbyNet server (https://derbynet.org/). Please note that I am not affiliated with that project in any way nor do they endorse this timer. I have tested with version 8 of derbynet server.

This project uses golang to send timer messages to the derbynet server application. It listens for GPIO pin changes. Use the build.sh script to build the executable. Install docker and use go.sh run github.com/Nescient/gpio-timer to run the executable. Alternatively, install go to build and a new enough glibc for running.

Edit your GPIO Pins

The current set up is using the Libre Computer Board ROC-RK3328-CC on pins 3, 5, 11, 13 (four lanes), and pin 8 (for the gate). See the top of gpio.go for pin constants. The GPIOs are set to pull up and trigger on the falling edge (which is what works with the beam sensors I tested). Our project used Adafruit IR Break Beam sensors: https://www.adafruit.com/product/2167.

Libre Computer Wiring

DerbyNet

GPIO