# Project requiring 6 sensors and 6 lights

**URL:** <https://community.sparkfun.com/t/project-requiring-6-sensors-and-6-lights/46522>\
**Category:** Qwiic System\
**Tags:** qwiic\
**Created:** [November 16, 2023, 11:19pm UTC](https://community.sparkfun.com/t/project-requiring-6-sensors-and-6-lights/46522 "2023-11-16T23:19:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![coderman1](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@coderman1](https://community.sparkfun.com/u/coderman1)\
**Post date:** [November 16, 2023, 11:19pm UTC](https://community.sparkfun.com/t/project-requiring-6-sensors-and-6-lights/46522/1 "2023-11-16T23:19:04Z")

</div>

So I have a pet project im starting up at home. I am an avid pool player and a software developer. I would like to build a small raspberry pi based device that detects when a ball goes into a pocket using a Proximity Sensor in each pocket. When a ball goes into a pocket I would like to turn on a light mounted in that pocket.

So far with my investigations I have determined that I would need :

6 Proximity Sensors

6 LED Lights

Then I would connect the proximity sensors to Qwiic Mux Breakout - 8 Channel device, and run a cable to the Pi.

My problem is the distance on a 9ft pool table from a pocket to the center of the table (where the device will be mounted) will be roughly 5 feet and I cant seem to find QWIIC cables that long.

Where can I find cables that are that long and are those even the right cables to use? Are there any other devices I might need as well?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![YellowDog](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/yellowdog/32/1782_2.png) [@YellowDog](https://community.sparkfun.com/u/YellowDog)\
**Post date:** [November 16, 2023, 11:54pm UTC](https://community.sparkfun.com/t/project-requiring-6-sensors-and-6-lights/46522/2 "2023-11-16T23:54:56Z")

</div>

Unfortunately it’s difficult for I2C (Qwiic) to work over long distances. Long meaning anything over a few feet.

Sparkfun carries [[qwiic midpoint](https://www.sparkfun.com/products/18000) and [[qwiic endpoint](https://www.sparkfun.com/products/16988) boards that can be used to extend the length of the I2C bus, but those can get expensive if you need 6 of them.

You might be better off using something other than Qwiic sensors since you’re needing quite a bit of cable length connecting all your sensors.]([https://www.sparkfun.com/products/16988](https://www.sparkfun.com/products/16988))]([https://www.sparkfun.com/products/18000](https://www.sparkfun.com/products/18000))

---

<div class="post-metadata">

**Author:** ![coderman1](https://avatars.discourse-cdn.com/v4/letter/c/57b2e6/32.png) [@coderman1](https://community.sparkfun.com/u/coderman1)\
**Post date:** [November 17, 2023, 12:00am UTC](https://community.sparkfun.com/t/project-requiring-6-sensors-and-6-lights/46522/3 "2023-11-17T00:00:14Z")

</div>

What would you recommend other than Qwiic sensors?

But overall i’m looking for a list of components i would need to build a prototype, an i on the right track? if not what components do i need to order to get started?

i think i need a proximity sensor, cable to mux , cable to pi device.

---

<div class="post-metadata">

**Author:** ![brow](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/brow/32/6116_2.png) [@brow](https://community.sparkfun.com/u/brow)\
**Post date:** [November 17, 2023, 3:41pm UTC](https://community.sparkfun.com/t/project-requiring-6-sensors-and-6-lights/46522/4 "2023-11-17T15:41:59Z")

</div>

GPIO expansion card/module?

Example posted primarily for comedy: Note the bent pins in the several product photos.

[https://www.amazon.com/Expansion-Module … B09JFM4P9J](https://www.amazon.com/Expansion-Module-Output-Adapter-Raspberry/dp/B09JFM4P9J)
