Showing posts with label sensors. Show all posts
Showing posts with label sensors. Show all posts

Monday, August 16, 2010

DZ 3.6.2 Release Is Out

Changes since 3.6.1

This is a maintenance release.
  • Many objects' reflections in JMX are now less cryptic and more usable;
  • XBeeDeviceFactory now properly reflects in JMX;
  • XBee deices not present at startup will now be discovered as they arrive;
  • XBee sensors departing will be discovered within a specified timeout and corrective action will be taken.

Friday, August 6, 2010

DZ 3.6.1 Release Is Out

Changes since 3.6

New Features

Thursday, August 5, 2010

Early Access: XBee Analog Sensors


Subversion contains the driver for XBee ZB based temperature, humidity, pressure and any other imaginable kinds of analog sensors. Scaling is also supported, so different hardware sensors can be used.

Read the article on making the wireless sensor for more details on sensor design. Configuration guide is coming soon (there are caveats, hint: take a look at ConvertingSensor).

Friday, July 30, 2010

Teaser: XBee Wireless Temperature Sensor

XBee wireless temperature sensor

Above: XB24-ZB with four TMP36 analog temperature sensors connected to XBee's analog inputs.

The reason four sensors are connected is: comparison and statistical analysis.

It remains to be seen how good or bad analog readings are, and how easy it is to compensate for these imperfections in software.

Credit

This design is based on a similar one, with a few minor differences:
  • TMP36 is used instead of LM34 (the only reason being that I had some spares laying around). Obviously, the result calculation is different. Wide selection of similar sensors (TMP35, TMP37, LM35), result would be just about the same, save for value recalculation;
  • Incidentally, this allowed to get rid of the voltage regulator because whereas LM34 requires +5V to +30V power, TMP36 is fine from +2.7V to +5.5V, hence, the same 3.3V power can be used to feed both XBee and TMP36;
  • Caveat is, at +70°C TMP36 output voltage reaches maximum allowable voltage for ZB series ADC, 1.2V. I don't think it's a problem because the intended usage is indoor temperature measurement, if your indoor temperature reaches +70°C, you'll have bigger problems to worry than a possibly damaged XBee. But keep this in mind if you're planning to use these sensors to monitor a temperature of, say, a water heater or air coming out from the furnace;
  • 330Ohm resistor added to ASSOC LED to restrict the LED's operating current (might want to use 1K and higher if your LED is too bright for you).

More to come.

Thursday, July 15, 2010

DZ Temperature Sensor HOWTO

In order to make DZ tick, you need sensors. Preferably lots of sensors. This article will show you how to make them in a very quick, cheap, and quite inconspicuous way.

Bill of Materials

  • A DS1820 family sensor (any variant will do: DS18B20, DS18S20, DS1822, DS1920)
  • CAT5 RJ-45 connectors, dime a dozen anywhere including your local Fry's
  • Bulk CAT5 cable
  • Heat shrink tubing
  • Marker tape of your choice

Tools

Beyond obvious,
  • RJ-45 Crimp Tool
  • Heat Gun

Step 1: Strip & Crimp

Step 1: strip

Crimp the RJ-45 connector onto the end of a piece of CAT5 cable using T568-B pinout.

Measure 3" from the end of the jack, cut the cable. Measure 2" from the end of the cable, strip the insulation, remove the extra thread.
You can try to cut the cable shorter - the reason I didn't want to do it is I didn't want to risk activating the heat shrink by soldering. YMMV.

Step 2: cut extra wires

There are two possible choices:
  1. Make the sensor completely compatible with Hobby Boards wiring scheme (data sheet gone with Hobby Boards sold and website defunct) (careful, they use T568-A and not T56-B);
  2. Extend wiring in order to provide an ability to create an electrical bus configuration on star physical configuration.
In any case, cut the brown pair and white+orange, you won't need them.

Hobby Boards Pinout

You would want this pinout if you're plugging the sensor directly into a Hobby Boards device, or into a socket that is daisy chained to the next run. Or, if this is the last sensor in the "electrical bus, physical star" configuration.

Hobby Boards compatible sensor
  • White+Blue (pin 5): GND (see DS1820 data sheet)
  • Blue (pin 4): DQ
  • Orange (pin 2, not pin 6!!!): Vdd
I left the green pair hanging not to waste the jack, the cable and, most importantly, time spent on crimping, for the case when I'll need to convert this layout into DZ layout (it's pretty simple to cut the heat shrink tubing).

DZ Pinout

You would want this if you're plugging the sensor into a socket that is wired to a patch panel and you want to patch the return to the next run.

Step 2: wire. Look closely at notes, it's not what it seems!
  • White+Blue, White+Green (pin 5): GND
  • Blue + Green (pin 4): DQ
  • Orange (pin 2, not pin 6!!!): Vdd

Step 3: Solder and Insulate

Step 3: solderStep 4: cover

Congratulations, you're done

Done

If you look closely (click to see the big picture), you'll see that cables are marked - blue strip for Hobby Boards pinout, blue and green for DZ pinout.

WARNING: Never plug a DZ sensor into a socket with Hobby Boards pinout!

It may be even SO compatible

Close upNow find it

The result is not that visible at all, honestly.

The Missing Link: Where does it go?

So where are all these sensors plugged into? Answer is, RJ-45 sockets wired to a patch panel, which is, in turn, wired to a punchdown block DZ hardware is connected to. But that's a different story for a different time.

<Stay tuned>

Wednesday, December 16, 2009

FAQ: minimal sensor hardware

Q: What is the minimal set of sensor hardware do I need to run DZ on?

A: With some luck, you already have it. Look for a DZ entity called ShellSensor, it will allow you to use information provided by lm_sensors or hddtemp to feed the rest of DZ on.