Loading...
Logo
Processing Forum
Hi there. I am using Standard Firmata connection to access input from Arduino. When I control the animation with any input it flickers and wobbles (video link: http://respnsiveenviroments.tumblr.com/post/17238826731#disqus_thread). I tried to change float into a integer, but that does not help.
Anyone knows this issue?

Replies(4)

Sounds like an inherent characteristic of analog sensors (unless it's a smart sensor with built in logic). One way for you to control the output is to, at some point between sensor and animation, reduce the precision - i.e. deliver a more inaccurate, but more even, value to your animation.

There's probably better way to do it though, like adding resitors or capacitors, or whatnot (I have no clue myself...) to your circuit which will even the current a bit.

A link to get you started: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1255301852

a__g, thanks for your reply. I tried to add resistors, but no change. I found this Arduino smoothing code, but will need to add it to Firmata.  http://arduino.cc/en/Tutorial/Smoothing 
Will post on this as soon as I will try it out.

Cheers!

Solution

1 year ago
I used smooth function that works. code and description is available on my blog  http://www.arturjanas.co.uk/archives/412 

Cheers
having the similar problem with pressuresensors to analog inputs. thx for posting this, will try it!

polklemme