Switch to English Language Passer en langue française Omschakelen naar Nederlandse Taal Wechseln Sie zu deutschen Sprache Passa alla lingua italiana
Members: 70,556   Posts: 1,545,035   Online: 885
      
Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 36
  1. #21

    Join Date
    Jun 2004
    Location
    Portland, OR
    Shooter
    4x5 Format
    Posts
    3,268
    Even nicer:
    http://www.danielandrade.net/2008/07...ensor-arduino/

    I guess I get one and try it!

    Can you Arduino experts :^) point me to how you take the readings from the Arduino and save the results, perhaps with a timestamp? Can you tell the software to save values to a text file or something?
    Kirk

    For up from the ashes, up from the ashes, grow the roses of success!

  2. #22
    Photo Engineer's Avatar
    Join Date
    Apr 2005
    Location
    Rochester, NY
    Shooter
    Multi Format
    Posts
    23,030
    Images
    65
    Use Timer$ in VB or C++ on a Windows machine to get the absolute time, or Timer.now - Timer.then (made up variables) to get offset. The value can be gotten by an In statement or other type depending on the language and port. For a parallel port, which was easy, it was a bit compare. For serial it is a bit (hah pun alert) harder.

    PE

  3. #23
    optique's Avatar
    Join Date
    Aug 2006
    Location
    Houston, Texas
    Shooter
    Medium Format
    Posts
    199
    Blog Entries
    14
    Images
    4
    Kirk

    IMHO you should join the forum at arduino.cc and spend a few days there first. You will make informed decisions then and end up having much more fun. WARNING: THE ARDUINO IS HABIT FORMING.

    I can guarantee you will become well familiar with the concept/utility of the "serial terminal."

    BTW, the arduino forum people are some of the most patient and helpful you will find (outside of apug that is!) As Lee indicates, Arduino net support is broad and deep.

    Good luck
    Steve.

    Quote Originally Posted by Kirk Keyes View Post
    Even nicer:
    http://www.danielandrade.net/2008/07...ensor-arduino/

    I guess I get one and try it!

    Can you Arduino experts :^) point me to how you take the readings from the Arduino and save the results, perhaps with a timestamp? Can you tell the software to save values to a text file or something?

  4. #24
    Lee L's Avatar
    Join Date
    Nov 2004
    Shooter
    Multi Format
    Posts
    3,244
    Kirk,

    It might be helpful to know what platform you're on, and what languages you have available or would prefer to use. I know I was looking at code last week for doing just what you want, python (a "free in all senses" programming language) reading the serial port (actually USB posing as serial) where the arduino was connected, the arduino supplying data at a given frequency to the port (9600,8,N,1), then a write to a file. I also found a polynomial fit for the data on a thermistor I had on hand (mfgr's data, not tested) that was within +/- a degree celsius over a broad range. There's also a system time call in python that's simple. Is there a language without one? There are more linear thermal sensors than a thermistor available. Parallax has some of those, as do the usual suspects, Mouser, Digikey, etc.

    I was thinking that I might point you at some code, but after looking a bit decided that it would be too early to try that (way too many possibilities) when I don't know your OS or preferred computer language for communicating with the arduino and writing to files. Try looking at the documentation and introductory downloads at arduino.cc, read through some of the sample programs, look at the forae there, and that will give you a good idea of what's involved. You might be surprized at how easy it can be. Google on 'arduino thermometer' and browse what comes up.

    Lee
    Last edited by Lee L; 01-09-2009 at 07:45 PM. Click to view previous post history.

  5. #25

    Join Date
    Jun 2004
    Location
    Portland, OR
    Shooter
    4x5 Format
    Posts
    3,268
    Lee - I'm running Win 2K and XP, and I can build a Fedora box if need be, but I kind of prefer to stick with windows. I can get around in Linux, but I'm not too fast with all the make/makefile stuff. Languages, I know Basic best, and when I say Basic, I mean like True Basic, not any of the VB versions that have come along over the years. I really don't know any others to that depth, and it's really been 20+ years since I've used it. I can muddle my way around Excel macros and HTML, I supposedly learned a bit of Pascal years ago. (The t-shirt that was popular at the time I was at Reed College was "Pascal - for those that can't C"). All I really remember is that I hated Pascal - too strict or something. I looked at Python for a half hour about 10 years ago...

    So I guess I guess I'm learning something new, as far as languages go.

    After that, I'd like the data in text or csv form and then I'll use Excel for my number crunching.

    Lee - if you want to collaborate, I'm up for it. I've ordered a Arduino Duemilenova and a DS18B20 serial "one wire" temp sensor. That one looked like it had a bit more resolution than the other stuff I looked at. The DS18B20 seems kind of elegant. And being serial, I figured I could always just plug it into a serial port and use a program like Windmill serial software http://www.windmill.co.uk/

    But the LM-34/35 temp senors looked easy enough as well, and cheap and easy to find. No fitting polynomials to any of the 3 chips I've mentioned.

    I've got breadboarding stuff, and I'm able to understand basic electronics - I've build a MIDI interface for my old analogue synths from a kit as well as other mics projects like I did a shutterspeed timer years ago. It's not elegant, but it does work and reads down to 0.1 milliseconds.

    I'm flexible on languages, so what ever you know, we can do. I see Python is available for Windows.
    Kirk

    For up from the ashes, up from the ashes, grow the roses of success!

  6. #26

    Join Date
    Jun 2004
    Location
    Portland, OR
    Shooter
    4x5 Format
    Posts
    3,268
    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

    For up from the ashes, up from the ashes, grow the roses of success!

  7. #27
    Lee L's Avatar
    Join Date
    Nov 2004
    Shooter
    Multi Format
    Posts
    3,244
    Quote Originally Posted by Kirk Keyes View Post
    <snip>
    Lee - if you want to collaborate, I'm up for it. I've ordered a Arduino Duemilenova and a DS18B20 serial "one wire" temp sensor. That one looked like it had a bit more resolution than the other stuff I looked at. The DS18B20 seems kind of elegant. And being serial, I figured I could always just plug it into a serial port and use a program like Windmill serial software http://www.windmill.co.uk/
    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

  8. #28
    Lee L's Avatar
    Join Date
    Nov 2004
    Shooter
    Multi Format
    Posts
    3,244
    Quote Originally Posted by Kirk Keyes View Post
    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

  9. #29

    Join Date
    Nov 2007
    Location
    Tacoma, WA
    Shooter
    Multi Format
    Posts
    560
    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.

  10. #30

    Join Date
    Jun 2004
    Location
    Portland, OR
    Shooter
    4x5 Format
    Posts
    3,268
    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

    For up from the ashes, up from the ashes, grow the roses of success!

Page 3 of 4 FirstFirst 1234 LastLast


 

APUG PARTNERS EQUALLY FUNDING OUR COMMUNITY:



Contact Us  |  Support Us!  |  Advertise  |  Site Terms  |  Archive  —   Search  |  Mobile Device Access  |  RSS  |  Facebook  |  Linkedin