Go Down

Topic: Attaching 4 x Sharp GP2D120 IR Distance Sensor to one arduino board (Read 379 times) previous topic - next topic

Teamteabags

Hi all!
I was just wondering if its possible to attach 4 x Sharp GP2D120 IR Distance Sensor to one Arduino Eleven (essentially arduino uno) board. I've read some articles that say you can and others that say you can't. I think what I've deduced is that you can't run them at exactly the same time but maybe run each at fraction of a second delays. Is it just as simple as putting each output cable from the sensor into a different analogue pin in the arduino board? And if so what sort of code could I use to enable the delays (if that is the correct way to do it).
I really appreciate the help and sorry for my lack of knowledge, I have very little experience in mechatronics or Arduino and have been thrown in the deep end at uni!
Thanks in advance! :)

johnwasser


Is it just as simple as putting each output cable from the sensor into a different analogue pin in the arduino board?


Yes.
Send Bitcoin tips to: 1G2qoGwMRXx8az71DVP1E81jShxtbSh5Hp

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy