Difference between revisions of "SpaceAPI:Button"

From Technologia Incognita
Jump to: navigation, search
(Nanode code)
Line 9: Line 9:
 
==Nanode code==
 
==Nanode code==
  
https://github.com/guidocalvano/spaceapi
+
https://github.com/techinc/SpaceButton
  
Edit IP address to 10.68.0.42,
+
The code uses DHCP to obtain an IP address and
 
+
find a gateway.
 
 
Edit Gateway to 10.68.0.1
 
  
 
==Wiring==
 
==Wiring==

Revision as of 04:54, 2 November 2012

Projects
Participants Brainsmoke, Guido, Realitygaps
Skills nanode, arduino, basic electronics
Status Active
Niche Electronics
Purpose Infrastructure

Nanode code

https://github.com/techinc/SpaceButton

The code uses DHCP to obtain an IP address and find a gateway.

Wiring

When the button is pressed, pin2 will be pulled to ground.

(Is there a pull-up resistor connected to pin2?)

Pin7 is used to control the led in the device.

Power

The nanode is now powered through the USB-port on the wireless router.

DO NOT power it any other way, there are some issues with the voltage regulator (which is not used when fed through 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