Difference between revisions of "Spacestate sensors"

From Hackerspace ACKspace
Jump to: navigation, search
(update (added raspi info))
(fixed polarity for easy soldering sensors to RJ45-couplers)
Line 17: Line 17:
  
 
Current space RJ45 connector pinput wired to the Raspberry Pi (P-CarPi):
 
Current space RJ45 connector pinput wired to the Raspberry Pi (P-CarPi):
# Data2
+
# <strike>Data2</strike>GND
# GND
+
# <strike>GND</strike>Data2
 
# NC
 
# NC
 
# VCC
 
# VCC

Revision as of 19:06, 15 November 2014

Project: Spacestate sensors
Featured:
State Planned
Members Xopr
GitHub No GitHub project defined. Add your project here.
Description You can't manage what you don't measure
Picture
Spacestate sensors Picture.jpg

synopsis

Create a 1-wire network of sensors to keep an eye on temperatures (and/or other stuff), especially for monitoring the server room, and optionally, the [sl|h|st]ackspace(s), probably including the space state switch and the keychain patch rack (sensing keys)..

intro

After implementing the Space state switch, a Spacestate indicator and its mobile implementation, it is time to add some extra's to the SpaceAPI, namely: a sensor network.

The idea got triggered due to the fact that sensors are natively supported in the SpaceAPI, and our server room tends to get fairly warm in the summer.

The plan is to start off with an Arduino + netshield, and later design a small custom PCB with AVR + W5100ENC28J60/WIZ811MJ

implementation

Current space RJ45 connector pinput wired to the Raspberry Pi (P-CarPi):

  1. Data2GND
  2. GNDData2
  3. NC
  4. VCC
  5. NC
  6. NC
  7. Data1
  8. GND

On the Raspi, changed the following: in /etc/modules, add w1-gpio and w1-therm on separate lines.

The pins used: 1 (3v3), 7 (Data1), 9 (GND), 11 (Data2)

After the modules have been loaded, you can see the sensors in the /sys/bus/w1/devices/ directory.


testing

  • I (Xopr) modified an RJ45 coupler to have a sensor connected to pins 8, 7 and 4 (Ground, data and Vcc respectively), and while it worked for one night, it became more and more unstable up until the point that it only worked with a 25cm cat5e patchcable.
  • Tested with 25cm 3m and 10m on a 4k7 pull up: worked perfectly! Next test was with a 25m (not sure actually), and an 85m cable, but using a 1k pullup: worked flawlessly for days!
  • Tested on Raspi (3v3) with the w1- modules: worked like a charm.

todo

  • Make a level shifter so that the system can work with 5v