Dear all,
I’m seeking your insights on the following project:
I’ve constructed a bed with three night lights. Each nightstand features six TP223 touch sensors: one for selecting each light, two for dimming, and one for on/off control. In the past, I used individual signal wires for all 12 TP223 sensors, along with a common ground/power connection to an MCP2307. From there, the signal traveled to a nodeMCU, which controlled the LED drivers.
However, this setup was unwieldy, unreliable, and aesthetically unappealing. I’m determined to enhance it and reduce the wire clutter. Here’s my idea:
- Install an Arduino Nano in each nightstand to handle sensor inputs.
- Connect these Nano boards to the main microcontroller (such as a nodeMCU) that suits the use case.
- I am considering the following connection options:
- SPI
- I2C
- RJ45 (Ethernet)
- CAN (Controller Area Network)**
Issues I’ve identified:
- The transmission length is up to 2.5 meters (potentially reduced to 1.5 meters if necessary).
- Having two input devices means the main controller must connect to two sub-controllers.
Desired features:
- Simplified wiring: Ideally, the Nanos could be powered via the signal wire (similar to PoE).
- No repeaters within the wire (although adding one to a PCB is acceptable).
Feel free to propose alternative approaches or ideas. Your input is greatly appreciated!