Data logging temp with BS2 Home A/C
Dennis240
Posts: 5
HI everyone,
Can some one direct me to a place that might have some exaples of code for data logging temperature and one or two inputs connected to a computer runing a Visual Basic GUI. I wanto data log the cooling efficiency of my house ( I live in Florida) . I'll try to make it long inside temp. out side temp. when the ac is on and maybe humidity. Hope I can make it log for about a week or so on the pc. Or if there is a way to have the stamp write a excel file while logging?
Thanks
Post Edited (Dennis240) : 8/6/2005 1:40:23 AM GMT
Can some one direct me to a place that might have some exaples of code for data logging temperature and one or two inputs connected to a computer runing a Visual Basic GUI. I wanto data log the cooling efficiency of my house ( I live in Florida) . I'll try to make it long inside temp. out side temp. when the ac is on and maybe humidity. Hope I can make it log for about a week or so on the pc. Or if there is a way to have the stamp write a excel file while logging?
Thanks
Post Edited (Dennis240) : 8/6/2005 1:40:23 AM GMT
Comments
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
Http://www.parallax.com
·
We have exactly what you need:
http://www.parallax.com/html_pages/downloads/software/software_stampDAQ.asp
StampDAQ is presented as a real-time data acquisition tool for the BASIC Stamp, but there's nothing preventing you from using WRITE commands while the BASIC Stamp is being used in the field to store the data in EEPROM, then READ and SEROUT to stream it into Excel when you return.
For another comparison, see our "Remote Controlled Airplane Projects" with the BASIC Stamp video:
http://www.parallax.com/html_pages/resources/videolibrary/resources_product_videos.asp
In this video we demonstrate the storage of GPS data in a BS2p EEPROM, with subsequent flight analysis in Excel. This doesn't use StampDAQ, but it could have just as easy as what we did (copy from the DEBUG window).
Your project is entirely feasible and there is no need to write custom VB software to achieve your goals. Use Hypertermal, the Stamp DEBUG terminal, or StampDAQ.
Sincerely,
Ken Gracey
Parallax, Inc.
How much data can a BS2 store reading 3 channels about a minute apart? Or is this not enought information to give an answer?
Post Edited (Dennis240) : 8/1/2005 4:26:52 AM GMT
The BS2 has a 2K EEPROM, which could store 2048 bytes of data if you had NO PBASIC program in the EEPROM. Your PBASIC code and data is stored in the same EEPROM. Normally, your data will store from location 0 up, and the PBASIC program stores from 2048 down.
If your PBASIC program uses 1/4 of the EEPROM, then you've got about 1500 bytes left.
Three byte records with 1500 bytes is 500 records. That's 500 minutes, or 8.3 hours.
But you can use a BS2p24 and access all 2K x 8 program banks from your main PBASIC program. Then you'll have enough EEPROM for over 5,000 records of 3 bytes each - 83 hours. Of course, you can use an external EEPROM also, but there's a certain convenience about using READ/WRITE with the Stamp's internal EEPROM.
Make sense? I didn't double-check my math because I have guests here and we're starting the movie "Napoleon Dynamite" right now.
Ken Gracey
Parallax, Inc.
73
spence
k4kep
Ken,
Did you see the box office that movie made, like 45M