atc1441 / TCSintercomArduino

Arduino C++ interface for the TCS intercom system
77 stars 19 forks source link

Use of ESP8266 with interrupts #2

Open Luc3as opened 4 years ago

Luc3as commented 4 years ago

Hi, first of all, thank you for your amazing work you did, I was trying to find all informations about the same procedure of reverse engineering door phone I have, and luckily I found you. I have system at our house from poland brand Laskomex, I will check if there is same or similiar protocol soon. What I'd like to ask is that if I could use ESP8266 like Wemos D1, with interrupt sketches, as you wrote, analog sensing is not as reliable, are there some hardware related issues like timing or handling all wifi stuffs and thus skipping messages on the bus ?

I'd like to connect the system to my HomeAssistant setup through MQTT or somehow.

Thanks.

atc1441 commented 4 years ago

Hi, you should be able to use an external comperator and an interrupt pin on the esp, in the interrupt you capture the data and only in main loop you parse that as you have the time there.

The esp is fast enough for that.