Author Topic: Serial communication + power over two wires  (Read 4094 times)

0 Members and 1 Guest are viewing this topic.

Offline andyturkTopic starter

  • Frequent Contributor
  • **
  • Posts: 895
  • Country: us
Serial communication + power over two wires
« on: June 16, 2013, 06:18:55 am »
I'm looking for a way to power a small mcu at the end of a long wire (e.g., 10 feet) and also give it a way to communicate with the device on the other end. A few tens of mA at 5V DC for power and say 9600 baud for data bandwidth (bidirectional).

Any recommendations?
 

Offline free_electron

  • Super Contributor
  • ***
  • Posts: 8550
  • Country: us
    • SiliconValleyGarage
Re: Serial communication + power over two wires
« Reply #1 on: June 16, 2013, 08:07:58 am »
voltage current modulation.

make a supply source that can be modulated. lets say 5 volt and 6 volt.
the slave board has a local regulator that makes 3.3 to power the local cpu. a comparator then picks off the incoming voltage.
te return data you put a mosfet with a resistor across the supply. a current sensor in the source system measures consumption.
pulsing the load creates for example a 50mA delta current.

Cerberus ( fire alarm systems) have been using this mechanism for years.

Professional Electron Wrangler.
Any comments, or points of view expressed, are my own and not endorsed , induced or compensated by my employer(s).
 

Offline philpem

  • Frequent Contributor
  • **
  • Posts: 336
  • Country: gb
  • That Sneaky British Bloke
Re: Serial communication + power over two wires
« Reply #2 on: June 16, 2013, 12:35:34 pm »
Look at some of the industrial control protocols -- HART is a good one. That uses capacitive coupling to modulate a 1200 or 2400Hz tone onto the incoming signal/power line. The Analog Devices AD5700 HART modem datasheet might give you some ideas.
Phil / M0OFX -- Electronics/Software Engineer
"Why do I have a room full of test gear? Why, it saves on the heating bill!"
 

Offline andyturkTopic starter

  • Frequent Contributor
  • **
  • Posts: 895
  • Country: us
Re: Serial communication + power over two wires
« Reply #3 on: June 16, 2013, 02:44:43 pm »
@free_electron
Very clever. Sounds like a nice "jellybean" solution.

@philpem
I'm reading the AD5700 datasheet with my coffee this morning.

Thanks guys!
 

Offline dfmischler

  • Frequent Contributor
  • **
  • Posts: 548
  • Country: us
Re: Serial communication + power over two wires
« Reply #4 on: June 16, 2013, 03:17:10 pm »
I don't know how much power you need, but the Dallas 1-wire stuff can be powered and communicate over a single pair as well.  Their setup depends on keeping the signal line high a lot and robbing power from it (they refer to it as "parasitic" power).  I don't know if this technique would actually work for your application, but it is pretty simple.
 

Offline andyturkTopic starter

  • Frequent Contributor
  • **
  • Posts: 895
  • Country: us
Re: Serial communication + power over two wires
« Reply #5 on: June 16, 2013, 05:09:23 pm »
I don't know how much power you need, but the Dallas 1-wire stuff can be powered and communicate over a single pair as well.  Their setup depends on keeping the signal line high a lot and robbing power from it (they refer to it as "parasitic" power).  I don't know if this technique would actually work for your application, but it is pretty simple.
The 1-wire stuff looks good, for a prototype at least. The DS2408S+ interface chip is pretty pricey though ($6/ea quantity 1).
 

Offline daveatol

  • Regular Contributor
  • *
  • Posts: 136
  • Country: au
Re: Serial communication + power over two wires
« Reply #6 on: June 16, 2013, 09:23:17 pm »
You don't need an interface IC for 1-wire; you can just bit-bang with the microcontroller, or even use the UART (http://www.maximintegrated.com/app-notes/index.mvp/id/214).
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: Serial communication + power over two wires
« Reply #7 on: June 17, 2013, 12:25:01 am »
There was at least one fire alarm control panel that daisy chained all the fire warning strobes and just did short duration pulses on the powerline to address them and signal them to turn on, turn off, what tone to make, etc... they relied simply upon a capacitor at the other end to hold up the voltage during the off time of the pulses.  This technique would only allow low speed communications.


 

Online IanB

  • Super Contributor
  • ***
  • Posts: 12384
  • Country: us
Re: Serial communication + power over two wires
« Reply #8 on: June 17, 2013, 02:15:18 am »
Does it have to be two wires? There are many multicore cable solutions cheaply off the shelf, e.g. network cable, telephone cable, or even low voltage solenoid power cable for irrigation systems. You can use two conductors for power and have other conductors left over for communications. Mechanical solutions are often simpler than electronic solutions.
 

Offline codeboy2k

  • Super Contributor
  • ***
  • Posts: 1836
  • Country: ca
Re: Serial communication + power over two wires
« Reply #9 on: June 17, 2013, 04:26:53 am »
Does it have to be two wires? There are many multicore cable solutions cheaply off the shelf, e.g. network cable, telephone cable, or even low voltage solenoid power cable for irrigation systems. You can use two conductors for power and have other conductors left over for communications. Mechanical solutions are often simpler than electronic solutions.

The fire panels that did this were designed within the constraints of an existing two-wire installation, and for retro-fitting newer, addressable and synchonizable alert receivers instead of just a ringing bell . Some of these wall mounted alerts even had digitized voices for emergency messages, pre-recorded and stored locally at the wall mounted alert, and some models had the capability of a live operator voice originating from a control panel. There was a sync pulse on the 2 wires as well, so that during an alert all the units on the wall would flash in unison, or go whoooooooooOOOOOOOOOOPPPP in unison. This was all into existing wiring, which was usually just 24V bell wire. (i.e. zip cord, low voltage, 2 wires, 18-22 awg)

In new installations I suspect they use multi-core wire now.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf