Shop OBEX P1 Docs P2 Docs Learn Events
Logging Data from a Temperature Sensor — Parallax Forums

Logging Data from a Temperature Sensor

ArchiverArchiver Posts: 46,084
edited 2002-01-19 00:45 in General Discussion
I need to log data from several sensors including a temp sensor.
Eventually I'd like to add the real time clock (RTC), but until then, how
do I get started in this pursuit. I searched in the Stamp Manual but
found nothing. I have a BS2P40 and a BSP2 Demo Board. I will be
sampling about 3 sensors once every 10 minutes for anywhere from about 6
hours to 1 month. Do I need additional hardware? How is the data
typically saved in this type of application?

Ideas?

Chris
________________________________________________________________
GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today! For your FREE software, visit:
http://dl.www.juno.com/get/web/.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-01-17 22:40
    For cdundorf

    I have a program that monitors and captures the data from forty LM34 sensors.
    The data is read every 10 minutes ( adjustable) displayed in Hyperterminal
    where the text (data readings) is captured and sent to Excel. Does this
    interest you ?

    Sid
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-17 23:11
    In a message dated 1/17/02 4:31:01 PM Central Standard Time,
    cdundorf@j... writes:


    > I need to log data from several sensors including a temp sensor.
    > Eventually I'd like to add the real time clock (RTC), but until then, how
    > do I get started in this pursuit. I searched in the Stamp Manual but
    > found nothing. I have a BS2P40 and a BSP2 Demo Board. I will be
    > sampling about 3 sensors once every 10 minutes for anywhere from about 6
    > hours to 1 month. Do I need additional hardware? How is the data
    >

    Since you're using a BS2p40, you might want to take a look at the code for
    the BS2p demo board or "Plus Pack." You will find code for dealing with
    1-Wire temperature sensors and interfacing to a Philips RTC via I2C.

    Try these links:

    http://www.parallaxinc.com/html_files/products/BS_Boards/bs2p24_demoboard.asp
    http://www.parallaxinc.com/html_files/products/BS_Accessories/plus_pack.asp

    -- Jon Williams
    -- Parallax


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-18 00:18
    Sid,

    Yes. I'm excited. Please email to:
    cdundorf@j...

    BTW, I'm curious to hear more about your application. forty LM34s is no
    small number.

    Thank You,
    Chris

    <<>>

    Date: Thu, 17 Jan 2002 17:40:37 EST
    From: Newzed@a...
    Subject: Re: Logging Data from a Temperature Sensor

    For cdundorf

    I have a program that monitors and captures the data from forty LM34
    sensors.
    The data is read every 10 minutes ( adjustable) displayed in
    Hyperterminal
    where the text (data readings) is captured and sent to Excel. Does this
    interest you ?

    Sid
    ________________________________________________________________
    GET INTERNET ACCESS FROM JUNO!
    Juno offers FREE or PREMIUM Internet access for less!
    Join Juno today! For your FREE software, visit:
    http://dl.www.juno.com/get/web/.
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-18 00:28
    Forgot about the application. This is for monitoring the individual
    temperatures of A/C air, recycled air and air drawn in from the outside, and
    then measuring the temperatue of the air when it is mixed together. Ducts
    are 6x12 feet so it is a pretty large installation.

    Sid
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-18 01:49
    Parallax's new release of the Industrial Control Stamps-in-Class text
    has a new addition on logging and real-time control that you may want
    to check out, though I don't think chapter 7 is available yet in pdf
    format.

    http://www.parallaxinc.com/html_files/products/StampsIC/sic_ic.asp

    The text uses StampPlot Lite to plot data, though only single channel.
    StampPlot Pro has greater flexibility for logging and plotting and
    allows multiple analog values to be plotted/logged. The new beta
    release comes with an configuration for plotting logged data.
    http://www.selmaware.com/stampplot

    Next week we should be releasing a series of BS2/StampPlot programs
    specifically for the IC text above.

    -Martin Hebel
    SelmaWare Solutions
    http://www.selmaware.com
    and
    Southern Illinois University, Electronic System Technologies
    http://www.siu.edu/~imsasa/est


    --- In basicstamps@y..., Christopher C Dundorf <cdundorf@j...> wrote:
    > I need to log data from several sensors including a temp sensor.
    > Eventually I'd like to add the real time clock (RTC), but until
    then, how
    > do I get started in this pursuit. I searched in the Stamp Manual
    but
    > found nothing. I have a BS2P40 and a BSP2 Demo Board. I will be
    > sampling about 3 sensors once every 10 minutes for anywhere from
    about 6
    > hours to 1 month. Do I need additional hardware? How is the data
    > typically saved in this type of application?
    >
    > Ideas?
    >
    > Chris
    > ________________________________________________________________
    > GET INTERNET ACCESS FROM JUNO!
    > Juno offers FREE or PREMIUM Internet access for less!
    > Join Juno today! For your FREE software, visit:
    > http://dl.www.juno.com/get/web/.
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-18 15:59
    Sid,
    I'm interested in the HyperTerminal to Excel part.
    When you say 'sent to Excel' do you mean that HyperTerminal passes the data
    to Excel via VBA or something like that or do you grab the data, save it to
    a file and THEN import it in Excel.
    I would really like to have an app inserting data direct to an Excel
    worksheet.
    Thanks!
    /Henrik Olsson.

    henrik-olsson@t...

    Original Message
    From: <Newzed@a...>
    > For cdundorf
    > I have a program that monitors and captures the data from forty LM34
    sensors.
    > The data is read every 10 minutes ( adjustable) displayed in
    Hyperterminal
    > where the text (data readings) is captured and sent to Excel. Does this
    > interest you ?
    >
    > Sid
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-18 16:44
    Good morning, Henrik

    The data is captured by Hyper to a text file of your own choosing, and then
    imported into Excel. Once you open the Import Data command, you have a
    series of screens which let you sort of arrange and format the data into a
    spreadsheet.

    Sid
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-18 17:44
    Thanks Sid,
    Thats how I have been doing it also, but I was hoping for a way to pass the
    data directly in to Excel, skipping the capture data to file step. I know it
    can be done but not how to do it, yet.
    Best regards:
    Henrik Olsson.

    Original Message

    > Good morning, Henrik
    >
    > The data is captured by Hyper to a text file of your own choosing, and
    then
    > imported into Excel. Once you open the Import Data command, you have a
    > series of screens which let you sort of arrange and format the data into a
    > spreadsheet.
    >
    > Sid
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-18 18:24
    For Henrik

    See if this will help you.

    Go to Excel. In a new worksheet, type in your name or something. Go to
    "Save As" and save it as data.txt. In the Save window scroll down to "Text
    (Tab delimited) and click on that, then click Save. Close Excel, go to Hyper
    and set you capture to C:\office20\office\data.txt or whatever the path to
    your data.txt file is. Click on Start and put some data from Stamp or
    something into the Hyper window. When you have enough for a test, stop the
    capture, close Hyper and go to Excel. Open the data.txt file you have saved.
    It will immediately take you to the same screen you get when you import a
    file. Make sure "Delimited" is checked, then get out of it -
    next-next-finish. The data on the Hyper screen will appear on your Excel
    screen. Does tht help ?

    Sid
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-18 18:36
    Henrik, you can also use the same approach and save it to a Word.txt file.
    When you open it in Word you immediately get a Save screen. Unicode (UTF-8)
    should be highlighted. Just click OK and the Hyper data will appear in your
    Word file.

    Sid
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-18 18:38
    Henrik I forgot to mention - change your capture file to

    C:\My Documents\data.txt

    Sid
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-19 00:24
    It can be done via a activex type app, with serial input.front-end - pretty
    trivial in delphi or VB.

    How complicated is your data - if you can send me a sample, I mght knock
    something up in my spare time - but no promises!!

    Regards,

    Tony Wells

    Original Message
    From: "Henrik Olsson" <henrik-olsson@t...>
    To: <basicstamps@yahoogroups.com>
    Sent: Friday, January 18, 2002 5:44 PM
    Subject: Re: [noparse][[/noparse]basicstamps] Logging Data from a Temperature Sensor


    > Thanks Sid,
    > Thats how I have been doing it also, but I was hoping for a way to pass
    the
    > data directly in to Excel, skipping the capture data to file step. I know
    it
    > can be done but not how to do it, yet.
    > Best regards:
    > Henrik Olsson.
    >
    >
    Original Message
    >
    > > Good morning, Henrik
    > >
    > > The data is captured by Hyper to a text file of your own choosing, and
    > then
    > > imported into Excel. Once you open the Import Data command, you have a
    > > series of screens which let you sort of arrange and format the data into
    a
    > > spreadsheet.
    > >
    > > Sid
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-01-19 00:45
    If you use Visual Basic (ver 6.0 or better), you can open the Excel objects
    and create a new spreadsheet or use a existing one, and put the data
    directly into the spreadsheet.
    You would read the data in from the COM port, and stuff the data into the
    cells on the spreadsheet. You should be able to get the info from MSDN
    online, or from the VB MSDN CD if you have one.

    Original Message
    From: tony.wells@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=u4XzT9Xqmm7gLgUwWUuAwxN0OC74iOCtNwoGWN4p0PPZTIRZ0NG6Mly8nV_kAAR1QaNw62Koupqd0EaH2Io]tony.wells@a...[/url
    Sent: Friday, January 18, 2002 6:24 PM
    To: basicstamps@yahoogroups.com
    Subject: Re: [noparse][[/noparse]basicstamps] Logging Data from a Temperature Sensor


    It can be done via a activex type app, with serial input.front-end - pretty
    trivial in delphi or VB.

    How complicated is your data - if you can send me a sample, I mght knock
    something up in my spare time - but no promises!!

    Regards,

    Tony Wells

    Original Message
    From: "Henrik Olsson" <henrik-olsson@t...>
    To: <basicstamps@yahoogroups.com>
    Sent: Friday, January 18, 2002 5:44 PM
    Subject: Re: [noparse][[/noparse]basicstamps] Logging Data from a Temperature Sensor


    > Thanks Sid,
    > Thats how I have been doing it also, but I was hoping for a way to pass
    the
    > data directly in to Excel, skipping the capture data to file step. I know
    it
    > can be done but not how to do it, yet.
    > Best regards:
    > Henrik Olsson.
    >
    >
    Original Message
    >
    > > Good morning, Henrik
    > >
    > > The data is captured by Hyper to a text file of your own choosing, and
    > then
    > > imported into Excel. Once you open the Import Data command, you have a
    > > series of screens which let you sort of arrange and format the data into
    a
    > > spreadsheet.
    > >
    > > Sid
    >
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Sign In or Register to comment.