jump to navigation

DS18B20 – 2 wire configuration – 2 Temp Probe — inconsistent results June 18, 2011

Posted by rik94566 in aquaponic automation, aquaponics, arduino, CAT 5 Cable, DIY aquaponics, DS18B20, Hacks, indoor aquaponics, indoor duckweed growing, indoor gardens, indoor growing, Rj45 connector, sensor, Sensor Hub, Stainless Steel Temp Probe, Standards, Temperature Probe.
Tags: , , , , ,

Being that I have a testing platform and the fact that I want to learn everything there is to know about how the DS18B20 behaves and performs I decided to test a 2-wire configuration using 2 temp probes.  Results were inconsistent.

Here is how I configured the RJ45 testing hub.  I kept the arduino side the same as in the last blog post and only changed the wire configuration on the hub side.   I configured the hub the same way for both position 1 and 2.

2-wire configuration at hub

The inconsistent results were generated only on position 2 of the hub.  I have no idea why this occurs.  It seems to be at random as to when it occurs in the cycles of the sketch.  With results that are inconsistent it is clear that it is not a good idea to use this for important work.  For 2 or 3 cycles normal temperatures report out and then the 185.00F is reported out.  Strange stuff.

I am using the same Sketch posted earlier for testing 2 Probe DS18B20 sensors.

Resuts from Sketch (inconsistent results Probe 002)

Doing a little research I found that inconsistent results are experienced when adding multiple DS18B20 sensors when using the parasite power mode, which is the 2-wire configuration I have working here. I will test other situations now and try and determine issues with this power modes and configurations


SUGRU – fills in the holes June 7, 2011

Posted by rik94566 in aquaponic automation, aquaponics, CAT 5 Cable, DIY aquaponics, DS18B20, Float Sensor, Float Switch, Hacks, Home Depot, indoor aquaponics, indoor gardens, indoor growing, Rj45 connector, sensor, Sensor Hub, Stainless Steel Temp Probe, Standards, SUGRU, Suppliers, Temperature Probe.
Tags: , , , , , , , , , , , , , , , , ,
1 comment so far

Now that I have working Sensors on a standardized connection platform (CAT 5 & RJ45).  I need to figure out how to use off the shelf housings that will be plug-n-play for my aquaponic units.  The problem is that nothing is water resistant and they all have lots of openings.  That is because most if not all are for indoor use.  All the outdoor options are to large for my applications.  So I went with a standard indoor 2-Port QuickPort I purchased at Home Depot.

Leviton 2-Port Surface Mount Housing

With a little help from SUGRU I was able to fill in the holes and can now mount the completed unit on my aquatubes.  This will allow me to cover all my sensor connections and transition over to RJ45 connectors.

Here is what I started with:

Starting Housing

Here is what it looked like before assembly:

Openings filled before assembly - Inside look

Bottom View

Here is the completed assembly:

Back View of Completed Assembly

Front View of Completed Assembly

How the openings match-up:

Opening that match-up

Now I am ready to connect up the sensors and mount the completed assembly on the aquatubes hook-up my CAT 5 and I am ready to sense all inputs.  O yes, I need some White SUGRU to make it look better.  I am placing my order today!

RJ45 Sensor Hub June 7, 2011

Posted by rik94566 in aquaponic automation, aquaponics, arduino, CAT 5 Cable, DIY aquaponics, DS18B20, Float Switch, Hacks, indoor aquaponics, indoor gardens, indoor growing, sensor, Sensor Hub, Standards, Temperature Probe.
Tags: , , , , , , , , , , , , , , , , , , , ,

Now that I have established my standard for sensor connections I will need build the hub to hook up the sensors.  So I build a 2 connector RJ45 jack hub to test the sensors that I build.  This hub will allow me to test different sensor configurations and arduino sketches for test sensors  as I develop them.

Here is what it looks like.

RJ45 Sensor Hub Connector

End view of terminals

I have marked the terminals on both ends so there can be no confusion as to what connections are being used.  Make sure you have test all the connections with your multimeter.  That way you know for sure everything is working before you start testing situations with sensors.

Make:SF — Featured Speaker at the Meeting on Aquaponics March 5, 2011

Posted by rik94566 in aquaponic automation, aquaponics, arduino, DIY aquaponics, POW-Rduino, sensor.
Tags: , , , , , , , , ,
add a comment

I was asked by Make:SF to talk about aquaponic automation.  I have now developed a desk top unit to test all the sensors and arduino controllers.  The meeting will be held Tuesday March 8th in San Francisco.  I will have a working demo of the auto cycle of my controller working all phases of the aquaponic unit.  This will be a first for me as I have just completed the arduino sketch to handle the auto mode of the controller.





Float Switch — values returned August 24, 2010

Posted by rik94566 in aquaponics, arduino, Float Switch.
Tags: , ,
add a comment

Knowing the values returned from the switch makes it possible to write a Sketch using these values to accomplish the task of turning a pump on or off.  Being that this is a switch only two states occur.  ON or OFF.  We will now determine the values for the ON State and the OFF State.

Three things need to happen in order to generate values from the Float Switch.

1.  Arduino Sketch needs to be developed and load on to the arduino

2  Reading taken in the OFF state or bottom of the switch.

3. Reading taken in the ON state or top of the switch.


Sketch to test for values

// Sketch to determine values for FLOAT SWITCH

int FLOAT = 0;
int float_val;

void setup(){
Serial.begin(9600);    // open serial port


void loop() {
float_val = analogRead(FLOAT);   // read value from FLOAT switch
Serial.print(“Float Switch reads “);


Reading from the lowest level of the Float Switch:

Lowest leavel reading

Reading from the higest level of the Float Switch:

High level reading

We now know the values in the ON and OFF States of the Float Switch.

It is now possible to use this switch to control water levels and perform work functions.