r/microcomputing • • Mar 29 '20

I2C Distance question

So I'm building some monitoring for an indoor greenhouse. Growing Vegies indoors. I'm working on hooking up several sensors (i2C) to one raspberry pi per plant. I have purchased several from Atlas Scientific. My reason for not going higher numbers of plants per Raspberry Pi is due to I2C addressing. I have built a custom I2C bus with the appropriate I2C resistors etc. my next question is how far can a I2C device be from the master (Raspberry Pi). I thought maybe someone on here might know. Reading the specifications (I'm not an EE) I don't really understand.

6 Upvotes

7 comments sorted by

View all comments

Show parent comment

3

u/BraveNewCurrency Mar 29 '20

P.S. One RPI per plant seems like overkill. You can get smaller/cheaper micocontrollers that read the data, then transmit it centrally. Things like the ESP8266 can send your sensor data on WiFi for around $4. You can find pre-built modules with the DHT-11+WiFi for around $8.

1

u/thattechguy99 Mar 30 '20

Very cool, When all you know is PI, and not the smaller controllers you go with what you know. I'm now going to look into these. Thanks @BraveNewCurrency

1

u/BraveNewCurrency Apr 02 '20

Everything is a trade-off.

  • If you are just doing a one-off of a few plants and already have a few PIs laying around, just use them.
  • If you are thinking of making lots of these, want each one cheaper, invest the time in microcontrollers.
  • If you still like the PI, but want to save a few bucks, you can get the $5/$10 Zero/ZeroW version. But they are hard to get in quantity.
  • You can't beat the PI for rapid prototyping, since there is very little to learn if you know Linux and a random programming language. But with new devices, there are many ways to program it (Arduino, Lua, MicroPython), many ways to flash it (Arduino, PlatformIO.org, UF2, etc), and many RTOS choices.

So it depends if you want to make plant stuff (and spend more money), or play with microcontrollers (and save per plant). If start down the first route, you can always come back and make it cheaper.