Newbie: Temperature measurements


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2007
    Posts
    3

    Default Newbie: Temperature measurements

    Hi,
    Please bear with me while I fill you in on some background info before I ask my question. I am a total newbie to PICs and have barely understood what is possible. I have gotten myself a book and a programmer is on the way. Meanwhile I am using a simulator.
    I have a sound understanding of programming and while I have not used Basic before (or at least not this kind of Basic) I am confident that Ill manage.
    I have however no real background in electronics and am often stumbled but the simplest things.
    My goal is to create a circuit based on the PIC16f84a that can "sit" somewhere battery powered for ca. 48 hours and take a temperature reading every minute/10minutes/hour. After 48 hours I will pick it back up and connect it to my PC (via USB or serial) to get the data in textform and repeat the process.
    Now, with that in mind I pose my questions:
    1. Is that even possible?
    2. Do you think that the electronics involved will take years to learn?

    Please don’t misunderstand me. I am very prepared to learn and put my time in. Especially since once having accomplished this, I could go on and do the same for humidity and pressure for what seems a very reasonable price. However, it is possible to do all this with USB ready hardware and that is what I am using at the moment.
    On the one hand I am very tempted by the flexibility PICs seem to offer but on the other I am daunted by the electronics involved.
    This forum seems to have its share of experienced Members. What do you think? Please feel free to tell me that I am wasting my time or ask for any more information that you might need. Meanwhile I will try to get that silly LED to blink...

    PS: In case you have any further newbie electronics website, please list them. Especially ones with Tutorials and Case studies. Magazines are not really an option for me.
    "Sharing knowledge is one way of achieving immortality"

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Hi, Budda

    The Project for a PIC is interesting ...

    BUT you have such a thing already-in-one-package from MAXIM ...

    Just have a look to the DS 1615 chip ... that you even can get free from MAXIM Integrated Products.

    I know it is a bit less funny ... but if you're a beginner ... a simpler project would really be better !!!

    Alain

    PS: For the "chocolate box" ... you'll have to wait a bit more ... Cf.: Cat Stevens !!!
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Default Easily accomplished!

    Easily accomplished, but I don't recommend it as a first project to cut your teeth on. Better to know your key ingredients first. Break it all down into sections - building blocks - study each block before constructing the building.

    Key ingredients for a simple temp logger:

    1. PIC (16f628a, forget about the 84)
    2. EEPROM (24LC256, PIC hasn't enough internal memory)
    3. Temp sensor (LM335Z or better)
    4. Power supply (Preferably regulated w/ adequate decoupling)
    5. Serial interface for the PC (Max 232)

    Five building blocks to study. Build & test each one before constructing the 5 story high rise. Same story applies for coding. Suggest getting blinky to work first before diving into a project like this. It's not terribly difficult but it is at 'novice intermediate level'

    Trent Jackson

  4. #4
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Hi, Jackson

    Just forgot the RTC ... good idea, no ???


    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    A NEWBIE that wants to learn!!! Welcome.

    http://www.rentron.com/pic.htm Has some good tutorials .

    None of this is hard if you take it step by step.

    Years to learn? Depends on how many hours a day you work on it. Hour or two a day and in a few weeks this project should be running.

    HAVE FUN
    Dave
    Always wear safety glasses while programming.

  6. #6
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Smile Could be a good idea

    Quote Originally Posted by Acetronics View Post

    Just forgot the RTC ... good idea, no ???
    A Real Time Clock wouldn't be a too bad of an idea if extremely accurate time keeping was required. I personally wouldn't bother with its expense if all I wanted to do was take a temp reading every 10 mins for a couple of days.

    Well structured code can be written to suffice for a simple clock that may only lose or gain a few seconds here or there in a period of 48 hrs.

    Trent Jackson

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Thumbs down

    Quote Originally Posted by T.Jackson View Post

    Well structured code can be written

    Trent Jackson
    Trent,

    Do you remember our friend wrote " I'm a beginner ..."

    Cheers ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  8. #8
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    Then the OP is in luck - the second code set listed here
    http://www.picbasic.co.uk/forum/showthread.php?t=2129
    maintains time as well as most RTC ICs and could easily be ported to 628A or similar. This code is around 30 lines or so of instructions to do this.

    Also, if the OP only wants 10 minute intervals over 48 hours, the 628A could be used without external EEPROM ... stash some in the on-board EEPROM and the others in DATA MEMORY. It's battery powered - just do not turn it off until the data is downloaded. This could be a stepping stone to more data and and external EEPROM.

    The manual has the "RS232" connection for PIC direct to PC - see SEROUT for example. No need to add MAX232 unless he want to do it really right. Again, a stepping stone to more complexity.

    Just some ideas - good luck blinking your led.
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  9. #9
    Join Date
    Feb 2007
    Posts
    3


    Did you find this post helpful? Yes | No

    Default

    Thank you all for those encouraging messages!

    Trent,
    thank you so much for your post. It seems like a very sensible and logical idea to do that. My Programmer is on the way (i hope I can do 16f628a with it) and i will get into researching each block. Are there any webpages you would recommend so I can understand those steps better?

    mackrackit,
    Great site thanks! i already spend a good amount of time there and am in the process of taking the whole tutorail step by step. Is it a problem that everywhere I look for entry level stuff I see 16F84? Will it be difficult for me to switch to 16f628a later?

    Acetronics, thanks for the tip. It would be great to see a ready-built solution as something I could aspire to. However, after spending 1 hour (seemed like days) on the Maxim site I gave up. The site is clearly written for people who deal with electronics a lot and don't need explanations. I found several temperature elements and even some references to Time/Temperature/Event Recorders but they were nowhere to be seen as products...

    Paul,
    while your posts are still over my head I understand the need for something that gives me the time. After all I need a timestamp to record a timeline. Thank you for the tip about the memory. I will probably first build one without external memory and then a couple with. That would enable me longer logging times, no? A week would be great.
    But more about that later, once I got the basics down...
    Last edited by Budda; - 30th March 2007 at 09:38. Reason: Another post in the time i wrote this
    "Sharing knowledge is one way of achieving immortality"

  10. #10
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Is it a problem that everywhere I look for entry level stuff I see 16F84? Will it be difficult for me to switch to 16f628a later?
    Not a problem. You can do more with the other chips, but that is all part of the learning curve. Basically all of the micro chips are the same.16F, 18F The same as a Chevy and a Rolls. You can drive one, you can drive the other. Might have to look around a bit for the wiper control, but still the same.

    Bet I get slammed for this analogy.
    Dave
    Always wear safety glasses while programming.

  11. #11
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Budda View Post
    Thank you all for those encouraging messages!

    Acetronics, thanks for the tip. It would be great to see a ready-built solution as something I could aspire to. ...
    Hi, Budda

    You have here ... as a starter kit !!!

    http://www.maxim-ic.com/quick_view2.cfm/qv_pk/2820

    http://datasheets.maxim-ic.com/en/ds/DS1921K.pdf

    http://datasheets.maxim-ic.com/en/ds/DS1921G.pdf

    Seems DS 1615 and 1616 ( 1615 + 3 Analog recording channels ...) have been stopped ...

    Now, there is the 1Wire "thermochron" you can interface straight to the Computer !!!


    Alain

    PS: ya ... their site is not so easy to browse ....
    Last edited by Acetronics2; - 30th March 2007 at 10:01.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Replies: 10
    Last Post: - 17th February 2012, 07:19
  2. Conversion problem
    By eva in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 15th March 2007, 18:21
  3. Help for decimal conversion
    By eva in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th March 2007, 18:20
  4. Serout "onewire.bas"
    By puru in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th July 2005, 00:14
  5. Interrupt and Serial communication to PC.
    By obaskirt in forum mel PIC BASIC
    Replies: 2
    Last Post: - 17th June 2005, 20:01

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts