Switch OnAir light, triggered by microphone fader signal

Hi.

I have the following simple challenge.

In a radio studio (located in Netherlands), when the microphone fader opens a coloured light go on (like an ON AIR light).
When the fader closes, the light switches off again.

image

I have a mixer that produces such an electrical fader controlled “on/off” signal (24V/50 mA max) that I would like to use as input for an ESP.
The signal goes over 2 wires, “SHLD” and “signal = on

or off”.
The ESP will have to connect to a nearby Access Point over wifi.
The Home Assistant server is on the same network, but too far away from the studio.
The on/off signal needs to trigger the light (I have already created and tested scenes for it).
The Home Assistant server already has a USB configured and running RFXCOM RFXtrx module attached.

Which ESP device can do this trick, sending the “on/off” signals to the RFXCOM and Home Assistant?

It would be great if I could get a complete shopping list with all the components I need (ESP type device, case, power supply, cables, antenne, etc.).

Best regards, and thanks in advance for your feedback.

Ton

Stay at
127.0.0.1
Wear a
255.255.255.0

Is the coloured light that works with microphone fader an led light?

It’s a light that will be switched on/off by Home Assistant. Either with a remote plug, or a Hue light, or a Zipato light or even a group of lights. A scene will be activated and depending on what the scene is doing certain actions take place. But at first, it will be one Hue light and later a group of lights in the room/building. But first I want to make sure (and test) that it works on one light, triggered by a scene base on the on/off signal.

There are two methods that I think will work for you.

Method 1

Using an INa219 sensor (https://www.aliexpress.com/item/1005001644064927.html?spm=a2g0o.productlist.0.0.4b2335e3CKoCHT&algo_pvid=f5270d67-859a-4158-afc6-29a2cb6a8853&algo_expid=f5270d67-859a-4158-afc6-29a2cb6a8853-0&btsid=0b0a555316106877732127495e4028&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_) to detect the current and voltage in the pin while the pin is on. This is very simple as you need the sensor module and the wemos d1 mini. firmware can be both tasmota and esphome.But here since the detection is not on or off state you need to setup either a template sensor or automation trigger accordingly.


https://tasmota.github.io/docs/I2CDevices/

Method 2

You need the following components.

  1. 24v relay module. https://www.aliexpress.com/item/1005001354903235.html?spm=a2g0o.productlist.0.0.24631eed1M1KjX&algo_pvid=88c61faf-68aa-41a7-b6f8-6da45a92a8ec&algo_expid=88c61faf-68aa-41a7-b6f8-6da45a92a8ec-12&btsid=2100bddd16106778200137756e39d1&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_
  2. https://www.aliexpress.com/item/32651747570.html?spm=a2g0o.productlist.0.0.d404597b4tFWCB&algo_pvid=be8407de-b3ca-4a34-842e-fa81e4fc100a&algo_expid=be8407de-b3ca-4a34-842e-fa81e4fc100a-0&btsid=2100bdd716106779812535848ee389&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_
  3. 5v power supply, which can be any old mobile charger with micro usb output.
  4. some wires/dupont connectors and appropriate connector for the mixer pin.
  5. 24 to 5v buck converter https://www.aliexpress.com/item/4001349391972.html?spm=a2g0o.productlist.0.0.77b96cb0zAco8O&algo_pvid=ce52595c-204a-47f7-b631-d9259c2d0dc1&algo_expid=ce52595c-204a-47f7-b631-d9259c2d0dc1-8&btsid=2100bdd716106783210931510ee39b&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_

This is the idea, we have to connect two things to the 24v output pin , i,e the DC+ and DC- of the 24v relay and the v1 and ground of the buck converter. The output of the buck converter i,e v0 should be connected to the IN pin of the relay. By this circuit we will be able to trigger the relay when ever we have the 24v mixer pin in on position. Since the relay has high and low trigger, you can even drop the buck converter and directly connect the ground to the IN pin but the jumpers has to be adjusted.

Now we have to set up the wemos di side. Connect it to the computer and flash tasmota firmware. After this Assign a pin as switch in the module. connect a wire to this gpio and then connect this wire to the NO. connect a ground from the wemos di to the COM port of the relay.

This is just a brief outline, I hope you get the idea. If anything please ask. The links provided for items are just to show you what to buy, you can source it form any place.

Hi Shimana.

(I assume this is your first name)

You are amazing. Thank you so much for helping me out with this. In the meantime I also searched a bit further and found https://www.banggood.com/24V-1-Channel-Level-Trigger-Optocoupler-Relay-Module-p-1341785.html?cur_warehouse=CN&rmmds=buy .

But his is basically what you showed me as well, but you gave me a more comprehensive outline of what needs to be donw. I will have a close look and order the components. I will keep you posted or perhaps come back with some questions. Have you set this up for yourself as well or are you using this setup?

Best regards,

Ton

i use almost a similar setup to find if i have power outage in any of my power lines. In that I dont have a 24V output but 220v AC. So i have to convert this ac to dc and use the relay setup on that.

I believe the first method would be the cheaper and simpler option and also you dont have to worry about the trigger current. You can also create a template switch in config to turn on when this detects and voltage.

You can get more details about this in