Library

Post test messages here

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
ziplock
 
Posts: 41
Joined: Fri Jan 30, 2009 7:03 pm

Library

Post by ziplock »

I just thought of two Arduino librarys:

1. A clock library that writes to EEPROM

2. A phone library that generates DTMF ouputs via Freqout

Elaboration:

For the clock, the arduino would send a sync bit every second to tell programs, "Hey, don't read or write, because I'm about to write the EEPROM. Oh, and the time is (insert time here)". Then it would write the current time to EEPROM. Then, it would repeat.

For the phone, it would just generate tones via freqout.
I might go make that.
Right now.

Bye!!
Last edited by ziplock on Sat Feb 28, 2009 3:20 pm, edited 1 time in total.

User avatar
ran talbott
 
Posts: 57
Joined: Thu Feb 19, 2009 1:32 pm

Re: Library

Post by ran talbott »

ziplock wrote:Then it would write the current time to EEPROM.
For an EEPROM with a spec'ed 100,000-cycle life, writing the time once per second will blow through a cell in about 30 hours.

ziplock
 
Posts: 41
Joined: Fri Jan 30, 2009 7:03 pm

Re: Library

Post by ziplock »

Ran Talbott wrote:
ziplock wrote:Then it would write the current time to EEPROM.
For an EEPROM with a spec'ed 100,000-cycle life, writing the time once per second will blow through a cell in about 30 hours.

Wowzer, I didn't know eeprom sucked so much. Thanks for telling me that!

Aren't programs written to EEPROM when you upload them from the Arduino IDE?

eil
 
Posts: 440
Joined: Sun Aug 31, 2008 11:09 pm

Re: Library

Post by eil »

Nope, Arduino programs are stored in flash, which is rated at 10,000 write/erase cycles according to the Atmega168 datasheet.

Locked
Please be positive and constructive with your questions and comments.

Return to “Test Message Forum (closed)”