Difference between revisions of "SpaceAPI:Button"
Brainsmoke (talk | contribs) (→Todo) |
Brainsmoke (talk | contribs) |
||
Line 1: | Line 1: | ||
{{Project | {{Project | ||
+ | |picture=spacebutton_acta.jpg | ||
|ProjectSkills=nanode, arduino, basic electronics | |ProjectSkills=nanode, arduino, basic electronics | ||
|ProjectStatus=Dormant | |ProjectStatus=Dormant | ||
Line 56: | Line 57: | ||
An Android app is available to monitor the current state of the space and notify when it changes. | 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: [https://github.com/techinc/Techinc-Notify Source] | The source code is available on GitHub: [https://github.com/techinc/Techinc-Notify Source] | ||
+ | |||
The app can be downloaded from [https://play.google.com/store/apps/details?id=nl.techinc.notify Google Play] or [https://github.com/techinc/Techinc-Notify/Techinc-Notify.apk/qr_code GitHub] | The app can be downloaded from [https://play.google.com/store/apps/details?id=nl.techinc.notify Google Play] or [https://github.com/techinc/Techinc-Notify/Techinc-Notify.apk/qr_code GitHub] | ||
+ | |||
+ | |||
+ | == Spacebutton iterations == | ||
+ | |||
+ | [[Image:spacebutton_tmpinc.jpg|400px]] | ||
+ | [[Image:spacebutton_acta.jpg|300px]] |
Revision as of 17:51, 8 April 2013
Projects | |
---|---|
Participants | Brainsmoke, Guido, Realitygaps |
Skills | nanode, arduino, basic electronics |
Status | Dormant |
Niche | Electronics |
Purpose | Infrastructure |
Contents
Todo
- Get a better casing
- Integrate with TISSEO(?)
Nanode code
https://github.com/techinc/SpaceButton
(and EtherCard fork) https://github.com/techinc/ethercard
The code uses DHCP to obtain an IP address and find a gateway.
Wiring
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.)
Troubleshooting
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.
Power
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.)
Notification App
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
The app can be downloaded from Google Play or GitHub