Hi again everybody, sorry to keep finding new areas to explore, but this is pretty addictive.
After reading a little about the EEPROM on the Arduino, and having observed your (Nick) code's elegance in knowing which sensor has been activated, I was wondering if it were feasible to have the EEPROM record the amount of times each sensor was sat on over the period of a day. We will be leaving the Arduino securely locked up inside the bench each day, and can access it in the evening, and it would be lovely to be able to plug it in and read the totals for each LDR's total amount of seats from the EEPROM so we can relay this information to the bench's users. We are interested to see if ambient conditions such as sunlight on one side of the bench, or noise on another will affect people's choice of where to sit on it.
As I understand it, it is possible to write bytes of data to the EEPROM so that it can be accessed at a later date without it needing power, or do you think it is simply easier to have a cumulative total written into the script that prints to the serial monitor so that at the end of the day we can wander down to the bench, plug the arduino in via USB and read off the monitor how many people have sat on each? Printing for example a list of the total amount for each LDR at the end of each loop?
The EEPROM is nice and exciting, but perhaps an easier method is as above?
Thank you, again...