That does not sound like an old thermostat. Still pictures would be nice because we love pictures.
I shouldn't have said old. It is only a few years old but I got a newer one so it was old to me. It has all the fancy programming stuff. If I get everything to work then it will be the new one.
Can you post a picture of what the signal you see on the scope looks like?
It is a plain digital signal from 0 to 3.3 volts. It is up for 40ms and then down for 20 ms. This repeats as long as the key is held down. Sorry to disappoint but I'm too lazy to take a pic.
If you have a signal generator you can test if the key press is seen when you apply a 16KHz signal to the test point. Use a series resistor of say 100 Ohms to protect the generator and the thermostat.
I don't have a signal generator but I could whip out an eps32 signal if I took the trouble. My PCB with the esp32 and all the interface circuitry is due soon. It would be easiest to just use that.
When this works, then you can simply output this 16KHz signal from your ESP32 to simulate the key press.
I sure hope so.
In case anyone is interested I'll describe the complete setup.
I've soldered fine wires to all the test points. The points were only about one mm square pads so it was quite hard to do. Halfway through I figured I couldn't do it and I would probably also kill the unit but everything worked well at the end.
My custom board is due in next week. It has the esp32 with direct gpio connections to each test point that I can sense and also hopefully drive.
The board also has the 24vac signals G, W1, W2, Y1, Y2, and C connected to io circuitry. The ac signals are half-wave rectified to a giant cap which then drives the input to an opto-isolator. The output of the isolator then goes in to more gpio pins. These are only sensed, I don't need to drive them.
I'll post the final results here. I bought the minimum of five boards so I will have 3 or 4 left. If anyone wants to also wire up a thermostat I'll give away free boards. The design is very general and would work with any thermostat.
Wish me luck.