Part 4 - Bathroom Mirror ttp223 Touch Switch
Part 4 - Bathroom Mirror ttp223 Touch Switch
Touch sensors in LED bathroom mirrors are typically based on capacitive sensing technology. Capacitive sensing works by measuring changes in the electrical charge on a conductive surface, such as the surface of a mirror, when a person touches it.
When a person touches the mirror's surface, their body's electrical charge changes the electric field around it, and the touch sensor detects this change. The sensor then sends a signal to the mirror's electronic circuitry, which interprets the touch and activates the appropriate function, such as turning on the LED light or adjusting the brightness.
The sensitivity of touch sensors in LED bathroom mirrors can vary depending on the manufacturer and model. Some touch sensors may require a firmer touch, while others can detect a light touch or even a gesture, such as a swipe or wave of the hand. However, touch sensors are generally designed to be sensitive enough to detect a touch without requiring too much pressure, making them accessible and convenient to use.
Touch Pad Pins
Various pins on the ESP32, ESP32-S2 and ESP32-S3 can be used to detect touches. They are as follows (using the default “raw” pin names/numbers):
GPIO4, GPIO0, GPIO2, GPIO15, GPIO13, GPIO12, GPIO14, GPIO27, GPIO33, GPIO32
There are 10 capacitive touch inputs on the ESP32
detail:https://esphome.io/components/binary_sensor/esp32_touch.html#finding-thresholds
vcc 3v
gnd gnd
io gpio14(D14) capacitive touch inputs on the ESP32
code
I was able to add it as a basic touch sensor for ON and OFF and it works well now:
# ttp223 https://community.home-assistant.io/t/touch-sensor-ttp223/351328/3
binary_sensor:
- platform: gpio
pin: GPIO14
name: "ttp223 Binary Touch Sensor"
Note
The esp 32 touch component is not meant to be used with other active touch sensors like the TTP223. It is a touch sensor already. All you need is to connect a small conductive plate that you can touch.
detail:https://esphome.io/components/binary_sensor/esp32_touch.html#esp32-touch-binary-sensor
Comments
Comments are closed