Skip to content

Nescient/gpio-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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