TTP-223 range extender
We calculate the final price from your selected file. You review and accept it before payment.
Saved on this device.
My idea of "hidden" touch surfaces on my bed headboard. I had 3 TTP-223 touch sensors with extra wire for extended…
- Rating
- 0 / 5
- Likes
- 2
- Downloads
- 20
- Makes
- 0
- Views
- 592
- Reviews
- 0
Updated at source:
Model information
- Source
- Printables
- Category
- Electronics
- License
- Creative Commons — Attribution
My idea of "hidden" touch surfaces on my bed headboard. I had 3 TTP-223 touch sensors with extra wire for extended range. The only "problem" was the tape not sticking well so sensors would sometimes ghost-trip because they would move.
After about a year and a half I decided to 3D print new "frames" that would be fixed with double sided tape.
Works like a charm + the range is even a bit better than before!
Oh, almost forgot to tell what this actually does. It's used for turning on/off lights: ceiling LED, LED strip on my closet and LED strips behind bed's headboard. Just wave and voila. First "wave" turns LEDs to 30%, second wave to 100%, third wave turns them off.
I'm planning to change this, if LEDs are on 30% for more than 1 minute, another "wave" will turn them off directly. Board is a simple NodeMCU v2, running ESPHome firmware.
This was designed to be used with wire with outside diameter of 0,8 mm. Wire should be just push-fit into the slot. TTP-223 module is fixed to the 3D print with just a drop of hot-snot (hot glue gun :P ). The whole assembly is then mounted to bed headboard with 2 strips of double sided tape.
Print Settings
Printer Brand:
Prusa
Printer:
I3 MK3S
Rafts:
No
Supports:
No
Resolution:
0.10 mm
Infill:
15%
Filament: kexcelled PETG White Custom Section ==============
Code and hardware info
Here's the code for it:
esphome: name: spalnica_postelja platform: ESP8266 board: nodemcuv2
wifi: networks:
- ssid: !secret primarywifi1
password: !secret primarywifipass
- ssid: !secret primarywifi2
password: !secret primarywifi2pass manual_ip: static_ip: !secret ip_spalnica_postelja gateway: !secret gateway subnet: !secret subnet
Enable logging
logger:
web_server: port: 80 auth: username: !secret webuser password: !secret webpass
api:
ota: #safe_mode: True password: !secret otapass
switch:
- platform: restart
name: "Resetiraj ESP spalnica_postelja"
sensor:
- platform: wifi_signal
name: "spalnica_postelja WiFi signal" update_interval: 5s id: wifisignalpostelja
- platform: uptime
name: "spalnica_postelja uptime" update_interval: 5s id: uptimepostelja
binary_sensor:
- platform: gpio
pin: GPIO4 name: "Postelja Nejc LED omara" filters:
- delayed_off: 10ms
- platform: gpio
pin: GPIO5 name: "Postelja Nejc LED postelja" filters:
- delayed_off: 10ms
- platform: gpio
pin: GPIO10 name: "Postelja Nejc stropna luc" filters:
- delayed_off: 10ms
- platform: gpio
pin: GPIO12 name: "Postelja 2 LED omara" filters:
- delayed_off: 10ms
- platform: gpio
pin: GPIO13 name: "Postelja 2 stropna luc" filters:
- delayed_off: 10ms
- platform: gpio
pin: GPIO14 name: "Postelja 2 LED postelja" filters:
- delayed_off: 10ms
You can see the pinout from the code, there's no schematics to share, it's as simple as it gets. Use the 3,3V from NodeMCU to power all TTP-223 modules (6 in my case), 6x GPIOs and a common GND for everything. I'm powering the system with a 5V phone adapter with a micro USB cable. Works stable for almost 2 years now.
NodeMCU module with an added capacitor for TTP-223 stability (between 3V3 and GND lines)
This is where you connect the wire for extending range.
Category: Electronics