|Participants||Brainsmoke, Guido, Realitygaps|
|Skills||OpenWRT, basic electronics|
- 1 Spacebutton mkII
- 2 Spacebutton mkI (This spacebutton is no longer in use!!!!!)
The current Space button consists of:
- an 8Devices Carambola2 dev board, running a LEDE/OpenWRT linux system
- an industrial stateless button.
- a Techinc Badge
- a wired Internet connection
- a USB power adapter / mini-USB cable
The Carambola 2 runs a LEDE/OpenWRT firmware with a go program for the logic.
Sadly, precompiled packages of Openwrt/LEDE do not support MIPS hardware float emulation out of the box.
Luckily, Go 1.10 https://golang.org/doc/go1.10 now has support for MIPS w. soft-float:
GOARCH=mips go build -ldflags="-s -w"
GOARCH=mips GOMIPS=softfloat go build -ldflags="-s -w"
Techinc Logo State Indication code
make make fuses make flash
(and EtherCard fork) https://github.com/techinc/ethercard
The code uses DHCP to obtain an IP address and find a gateway.
The button is a circuit breaker. Connected to pin 3, it pulls this input pin to ground when not pressed.
The code enables the internal pull-up resistor, so no external one is needed.
The LED is connected to pin 5, also using a pull-down circuit. (So the led should be *on*, when pin 5 is low.)
The LED blinks:
- every four seconds: No link
- every two seconds: No DHCP
- every second: No DNS
- twice a second: Changing the space state, but no response yet from the server
- two seconds on, two seconds off: 'upstream' space state unknown.
The nanode is now powered through a USB-port.
DO NOT power it using 9V. There are some issues with the voltage regulator (which is not used when fed through (5V) USB.)
An Android app is available to monitor the current state of the space and notify when it changes. The source code is available on GitHub: Source