Can two Arduino Unos talk over a 2-wire M-Bus style bus (9V/7V + current reply) across 50 Meters

OP #8104235
Lesenswert?
• ▲
▼

Hi everyone,

I'm trying to get two Arduino Uno boards talking over just two wires, a bit like M-Bus but at a lower voltage. I don't want any extra ICs, only the two Unos plus basic parts like resistors, capacitors, diodes and transistors.

The idea:

  • Master to slave: the master switches the bus between 9V and 7V to send data.

  • Slave to master: the slave replies by pulling extra current (about 45 mA idle, 50-75 mA for a "0"), and the master reads it with a small sense resistor.

  • The slave gets its power from the bus.

A few questions:

  1. Are there simple discrete circuits for this, for both the master and the slave side?

  2. Is a 2V swing enough to read reliably with the Uno's ADC, or should I go bigger?

  3. Is a series sense resistor the best way to read the slave's current pulses?

  4. Could this work over 50 m of cable between the boards? Any tips on cable, baud rate or protect

Thanks a lot for any advice or links!

OP #8104266
Lesenswert?
• ▲
▼

Does this approach work. Instead LED microcontroller will be there also Dali uses external powered lights with bus power too so capacitor charging from data doesn't applicable, I believe.

: Bearbeitet durch User

Antwort schreiben

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.