ESP32Radio-V2 icon indicating copy to clipboard operation
ESP32Radio-V2 copied to clipboard

3.3v relay module

Open lubiezunia opened this issue 10 months ago • 8 comments

Hi

I need to turn on / off 3.3v relay using IR remote ( for power on / off external amplifier ).

I was looking for more information about pin_shutdown but without success. Can it be used for my purpose? Any advice ?

Best regards Mateusz

lubiezunia avatar Feb 26 '25 23:02 lubiezunia

The pin you define by "pin_shutdown" or "pin_shutdownx" will be toggled on play/stop. It is documented in the pdf file.

Edzelf avatar Feb 27 '25 07:02 Edzelf

so assuming that in config file I have:

pin_shutdown = 16 (or pin_shutdownx = 16) signal pin for my relay module - which should change it's state from HIGH to LOW or vice versa ?

what IR command I should use to trigger play / stop ? doc. says "Amplifier shutdown pin. Pin will be set if the radio is not playing or the volume is set to zero. This output-pin can be used to shut down the amplifier." In may case volume = 0 or mute command doesn't do anything. Serial monitor should also report changed state of my pin 16?

lubiezunia avatar Feb 27 '25 08:02 lubiezunia

What are you using for decoder (like DEC_VS1053, EC_HELIX_SPDIF)? It could be that some decoder does not handle the shutdown pin.

Edzelf avatar Feb 27 '25 09:02 Edzelf

It plays well with 3ohm Samsung speakers but I need to figure out how to turn off my 200W amplifier when I'm not using the radio.

Image

lubiezunia avatar Feb 27 '25 09:02 lubiezunia

So you are using the VS1053. Then the pin(s) should change when volume changes from or to zero.

Edzelf avatar Feb 27 '25 12:02 Edzelf

Ok my fault - I should check it earlier - HIGH level goes LOW on multimeter on mute / (un)mute commands.

So problem is on relay module side...

Thanks Edzelf for your time

btw. if anyone is looking for complete transformers module for noise reduction I can say that I tested HCW-M171 and it works like a charm.

Image

lubiezunia avatar Feb 27 '25 15:02 lubiezunia

Relay module was faulty - second one works as expected.

lubiezunia avatar Feb 27 '25 19:02 lubiezunia

Hi - my relay module turns OFF for 1 second every time I change radio channel by using downpreset, uppreset or preset. Is it normal?

lubiezunia avatar Feb 27 '25 21:02 lubiezunia