Got a table lamp which is controlled by touching the top part of the lamp.
I want to be able to turn it on/off over zigbee. Smart plug will not work since if you cut the power, I need to touch the lamp again to turn it on.
So guess I need some kind of way to “simulate” a touch on the lamp.
The touch part of the lamp connects from a wire to the led lamp circuit board with input labeled “touch”.
Any zigbee relays of some sort that can perform this?
Added image of the wiring.
Some ESP32 pins are touch sensitive. The switch relies on capacitive voltages and you should be able to emulate this on your ESP32. Add a relay to switch the light. It should fit inside the lamp housing if you are lucky.
I don’t think the ESP8266 had touch features at the pin level.
What board is it? You may be able to do a simple swap, or just use the existing one with a simple firmware update.
Post photos of the front and back, clear enough to see the part numbers on any other chips and we nay be able to offer suggestions. If it already does touch maybe we can add to existing functionality without any part replacement.
Thanks. We not only need a picture from a web site, but your actual device, connected in circuit. Yes, that makes it rather easy to reprogram, the serial chip and USB connector already in place on the Lolin board, but what is the sensor circuitry connected to it? Does it go to a separate chip, or use the A/D pin and a capacitor/ resistor network? Is there a relay, latching relay, or SSR type chip to drive the lamp? What pins are they connected to? You need to know those to be able to design and download new firmware.
The ESP boards that do touch sensing (original ESP32, and the S2 and S3 variants), and the ESP8266 you have do not support ZigBee, but WiFi and in the case of the ESP32, BlueTooth. ZigBee supported ESP32s are not pin touch sensitive without added circuitry such as your lamp may contain. Before you blindly go and buy the cheapest ESP32 board you can find, lets get more information.
Power supply - is it switched or a simple capacitor step down bodge job? You may not enjoy touching a live mains powered pin that some devices do, giving you a ‘slight’ tingle through a high resistance voltage dropper. I’ve seen enough of those to be wary of any cheap circuits in touch lamps, and am surprised to find a ESP8266 deployed in this use. Using a replacement ESP32 will not make it much easier- you still have to figure out pins, voltages, debouncing, switching,/latching, and driving the globe circuitry.
Do you want a dimmer, or just touch on/off functionality, also detected and controlled remotely to make it smart?
The esp8266 is not connected to anything. I just remembered having one laying somewhere. But no problem getting the esp32.
Lamp is a Flowerpot VP9. Found the leds circuit, and as you can see it has the «touch» input. It has wire soldered to it which is connected to the top part of the lamp which is exposed to touch.
Finally the make and model number. Looks to be LEDs powered by a rechargeable battery using a chip that I cannot see the part number. Oh no! Puts an entirely different slant on things.
Can you magnify the 16 pin black chip till the numbers are clear? Any other chips on the other side of the board?
The other side of the circuit is the first picture in the post, so nothing on the «other side» as seen from the circuit board. Also there is no text on the black chip after taking a closer look myself
I’m going to draw a blank here and say you may need to re-evaluate if this is achievable, as lack of the chip data excludes possibility of remote control via signal injection, and the onboard placement of the LEDs precludes substituting with a dedicated controller.
While the shape looks pretty, you may have to start from scratch, and the time and effort involved may be better spent on finding one already available for purchase.
If you take a piece of wire and tap lamp circuit GND (or battery negative) to that “touch part”, does it toggle the light?
If yes, you could maybe use your esp8266 and npn transistor to trigger it.