Wiring Dry Contact for to ESP32

I'm trying to wire a dry contact device that will unlock my door to a ESP32 device. The device is specifically made for my door lock and is successfully paired via BLE.

I have the COM port on the Dry Contact going to the GND on the ESP32 and the IN1 port going to GPIO13. I'm triggering it on/off via a switch I made in the config in HomeAssistant.

Sadly, nothing is happening when I trigger the the GPIO pin on the ESP32 device. I'm not sure if my wiring is correct or not. I would appreciate any help :slight_smile:

Hi, @rogerquake
Welcome to the forum

Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

Just updated the post :slight_smile:

The Tedee min voltage is 5V and the ESP is only 3.3V

Since the Tedee is a Dry Contact relay, does that still matter?

The ESP32 is power independently via USB atm for testing.

Is it?
I see nothing in the manual that says so but that would only apply to the outputs.

So you need to wire things like figure C but instead of where they show a switch contact you will need to use a transistor controlled by the ESP
Wuold you like a schematic?

Hi, @rogerquake

Please don't go back to old posts and update them, it disjoints the thread for anyone else.

As suggested before, a hand drawn image will be better.
You only need to annotate the pins and terminal that you are using.

Are you trying to use this configuration.


The image indicates that the input is isolated as it needs and outside control voltage.

Your problem could be that the input is 5V to 60V logic and the ESP32 is 3V3 output logic,

Thanks.. Tom... :grinning: :+1: :coffee: :australia:

Well it seems like others agree with what I just said.
Do you need a schematic?

Yeah, that would be great!

Sure give me a minute

Do you understand?

I don't sadly.

OK I'll draw a picture diagram.
You will need to buy a 2N3904 transistor, a 490 ohm resistor and a 10K resistor.

1 Like

Got all the parts, but still not working. Interestingly enough, when I unplug the ESP32 device, it actually does trigger the relay to unlock my door, so some success there i guess.

I had a question though. In the first diagram you had a 470 resistor and then mentioned a 490 ohm resistor. I ended up buying a 470 since they were what was easily available. Would that make a big difference?

Looks like I spoke too soon, it's working after I switched the Power supply to one with a lower amp rating! Still curious about the resistor question though. Thanks for all your help!

No just a typo mistake
Glad you got it working.
Have a nice day!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.