Go Down

Topic: Connecting multiple sensors to ONE pin (Read 1 time) previous topic - next topic

peich

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
 

WillR


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?

Just another Hacker

peich

could i connect them directly to the board?

robtillaart

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

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

RuggedCircuits

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

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview