RS232 with Opto-Isolation

Advertise in delabs

I had to once interface an high voltage circuit to PC, The uC had to communicate thru RS232–Comm port–Serial Port.

Part of the 80C31 8051 SBC

Even though i had isolation at the sensors and actuators to make doubly sure the PC also has been isolated. There are chips that are available for this purpose, The circuit above is built with discrete and passive components except for the opto 4N35. You can use MCT2E and CNY17-3 Optos too. For MCT2E some tweak may be needed as current transfer ratio is 20, for the other two CTR is 100 so above design will work.

RS232 with Opto-Isolation

The circuit derives power from PC but does not load the PC supply. Any voltage above 5V applied to the PC connectors may lead to damage of motherboard in PC. Old PCs were more vulnerable but PCs today maybe a bit rugged at the Ports. Due to internal current limits and clamping.

The VCC, VDD and Agnd are derived from PC no other power needs to be applied on PC side of opto. On uC side of opto the uC power supply lines +5 and gnd has to be used. There is no copper link between the two sides and depending on opto a 1KV isolation is possible if PCB is well designed. The PCB should show the visual isolation above and components should be laid on separate areas of PCB to prevent creepage.

The LEDs are to indicate the port activity Rx and Tx, they are not required once testing is over. The circuit can be simpler, but this worked for me and it is not tested at very-high buad rates.

The levels of RS232 are not TTL like 0-5 we have both polarities +10 and -10. The circuit has to change that to drive the Opto Leds.

More delabs Schematic Diagrams

  • Simple Thermocouple AmplifierSimple Thermocouple Amplifier
    The OP07 is in a non inverting amplifier so as not load the mV of thermocouple, the zeners are to protect circuit if junction contacts [...]
  • Battery Backup for SRAM or MicrocontrollerBattery Backup for SRAM or Microcontroller
    This circuit can be used as a low cost SRAM and Microcontroller or Microprocessor Battery Backup. All the diodes are 1N4148, The diodes prevent battery [...]
  • Function Generator using ICL8038Function Generator using ICL8038
    ICL8038 and XR-2206 can help you build a Function Generator or Wavform Generator. It is needed along with the Oscilloscope and Power Supply on the [...]
  • Dual Polarity Power SupplyDual Polarity Power Supply
    This supply gives both positive and negative outputs. Appropriate Fuses should be used to protect from fire hazard and overload of transformer. Voltage Regulators LM7812 [...]
  • Voltage to Frequency Converter ICL8038Voltage to Frequency Converter ICL8038
    This was a small circuit made for driving an Impact counter. The heart being ICL8038. It must have been a Motor driving a Conveyor, the [...]
  • Digital 5V Power Supply using L296Digital 5V Power Supply using L296
    This circuit is derived from an application note of L296, It is a Power Switching Regulator from ST. The advantage of using a switching regulator [...]
  • Mains Current Indicator with a LEDMains Current Indicator with a LED
    This is a mains 230V AC load current indicator and is a LIVE CIRCUIT, so take care. The Resistors have to be a fusible ceramic [...]
  • 2N2646 based Voltage controlled SCR Pulser2N2646 based Voltage controlled SCR Pulser
    A Center tap 50Hz Step Down Transformer with two diodes is used to get a train of Positive Sine Pulses at 100Hz which is applied [...]
About delabs 152 Articles
Product Design - Industrial Automation and Instrumentation. -

Be the first to comment

Leave a Reply