Go Down

Topic: Need advice on implementing a simple counter function (Read 1 time) previous topic - next topic


Hi all,

I have what I hope wont be a terribly deep question. Basically I've got an IR beam set up, and I want to count the number of times the beam is broken over a given period of time.  Im wondering if this can be done using the built in memory on the arduino so that I dont have to leave a computer on logging with serial.print or buy one of the memory card add ons.



Sure, you can use the on-chip EEPROM. You have 2kbytes of EEPROM to play with and it sounds like you're only going to need 1-2 bytes to keep a counter.

Have a look at the EEPROM library:


The Arduino Drum Machine: MIDI development system with 14-track MIDI drum machine sequencer / groove-box software


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131