Pages: [1]   Go Down
Author Topic: Connecting multiple sensors to ONE pin  (Read 865 times)
0 Members and 1 Guest are viewing this topic.
Down Under
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, i'm new here, new to arduino as well, got a question about IR sensors..

Is it possible to attach multiple IR sensors to just ONE pin? i would actually like all the sensors to work the same way.. and as there aren't enough pins on the Uno, i was wondering whether it's possible to attach an array of IR sensors, so that if any one of them (or all or multiples of them) is triggered, it would be detected?

Cheers
   
Logged

Georgina Ontario
Offline Offline
Sr. Member
****
Karma: 5
Posts: 437
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, i'm new here, new to arduino as well, got a question about IR sensors..

Is it possible to attach multiple IR sensors to just ONE pin? i would actually like all the sensors to work the same way.. and as there aren't enough pins on the Uno, i was wondering whether it's possible to attach an array of IR sensors, so that if any one of them (or all or multiples of them) is triggered, it would be detected?

Cheers
   

Sure -- use sensors that make use of the I2C bus -- That is two wires. Some sensors like the Dallas Temperature sensors can use only one wire for data and two for power.

Some of the Sharp sensors can use the I2C bus.

But that has nothing to do with whether they "all work the same way".

Does that answer the question?

Logged

Just another Hacker

Down Under
Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

could i connect them directly to the board?
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you done the tutorials on - http://www.arduino.cc/en/Tutorial/HomePage - There is a lot to learn there
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

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

Which sensors are we talking about? Most IR logic sensors like the TSOP1838 have open-drain outputs so they can all be connected together and directly to a digital input on the Arduino.

Now, of course, if two sensors are both being hit by infrared light at the same time you will probably get garbage, but as long as only one sensor is receiving IR light at a time there's a good chance it'll work.

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

Pages: [1]   Go Up
Jump to: