Programming strategies when using sensors
in
Programming Questions
•
2 years ago
I am working on a project using sensors with Processing. In this specific instance, I am using potentiometers to allow users to input values to affect r,g,b color changes. I am using the Arduino board and rotary or slide pots, but the questions is, I think, more general.
MacBook Pro 15" 2.4GHz Intel Core i5, QuickTime v.10.0
Processing v. 1.2.1
When I run the sketch, there is a period of time before the sensors actually "kick in" during which the calls to the sensors produce 0, 0, 0. Once the sensors "kick in" the values (0-1023) are returned correctly.
What are good strategies to throw away the initial 0, 0, 0s returned until the sensors "kick in" with "real" values that I want to use?
George Roland
MacBook Pro 15" 2.4GHz Intel Core i5, QuickTime v.10.0
Processing v. 1.2.1
1