Using the DHT11
So now I want to measure humidity in the house using a DHT11 delivered promptly from the shop.
The Jeenode Integration page refers to "The RoomNode2 sketch will also support the DHT11 sensor which is a drop in replacement for the DS18B20 and adds temperature and humidity; with change in the code to select this device instead." Looking at the source for roomnode2.hex at http://livebox-hah.googlecode.com/svn/trunk/userapps/arduino/roomNode2/roomNode2.ino it looks as though DHT11 is already selected. But it also says that "SHT11, ONE_WIRE and DHT11 are mutually exclusive." and since my temp sensor works when plugged in - I assume that #define ONE_WIRE_PIN 4 is active instead.
So ... I would like to try and compile my own change - and have started looking at WinAVR and other stuff. Could someone advise me on the best (free) software to use.
Regards
Kim
p.s. I have already changed my Jeenode applet section to the following in readiness:
-- Keyed by NODE ID
local nodes = {
[2] = RoomNode{base="dbzoo.livebox.2.jeenode:test",
endpoints={temp=1,light=1,lobat=1,moved=1,humi=1}, ttl=360},
[3] = BoilerNode{base="dbzoo.livebox.2.jeenode:util",
endpoints={temp=1,light=1,lobat=1,moved=1}, ttl=360},
[4] = BoilerNodeTwin{base="dbzoo.livebox.2.jeenode:test2",
endpoints={temp=1,light=1,lobat=1,moved=1,temp2=1}, ttl=360},
Kim,
as Derek rightly says, arduino environment is best.
just open sketch, modify, save and upload. Simple.
You will need to connect your jeenodes via a FTDI USB interface, assume you will be using one of these to connect your base node to HAH so it should be easy, just use that one.
alternatively you can flash the chip directly in an arduino and then transfer to the nodes ( I do this so as to keep my HAH up and running whilst messing.
winavr and the like are only really required when your chips don't have boot loaders on them.
good luck
Garry
Great job Kim.
I also had a bit of a struggle moving from 'pre version 1.0' Arduino to the latest. Quite a few things changed. Thank goodness for google. By writing this note, you've made the transition easier for others.
Anyway, it sounds like your perseverence has (nearly) paid off.
Do keep going 'till that PIR works too (& publish your final sketch!).
As for a job in programming ... given this effort ... I reckon that you'd do a lot better than most.
I find the struggles help with the learning curve.
One note for future reference that on hindsight I should have mentioned. Use a SVN checkout service (like tortoise SVN for windows) and check out the google SVN from google code. You will then have all the code (and libraries!) to hand on your local drive. Easy to keep updated with Bretts current versions.
Garry
Oh sorry about that I just noticed that I was not using a sync from the SVN repo so what I had wasn't what was checked in.
Damn.. I've checked in a bunch of replacements for these OLD libraries you should be able to keep in sync with the SVN repo and it will all compile now. Glad you figured it out thou - good practice.
Brett
Kim all good stuff.
There was a little write on using SVN on this wiki page http://www.dbzoo.com/livebox/hah_arduino
In case you missed it.
Brett
Hi Kim,
Good to see you experimenting!
The firmware for the HAHnodes is written using the freely available Arduino environment.
http://arduino.cc/en/Main/Software - I'm using version 1.0.5
As with any new compiler environment, there are a few things to get used to. However, it's pretty straightforward.
I know that Brett dropped a DHT11 into one of his roomNodes. I think this replaced the DS18B20 - reasonable enough as the DHT11 does humidity and temperature.