Hi,
I've made a simple patch that calls a video clip when an analog reading form pduino is below a certain value and calls another clip when the reading is above another certain value - making the analog reading act as a switch.
It works fine using a potentiometer but I need to use an LDR, which is giving extrememly jumpy readings, which I need to smooth out. I tried splicing in the arduino Smoothing example into the Standard Firmata example but that didn't seem to work. It seems, for this and future projects, it would be really handy to be able to set up an array inside my pd patch that could collect and average out a number of readings but I'm stumped on how to do this and can't find anything already online.
Anyone know how I can smooth out this sensor reading... before a college tutorial on Tuesday?
Thanks in advance!