ayushi
Posts: 1
Joined: Thu Jun 09, 2016 7:52 am

connecting multiple sensors to a single raspberryy pi

Thu Jun 09, 2016 8:07 am

I am designing a system where I want to send data of multiple sensors to a single raspberry pi board so that I can use that data to proceed further...is it possible to connect 100 of sensors data to a single pi which are present at the same location....n
how can i achieve this

mutley
Posts: 61
Joined: Sat Jan 02, 2016 8:06 pm

Re: connecting multiple sensors to a single raspberryy pi

Thu Jun 09, 2016 2:04 pm

That completely depends on the sensor interface. I *think* these are the limits to a few ways to interface, but you should check.

1 wire can do 100 devices per bus per the spec, in reality on the Pi it seems to be around 10.
I2C can do 128 7bit addressed devices per bus. (Each device address is configured at the sensor, so finding that many may with different address be the issue)
SPI can do 2 devices
USB I'm not sure
Probably some other ways to address sensors that I've missed

There are many add-on boards usually called "hats" that can extend the above and also make them more reliable.

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: connecting multiple sensors to a single raspberryy pi

Thu Jun 09, 2016 2:47 pm

What sensors? I don't see how you can expect an answer without revealing the sensors you want to use.

mthomason
Posts: 113
Joined: Sun Apr 24, 2016 12:28 pm

Re: connecting multiple sensors to a single raspberryy pi

Thu Jun 09, 2016 2:47 pm

For sensors that don't like I2C, it's worth bearing in mind that you could attach them to a cheap microprocessor which then sits on the Pi's I2C bus. That's especially useful for things like ultrasonic distance sensors that may require accurate timing.

Return to “General discussion”