![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hello guys, I need a circuit of data-logger which measure temperature (it samples the value of a resistor that changes with the temperature every minute) and saves the results in it's own inner memory for a maximum period of a year. It should have a usb connector and no CD would be added to the product, so the software should be in the inner microcontroller. I don't need the software, but only ideas for the hardware. Any help would be a life saver. Thank you very much. | |
| |
| | (permalink) |
| why usb? it adds a lot to the complexity. A micro can easily access an MMD card, just swap it out when you visit site installation or pop it out and read it and pop it back in. Last edited by Ubergeek63; 5th June 2008 at 01:36 PM. | |
| |
| | (permalink) |
| How many 8bit samples do you want to collect. An 18F2550 has USB support, A/D and I2C/SPI | |
| |
| | (permalink) |
| The device has to sample the temperature every minute and save the data for a year. | |
| |
| | (permalink) | |
| Quote:
If you also want to store date and time information then the memory requirement increases. Mike. | ||
| |
| | (permalink) |
| hi, As Mike states, the problem is date/time tagging of the samples, takes a lot of memory. A technique I use was to store the date/time when the log button was pressed, then start saving data samples once every second. At midnight the date/time was saved again in the next available memory location. The best I have ever achieved using a software clock from the local xtal is about 1 minute/month, the xtal osc is trimmed for best accuracy. If you did store the date/time and the data for a full year, the download via the RS232 is slow. During the download the 'tag' date/time was calculated from the start date/time, resynching at the midnight tag. The other factor is setting the date and time, the method I used was via the RS232, uploading the PC's date/time. Hope this helps.
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 5th June 2008 at 02:54 PM. | |
| |
| | (permalink) |
| Definitely won't be an easy task if your not familiar with micro's I'm not sure if you wanted a remote logger or a local one that is permanently connected to the PC, but the previous posts kind of suggest that it is a remote device Using a DS1307 (time & date IC) with your micro would probably give a lot better results, but its dependent on the quality of the crystal and the circuit layout. 1 minute a month is definitely achievable as ericgibbs has managed ![]() From there you can get time and date stamps fairly easily. Storing this data into EEPROMs is the next hassle, given the amount of data, the PIC's on board memory won't be suffice.. ![]() This is an example of using multiple EEPROM's with I2C. Each device contains 32K x 8 (256 Kbit) of memory. Each data packet would contain: Hour, Minute, Month, Day, Year, Sample information. Given that all other samples except the Sample are bytes (sample would most probably be a Word result - 16bits) then each packet of info would be 7 Bytes. A single 32Kbyte eeprom could store 4571 tagged samples, but in a year there are 365 * 24 * 60 minutes (525600). One solution would be to use a more expensive data storage solution (bigger eeprom), another is to refine your method of storing data, eg, only store the Time/Date at the start of each EEPROM in use, from there each sequential stored sample is 1 minute from the last... Your "downloading" software on the PC would recognize this and know how to treat the following information - greatly improving your storage capabilities. Perhaps a mix of both methods would suite your application
__________________ Spency. PIC Micro's - Your mind is the limit PIC's and interfacing with other devices - a PIC Basic Guide @ digital-diy.net Last edited by gramo; 7th June 2008 at 12:10 AM. | |
| |
| | (permalink) |
| The 18F452 has no internal osc, you could use the 32kHz output of the DS1307 | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Multichannel Data Logger | 271zmeihc | Electronic Projects Design/Ideas/Reviews | 11 | 4th June 2008 10:35 AM |
| Which Data Logger? | Overclocked | General Electronics Chat | 4 | 2nd June 2007 06:39 PM |
| gps data logger | simo | Electronic Projects Design/Ideas/Reviews | 1 | 9th July 2005 05:36 AM |
| temperature data logger | cmer | Electronic Projects Design/Ideas/Reviews | 3 | 4th July 2005 09:40 PM |
| DATA LOGGER | Sherif Welsen | Micro Controllers | 6 | 23rd October 2003 09:52 AM |