Turn on and off video of HDMI and DP cables

Thread Starter

Paldin

Joined Dec 15, 2024
8
Hi, I want to be able to turn on and off the video (i don't mind if other stuff like audio also turns off) of HDMI and DP cables (male to female) coming out of my PC/GPU, with esp32 powered by my PC USB.
For HDMI I used pin 1 and I control it with relay that controlled by ESP32. For DisplayPort I used pin 18 that is controlled by another relay.
Currently it is working fine but I wonder if it is safe to do and if you have alternative way to do this instead of two relays.
Untitled.png
 

ericgibbs

Joined Jan 29, 2010
21,391
Currently it is working fine but I wonder if it is safe to do and if you have alternative way to do this instead of two relays.
HiPaldin,
Your method, switching a relay via a transistor, is a well-used method, no problems.
E
 

Thread Starter

Paldin

Joined Dec 15, 2024
8
HiPaldin,
Your method, switching a relay via a transistor, is a well-used method, no problems.
E
Thank you, good to know. I wonder if there is another solution I can use instead of 2 relays or relay at all. the HDMI and DisplayPort will be both on or off.
 

MrAl

Joined Jun 17, 2014
13,667
Thank you, good to know. I wonder if there is another solution I can use instead of 2 relays or relay at all. the HDMI and DisplayPort will be both on or off.
For the HDMI for example, you can buy an HDMI switch which allows you to either switch one HDMI source/port off or switch between two HDMI sources.
 

Thread Starter

Paldin

Joined Dec 15, 2024
8
For the HDMI for example, you can buy an HDMI switch which allows you to either switch one HDMI source/port off or switch between two HDMI sources.
Switch is too big and I need both for HDMI and DP. I'm not sure if you suggested this instead of the esp32 but my project depends on the esp32 code.
 

ericgibbs

Joined Jan 29, 2010
21,391
hi Paldin,
If space is a problem, there are 2 Pole Change over type relays.
For HDMI & DP switching.

Chose the operating voltage to suit your Vin and the contact rating to suit your load.
Also, as you have shown in your diagram, a suppression diode is required across the relay coil.
E
EG57_ 2429.png
 
Top