I am working on a project that will have a central display and somewhat remote sensor pods. The sensors will be connected by wire to the central display. This is in a noisy (vehicle) environment.
Each sensor pod generates 5 analog signals in the range of 0-5V. The analog signals are conditioned in the pod.
I'm trying to figure out the best way to connect this to the central display. An ADC in the sensor pod would make a lot of sense, but the only ones I can find use SPI, which does not work over the distances I need.
Right now I'm thinking of putting a small atmega in each sensor pod. The arduino would turn on, collect the measurements, and transmit them to the central display using RS232 signals. Each sensor pod uses about 30ma at most; I could cut this down to about 12ma if needed.
When the central display wants a reading from a specific sensor pod, it would turn it on, get the readings, and then shut it off. That way I only need to use a single serial port on the display, and I only have 4 wires going to each sensor pod.
I like the distributed processing approach. You could filter the power on the far ends to have a nice clean reference also.
Use half-duplex RS485 (MAX485) back to the central location for most error free transmission uisng 4 wires, Vcc, Gnd, Data+, Data-.
MCP3208 for 8-channel 12-bit ADC if onboard 10-bit ADC in a 168 or similar is not sufficient.
At 125 Khz (Divide by 128) there is 8 microseconds per clock cycle. There are at least 2 microseconds setup / propagation delay per bit.
You would need to cable it carefully, probably CAT5 ( 4 pairs) AKA Ethernet cable. MOSI Master Out Slave In, MISO MAster In Slave Out, CLK (Shift clock). Each could be a pair with one side grounded. One more pair could be +12V and Chip/Module Select. Regulate to 5V.. Etc.
You probably want to send and receive each signal with something like an LS14 Schmitt Trigger Hex Inverter for nice clean signals. 100 ohm 'back match'.
2 microseconds is a long time!
Depending on the particular devices you use, you may be able to daisy chain the cable to all pods...
** Hey, Robert.. we ended up in the same elevator at the same time
I would think that in an electrically noisy environment like this, it would make more sense to bring the analog value back to the central control unit and digitise it there. You can apply any filtering and noise suppression you need to the DC analog signal without affecting the reading. A digital signal would be much more vulnerable to noise.
PeterH:
I would think that in an electrically noisy environment like this, it would make more sense to bring the analog value back to the central control unit and digitise it there. You can apply any filtering and noise suppression you need to the DC analog signal without affecting the reading. A digital signal would be much more vulnerable to noise.
That's the current setup. I'm testing that right now. If I can get it to a 4 wire RS485 system v. the current 7 wire system that would make the connections easier.