• Welcome to Photrio!
    Registration is fast and free. Join today to unlock search, see fewer ads, and access all forum features.
    Click here to sign up

Temp Control and Data Logging

And after doing a temp project, I'd like to data log off the serial port on my pH meter, and maybe send commands down a serial port to control the speed of my peristaltic pumps. But first temps.
 
Kirk,

I have too many irons in the fire already, and a few other arduino projects ahead of something like process control logging. But you've hit on the right stuff already, and I think you'll be surprised how quickly it will come once you get started. Besides, I'm on linux only now, and can'd duplicate your setup. I haven't done much real program writing since the mid-80's when I got the first release of Turbo-Pascal for $49. Put together an Epson FX-80+ control program that (along with other things) would upload a Greek and math character set I put together to upper ASCII for my wife to use in her thesis.

BTW, with newer versions of linux, there's not nearly so much compiling necessary anymore. Most distributions install binaries from repositories and have installation managers that take care of dependencies these days.

Lee
 
And after doing a temp project, I'd like to data log off the serial port on my pH meter, and maybe send commands down a serial port to control the speed of my peristaltic pumps. But first temps.
The Arduino IDE has a serial monitor that will show you the raw output from the serial port for your pH meter if it's sending. Just point it at the correct port with the right baud rate.

Lee
 
Careful waterproofing an LM35, since it's analog it seems to be very responsive to any electricity in the water. Case in point: I waterproofed my LM35 using epoxy, Cat5 cable and a plastic pen tip. I tested it in a plain cup of water and it gives a reasonable reading. The moment I put it in my Jobo's water the temperature goes crazy. It only does this in the Jobo's water, I suspect because of the heating element. My next attempt I'm going to have to try to shield the sensor better I guess.
 
Lee, thank for the info. What Linux distro are you running? I've got a computer in the darkroom that has removable bays in it so I can whip together a linux box pretty quick. I've got RH/Fedora disks up to about Fedora 3 or so, and all my experience has been with RH/Fedora.

DOmaz - so you are thinking you have a bit of a ground fault in your Jobo? I was thinking about unclosing whatever sensor I get in a stainless tube so I can hang it from a ring stand clamp and suspend it is the emulsion kettle. There should be no stray electrical currents in there though. Just magnetic ones!
 
Kirk,

I'm running several vintages of Ubuntu now and for the last 3 years or so. I've tried a few others, including Red Hat, but that was back at 5.2 or so, ancient history in computer years. Fedora 3 and later should use RPM (Red Hat Package Manager) binary repositories. Ubuntu is built on Debian and uses .deb binary packages. Nearly any current linux you pick will have binary package management. Fedora is now at 10, so you might want to try it if you'd feel more at home there. Even software that isn't in official distribution repositories is often available in .rpm and .deb form on various web sites.

You should also be able to easily dual boot MS and linux if you have enough space on your hard drive, or a slot for another hard drive. I do that with a couple of machines here to keep other people in the family happy. I prefer to add a dedicated linux hard drive, and storage is pretty cheap now. Linux can also now read and write NTFS, and someone's done a program that allows MS Windows to read/write ext3 *nix formatted drives.

Lee
 
Funny, I messed with LM34/35 + Arduino a few years ago too. Making the sensor waterproof was a pain but also a challenge.

Ubuntu is a good platform for the Arduino IMHO. If you are serious about Arduino, you need to learn C asap and C under Linux is natural.

There is a pretty good learning curve even with a great environment like the Arduino offers. So plan on doing very small things, like learning to blink an LED, before you even think about serial stuff.

I thought a lot of these site:
www.sparkfun.com - general hardware
www.moderndevice.com - kit forms of the Arduino hardware.

Good luck.
steve.
 
OK - I got the Arduino, and I've blinked the LED. I wasn't able to find a LM-34/5, but I've got a DS18S20 too. I need to find my breadboarding stuff and some time to try it out. It looks like it should work nicely.
 
I googled Arduino and it is seriously cool.
Years ago I found a text file on 'dream goggles'.. An IR emitter/sensor that bounces off of your eye and waits for a change (REM sleep), once that happens it blinks an LED light to let you know that you are dreaming.. Pretty cool stuff, I just remember the software being kludgey but it did work.

Arduino would be perfect for that.. OT sorry.. just wanted to say thanks for the heads up on that.
 
After a bit of programming help from my cousin's husband who programs in C and Java professionally, I can data log temps with the Arduino board and either a Maxim-IC.com DS18B20 or DS18S20 1-wire serial temperature sensor (they have different software requirements). Total parts used are the Arduino board ($35), a breadboard ($10), a 4.7K ohm resistor ($0.01), a couple bits of 24 ga. wire, and 1 to 3 temps sensors (free samples can be obtained from Maxim-IC).

Now to hard wire everything and put the sensors in to stainless tubing, and do a bit of soldering, it should be up and running. We're still putting a bit of prettiness in to the logging program, which time stamps the data and writes to a text file. I'll post the code for it when it gets finalized.

In the mean time, for those that want a cheaper and commercially available option, look into the Go!Temp sensor from Vernier.com http://www.vernier.com/go/gotemp.html It's $39 with its own data logging software. That's a pretty sweet deal. Looking at the specs, it's got the same accuracy and prescision as the Maxim chips I used above. The Go!Temp probe also plugs directly into the USB port so no additional hardware is needed as in the do-it-yourself approach.
 
Very nice Kirk. I was wondering a couple of days ago how things were progressing. Thanks for posting the sources for hardware. I'm looking forward to seeing the code.

Lee