No description or website provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
arduino
board/arduino-bases
design
docs
router-sync
BOM.md
README.md

README.md

neopixel 7-segment clock

building a digital clock from scratch using 30 neopixels (4 × 7 segments + 2 dots)

thanks

sync from OpenWRT router

clock/arduino is connected to router via USB, also provides power.

prepare router

opkg update && opkg install kmod-usb-serial-ftdi
dmesg

should output

…
[341699.646449] usbcore: registered new interface driver ftdi_sio
[341699.646494] usbserial: USB Serial support registered for FTDI USB Serial Device
[341699.646655] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
[341699.646723] usb 2-1: Detected FT232RL
[341699.646933] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0

sync daemons for openWRT

prepare:

opkg install bc socat
rsync -avPh router-sync/ root@10.178.84.1:/ && \
ssh root@10.178.84.1 '/etc/init.d/arduino-socket enable && /etc/init.d/arduino-socket start && /etc/init.d/serial-clock-sync enable && /etc/init.d/serial-clock-sync start'

proxy serial port for development

(WORK IN PROGRESS)

# server (router):
opkg install socat
socat tcp-l:1234,reuseaddr,fork file:/dev/ttyUSB0,nonblock,raw,echo=0,waitlock=/var/run/tty,b9600

# client (dev machine):
mkdir $HOME/dev
socat pty,link=$HOME/dev/vmodem0,waitslave tcp:router.local:1234