My Proto Board
Newzed
Posts: 2,503
Love my Proto Board.· Since I got the DS1302 installed and working - see
http://forums.parallax.com/showthread.php?p=663095
I thought I would add a temperature readout to the LVD display.· Hooked up a TLC2543 ADC AppMod I had built to a BS2E,·added an LM34DZ to the ADC, and serouted the temperature data to Pin 7 of the Proto Board using baud 84.· Processed the incoming data on the Proto Board, and sent it to my 4x20 LCD using baud 16468.· On the first cycle the LCD displays date, time, day of the week and hurricane notes.· On the next cycle,the day of the week is replaced by the inside temperature.· These cycles repeat with about a 2-second delay between each cycle.· Works great.
Now...what else can I add to my little Proto Board.· It has a 512K EEPROM, so maybe I can use the upper·32Kb to store date, time and temperature.· If I use 33_000 as the starting address, that gives me 31_000 bytes of storage space.· It takes 9 bytes to store all the clock and temp data.· If I change the interval to 1 minutes, and since the system only runs about 12 hours a day, I could store almost 5 days of data.· Sounds like a good project.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
http://forums.parallax.com/showthread.php?p=663095
I thought I would add a temperature readout to the LVD display.· Hooked up a TLC2543 ADC AppMod I had built to a BS2E,·added an LM34DZ to the ADC, and serouted the temperature data to Pin 7 of the Proto Board using baud 84.· Processed the incoming data on the Proto Board, and sent it to my 4x20 LCD using baud 16468.· On the first cycle the LCD displays date, time, day of the week and hurricane notes.· On the next cycle,the day of the week is replaced by the inside temperature.· These cycles repeat with about a 2-second delay between each cycle.· Works great.
Now...what else can I add to my little Proto Board.· It has a 512K EEPROM, so maybe I can use the upper·32Kb to store date, time and temperature.· If I use 33_000 as the starting address, that gives me 31_000 bytes of storage space.· It takes 9 bytes to store all the clock and temp data.· If I change the interval to 1 minutes, and since the system only runs about 12 hours a day, I could store almost 5 days of data.· Sounds like a good project.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Comments
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Are you going to use your 32.768khz crystal for the props clock also?
Thanks,
Doug
A suggestion - why not use a 6V lantern battery for your warehouse units.· The lantern battery has a capacity of 50,000mah, so that should last you for a good while.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Post Edited (deSilva) : 8/5/2007 7:47:04 PM GMT
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
Now my little Proto Board can write/to or read/from the EEPROM. I allocated 33,000 to 63,000 for data storage, with the current address being stored at 63,500.
Writing the method for reading the EEPROM was a bit tricky. I had to insert a " / " between month and date and between date and year, and I had to insert a " : " between hours and minutes and between minutes and seconds. Also, I had to insert a " . " between the temperature integer and the temperature decimal. However, I finally got it all straightened out. I must thank Mike Green for the "built-in" I2C protocol in his OS system. Couldn’t have managed without that.
If I wanted, I could send the EEPROM data to Hyperterminal and capture it to an Excel file – maybe I’ll do that later.
I added a "safety" line in the method that writes to the EEPROM. If the next address to write to is greater than 63,000, the program automatically stops the writing process and returns to the start Menu. I wasn’t sure, but it occurred to me that if the EEPROM tried to write beyond 64,000, it might "wraparound" and overwrite the program stored in the lower half of the EEPROM. That’s the way most EEPROM’s work, so I just played it safe.
It takes 8 bytes to store my data. With 30000 bytes available I can store 3,750 packets. If I store a packet every minute, that is 3750/60 = 62.5 hours = 2.6 days of data I can store.
If the Proto Board is in a remote location and using the LCD display it still writes the data to EEPROM. When I want to read the EEPROM data, I just bring it to my desk, plug in power, keyboard and VGA and press R.
I added a red LED to Pin 8, which turns on if I am writing to, reading from or clearing the EEPROM.
Now……………what can I add next?
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·