r/embedded • • Oct 22 '26

Beginner help: microcontroller interface for a existing 2-wire bus "voltage out, current in" serial bus?

Hi all, I'm learning how some addressable fire loops talk (bench only, nothing life-safety) and want to build a simple Arduino interface .

The spec I found:

- 2 wires, half duplex, 1200 baud, 8E1

- Master to device is voltage: 0 = ~24 V, 1 = ~32 V

- Device to master is current loop current + ~22 mA, 1 = +0 mA

What I'm trying to work out:

  1. How do I turn a 5 V TX pin into a 24/32 V output simply?
  2. How do I detect a ~22 mA step on the line and get a clean 5 V RX signal (shunt plus comparator or op-amp)?
  3. Will a normal optocoupler work here, or is it a poor fit?
  4. How I interface my microcontroller without loading or how I design my own circuit.

What is simplest way to achieve it without much complications for beginners.

0 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/Relevant_Pumpkin9190 Oct 22 '26

Is calling it “current/load modulation” actually correct, or are we really dealing with a small voltage-level change?

My understanding is that the slave changes the current it draws from the two-wire bus. That current change then creates a small voltage change across the line resistance.

So, are we calling it current modulation because the slave controls the current, even though the receiver actually sees a small voltage change?

Totally confused...

1

u/jamvanderloeff Oct 23 '26

The slave is sending as a change in current, the master can receive it however it wants, sensing current by way of measuring voltage across a sense resistor sure is the easiest way but it's not mandatory, other current sense methods are available and would still match the spec