temtronic
Joined: 01 Jul 2010 Posts: 9228 Location: Greensville,Ontario
|
|
Posted: Sat Nov 05, 2011 9:42 pm |
|
|
This is a rather ambitious project so break it up into several sections.
1) Build the circuit with just the PIC(which one ???) and the DS1307 RTC. Be sure to read the 8 pages for the RTC.It will tell you exactly what you need to know about initializing it, reading it,etc.Currently I have a remote logger using this RTC. Super simple, esp. since there is a driver for it, though I modified it for my use.It keeps very good time and the auto power sense works fine.
ONCE you are very comfortable with programing the PIC to control the RTC(set time and date, read it , display on LCD, send to PC, etc) then...
2) add whatever is required for the ADC portion of the code.Again, READ, re-read and read some more. While CCS supplies great code examples and builtin functions ,take the time to learn what and why you're cutting code.I'd be sure I could read those 3 channels correctly, display on local LCD, send to PC then ..
3) the hard part, the 'wireless' aspect. First I would tie the two PICs together via RS232(using MAX488 or similar) and get that 'system' working as you think it should. Then and ONLY then, add the wireless modules and recode as required.This is the hardest part only because wireless modules are, well, harder to get to work unless you read thier documentation very,very carefully.
If you've done things properly and have built upon what you've learned you will have the project completed in 2 weeks to 4 months. It all depends on your level of expertise and how much effort you put into it.
Be sure to have several backups of the stage of your project.My silly little datalogger has over 125 'versions' which allows me to go back 1 step or 20 to try differnet code or philosophies of programming.As well, ALL files are backed up on 2 harddrives well as a flash drive.
As for the RTC problem , do you have a battery attached to pin 3 of the RTC ? Also be sure to use proper pullups. I use 4K7s or 3K3s at 5 volts, no problems in the past 3 months. |
|