Vivarium Controller with Yun and DS18B20

Hi all

I have published the code of my vivarium controller using Arduino Yun, DS18B20 and 8 way relay controller. This chunk is the Arduino Sketch, I am working on preparing the linux/OpenWRT side for publishing too.

Unlike the previous version which had a local LCD and keypad, this one uses REST API via YUN bridge to effect control and read sensor values. It logs to collectd on the OpenWRT side, which forwards to an ASUS Chromebox I have flashed with Ubuntu. There the collectd server publishes the data to the Graphite dashboard application.

The temperatures are set like :

http://192.168.0.xx/arduino/b/1/1/1/27.22,27.00,27.22 (Target, lo threshold, hi threshold)
OK

The data is read like:

http://192.168.0.xx/arduino/s/
SENS,C,F
2864244c05000021,28.19,82.74
2862170606000046,27.00,80.60
2857c24d0500005c,27.19,80.94
SKT,ON,CTRL,SENS,LC,TC,HC,TI
0,0,0,0000000000000000,0.0,0.0,0.0,0
1,0,1,2857c24d0500005c,27.02,27.22,27.22,40
2,0,1,2862170606000046,27.02,27.22,27.22,40
3,0,1,2862170606000046,27.02,27.22,27.22,40
4,1,1,2864244c05000021,27.28,27.78,27.78,40
5,0,2,0000000000000000,0.0,0.0,0.0,0
6,1,1,2864244c05000021,27.28,27.78,27.78,40
7,0,2,0000000000000000,0.0,0.0,0.0,0

cydergoth:
I am working on preparing the linux/OpenWRT side for publishing too.

What purpose has the linux side in this project?

Btw, you could share some pics of the reptiles living if you don't mind.

The linux side runs collectd which polls the REST API on the Arduino to retrieve the sensor readings and to publish them. This is in addition to handling the ethernet and bridge for the REST api, of course. I also have some patches to enable the arduino REST API to be exposed with "Access-Control-Allow-Origin" set correctly, although they need some cleanup which I've not yet had time to do.

Here's a picture of the first three snakes. Unfortunately they're nocturnal and sleeping at the moment, I'll try to get a better one once they are active.

Nice, I like to keep my snakes outside and try not to step on them when I walk in the bush here, they are just way too deadly here in Australia.

It would be interesting to see more of your setup, in terms of actual hardware and it capabilities.


Paul

I've uploaded some pics to the GIT repo of the hardware :sunglasses:

Can the YUN store the graphed webpages on its SD card, for viewing by any browser that connects.
I have developed ( mostly copied parts of existing examples) a program to control my solar water heating, 3 DS18B20 ( much more stable than analog inputs ) and a couple of calculated values, currently logged to csv file on SD.
Currently the webpage from TempWebPanel is the most unreliable part, often locking up
Collectd looks like it can do the logging and drraw do the graphing, so is it necessary to store in a chromebox or similar

Bournetoride:
Can the YUN store the graphed webpages on its SD card, for viewing by any browser that connects.
I have developed ( mostly copied parts of existing examples) a program to control my solar water heating, 3 DS18B20 ( much more stable than analog inputs ) and a couple of calculated values, currently logged to csv file on SD.
Currently the webpage from TempWebPanel is the most unreliable part, often locking up
Collectd looks like it can do the logging and drraw do the graphing, so is it necessary to store in a chromebox or similar

Yes. See my example @ GitHub - cydergoth/yun_monitor: HOWTO: Simple monitoring for Arduino Yun