Firmware for ATMega mcu controlled model rail crossing.
Go to file
2EEEB e8e3da1c7a updated readme again 2019-10-18 22:19:07 +02:00
.gitignore Initial commit 2019-10-18 21:54:27 +02:00
LICENSE Initial commit 2019-10-18 21:54:27 +02:00
README.md updated readme again 2019-10-18 22:19:07 +02:00
gates.c add source code 2019-10-18 22:08:59 +02:00
makefile add source code 2019-10-18 22:08:59 +02:00
mytimer.c add source code 2019-10-18 22:08:59 +02:00
mytimer.h add source code 2019-10-18 22:08:59 +02:00
safety.c add source code 2019-10-18 22:08:59 +02:00
safety.h add source code 2019-10-18 22:08:59 +02:00
stepper.c add source code 2019-10-18 22:08:59 +02:00
stepper.h add source code 2019-10-18 22:08:59 +02:00
usart.c add source code 2019-10-18 22:08:59 +02:00
usart.h add source code 2019-10-18 22:08:59 +02:00

xingcontrol

Firmware for a simple ATMega 328 mcu controlled model rail crossing.

Accomodates two optical gates for triggering, buzzer and three (or six) leds for signalization and a stepper controller to close/lift the barriers.

Info about crossing state and number of trains and carriages is sent over serial.

Gimmicks include: non persistent stat keeping and crossing speed calculation in cm/s.

Not generalized, pin and port settings may need adjusting.

Makefile is set up to use avrdude with usbASP programmer.