Pages: [1]   Go Down
Author Topic: Perlin noise in Arduino  (Read 329 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In Processing, I've used the Perlin noise() function to generate less random randomness. I was wondering if there is something like this in Arduino.

Basically, I have a servo controlled robotic arm and would like one of the servos to position randomly, but don't want it to be totally whipping all over the place. The noise() function would solve this issue, but perhaps there is another way to do it...

thanks for any help!
Logged

Denver, CO
Offline Offline
Jr. Member
**
Karma: 0
Posts: 85
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

One workaround I used was to generate a large string of numbers in processing using noise() and pasted those values into an array in the arduino sketch and pulled values as needed. Yes it would loop after some time but it created the illusion of the 'smooth random' of perlin noise and who was going to know otherwise. IIRC someone was working on a variant of noise for the arduino so you might look around some more...

Brian
Logged

Pages: [1]   Go Up
Jump to: