Raspberry Pico Capacitive Sensor

Ferry Djaja
3 min readJan 12, 2024

I built this simple touch interface with Raspberry Pico to execute the automation in Home Assistant.

All you need are a few components:

  • A Raspberry Pico Wireless device.
  • A Common Anode RGB LED (not the Common Cathode RGB LED).
  • A resistor 220 Ω.
  • A USB C cable for touch panel. I’ve damaged my USB C cable, but instead of discarding it, I’m repurposing it for this specific use case.

The Design

Here is the design diagram illustrating the connection of Pico PINs to the RGB LED.

Python Code

We will write a Python code based on this Git repo and modify to our needs for activating the RGB LED.

--

--