jump to navigation

Load them up — 5 (DS18B20) Temp Probes — SKETCH CRASHES September 10, 2011

Posted by rik94566 in aquaponic automation, aquaponics, arduino, CAT 5 Cable, CEA, Controlled Environment Agriculture, Crop, DIY aquaponics, DS18B20, indoor aquaponics, indoor gardens, indoor growing, Sensor Hub, Stainless Steel Temp Probe, Temperature Probe.
Tags: , , , , , , , , , , , , , , ,
trackback

Well I got it together now and fired everything up — and the sketch crashed…  Here are the details of what it looked like.

5 probes and connection through harness

I put the 5 probe sketch I was using up on google docs and made it available at this link:

https://docs.google.com/leaf?id=0Bw1rZ4X2iJkmYzQyOWI0YzMtMzNlYy00NWNjLTg1ZWYtYzUxODUyM2VhNjlm&hl=en_US

If  you have a problem with the sketch just email me at rik94566@gmail.com and I will send the sketch to you.

Here is what it looks like as it was coded:

5 probe sketch as it ran

Here is the result when I ran the sketch:

Sketch only went this far

Interesting thing is that I worked my way up from 1 probe to 5 probes.  Before I started I checked all slots on the harness to make sure there would be no problems with the connections. Everything worked fine through 4 probes.  Here is what it looked like running 4 probes.

Now the fun begins..  get to figure out why this does not work with 5 probes. Found out some other things about deviceIndex while I was loading up all the probes.  Will blog about that next and present concepts that help drive the One-wire protocols.

Comments»

1. Jason - February 22, 2013

There is a built in function that’s included in the Dallas Library to convert to Fahrenheit try this:

DallasTemperature::toFahrenheit(sensors.getTempCByIndex(i))

So there is no need to run extra math on each conversion 😉 I would say this function is probably more efficient..

rik94566 - February 22, 2013

Jason – thanks for this information. I was not aware this function was in the library. You are right it will cut memory overhead on some of the arduinos. Thanks for sharing and helping people learn about DS18B20’s.


Leave a comment