jump to navigation

ARDUINO SKETCH — lesson learned November 27, 2010

Posted by rik94566 in aquaponics, arduino, DIY aquaponics, sensor, Temperature Probe.
Tags: , , , , , , , ,
trackback

I am working with a DS18B20 IC (1-wire).  Which means I am making a temperature probe prototype.  Once I understand the performance issues and how to get my arduino to read the IC, I can construct my Stainless Steel temperature  probes to be put into all my units.

DALLAS -- DS18B20 IC

I researched basic sketches to determine the most simple to use so I could get started.  I found two sources for use.
http://www.cheapvegetablegardener.com/2010/01/homemade-waterproof-digital-thermometer.html

The sketch looked good at the start, but after a review of it I found it hard to use as parts of it were out of order and in the wrong places.

I moved on to:

http://milesburton.com/index.php/Dallas_Temperature_Control_Library

I reviewed the sketch given in the example.  It was just what I was looking for to test my prototypes and test the individuals probes as I construct them.

So I started my sketch and input the lines of code based on the example.  I did it this way to try and learn the sketches and how they perform.  Once I went to verify my sketch I got an error.

Sketch Error problem

I could not figure out what was wrong with my imputed sketch…

After contacting Miles Burton who wrote the original sketch about my error.  His solution was to just copy and paste his sketch in to my sketch.  Guess what it worked with no errors.

LESSON LEARNED — go with what works and keep it simple at all times.

Comments»

No comments yet — be the first.

Leave a comment