- Learn Linux
- Learn Electronics
- Raspberry Pi
- LPI certification
- News & Reviews
This uses an ESP32 microcontroller to provide wireless control for a Raspberry Pi computer. This is designed to be used in conjunction with Raspberry Pi Pixel server controlling NeoPixels / RGB LEDs with web interface
This uses a capacitive touch sensor connected to the ESP32. When a touch is detected then it performs a web request against my pixel-server running on a Raspberry Pi zero. This causes the NeoPixel / RGB LEDs to turn on and off accordingly.
The additional hardware required is a Velleman VMA305 capacitive touch sensor, although you could use a different sensor based around the TTP223, specifically the TTP223-BA6. An alternative to using a dedicated capacitive touch sensor is to use the touch pins on the ESP32. I found that the large pad on the VMA305 made it good pad for sensing a finger which didn't need physical contact. Whereas the ESP32 touch pins would need a good pad for detecting touch.
The ESP32 is programmed in C++ using the Arduino IDE.
Download the source code below. Note you will need to chang ethe serverName variable to reflect the IP address of your own server. You will also need ot create an arduino_secrets.h file with details of your local wireless LAN.
Please view the copyright information regarding use of the circuits.