Pages: [1]   Go Down
Author Topic: Stability of Infrared sensors in analog input  (Read 728 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone,

I have 6 infrared sensors connected to the analog pins of my Arduino board. The purpose of the sensors is to detect the movement of the strings of a guitar. When the strings are idle, they are aligned with the sensors. When the strings are strummed, the movement should be detected by the sensors. The problem is that the readings from the analog input are not stable. I have connected LED's to each sensor, and these light up when I strum the strings, so that means the movement is detected but not read by Arduino. Is there a way to stabilize the readings from the sensors?

Thanks in advance.
Logged

0
Offline Offline
Faraday Member
**
Karma: 16
Posts: 2857
ruggedcircuits.com
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Anytime you are working with physical sensors you have to expect some amount of noise, so the fact that the sensor is not "stable" is not a surprise. The question is just how unstable is it? What kind of numbers are you seeing?

--
The Gadget Shield: accelerometer, RGB LED, IR transmit/receive, speaker, microphone, light sensor, potentiometer, pushbuttons
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 290
Posts: 25770
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your maximum per-sensor sample rate is going to be around 1500 or 1600 Hz.
Is this adequate for purpose?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I got it, man, thanks anyway. smiley-cool
Logged

Pages: [1]   Go Up
Jump to: