How to transmit data from an analog multiplexer to an RS232 COM port on a PC

analogmicrocontrollermultiplexerrs232serial

I am having trouble understanding how to design a circuit that will transmit multiple analog data signals to a computer through one RS232 COM port.

The analog data is a simple voltage reading from 12 different LEDs. The LEDs are triggered by relays that are controlled with software from the same computer that I will use to monitor the LEDs. Other software will be developed to read which LEDs have been triggered and if they are operating within a specified voltage range. For now I am just trying to understand the hardware aspect of transferring 12 analog signals through a single COM port.

My understanding is that an analog multiplexer can be used to combine the voltage signals and transmit them to the computer's com port through a voltage converter/serial interface like the MAX232. Is this possible without using a microcontroller chip? If not, what chip should I use to perform this task? I am trying to avoid using a microprocessor in the interest of keeping things as simple as possible.

Ultimately, I am looking for the simplest way to transmit multiple analog signals through a single COM port on a PC. Thanks in advance.

Best Answer

My understanding is that an analog multiplexer can be used to combine the voltage signals and transmit them to the computer's com port

An analog multiplexer is just the electronic equivalent a multi-pole rotary switch - it simply steers one of the inputs to the output. The output is still analog, not suitable for transmitting via RS232 (which is a +-12V digital signal).

To create the serial signal you need an ADC (Analog to Digital Converter) to convert the analog voltages into digital numbers, and a UART (Universal Asynchronous Receiver Transmitter) to serialize the data bits with the correct baud rate and format.

You could make such a circuit using separate analog MUX, ADC and UART (with a few logic gates to 'glue' them together) or just use a small microcontroller which has all these features built in.

An MCU might seem more complex because it needs software, but the hardware can be much simpler. You will be sending 12 readings to the PC continuously and it needs to know which one is which, so your transmission protocol must include more than just the raw data. You will find it much easier to develop this protocol in software, rather than having to add even more chips to a complex digital control circuit.

Related Topic