The circuit incorporates isolation at the sensors and actuators to ensure that the PC is also isolated. Various chips are available for this purpose. The circuit is constructed with discrete and passive components, with the exception of the opto-isolator 4N35. Alternatives such as MCT2E and CNY17-3 opto-isolators can also be utilized. For the MCT2E, some adjustments may be necessary due to its current transfer ratio of 20, while the other two options have a current transfer ratio of 100, making the existing design compatible. The circuit draws power from the PC without loading the PC's power supply. Applying any voltage above 5V to the PC connectors could potentially damage the motherboard, particularly in older PCs, which were more susceptible. Modern PCs may exhibit greater durability at the ports due to internal current limits and clamping mechanisms. The VCC, VDD, and Agnd are sourced from the PC, and no additional power is required on the PC side of the opto-isolator. On the microcontroller side, the opto-isolator's power supply lines (+5V and ground) must be utilized. There is no copper connection between the two sides, and depending on the opto-isolator used, isolation up to 1kV can be achieved if the PCB is designed correctly. The PCB layout should visually indicate isolation, with components placed in separate areas to prevent creepage. LEDs are included to signal port activity (Rx and Tx), although they are not necessary after testing is complete. The circuit can be simplified, but this design has been effective, albeit not tested at very high baud rates. It is important to note that RS232 levels are not TTL levels (0-5V); they include both positive and negative voltages (+10V and -10V). The circuit must convert these levels to drive the opto-isolator LEDs. Further information regarding serial ports can be found in relevant literature.
The circuit design is centered around the use of an opto-isolator to achieve electrical isolation between the PC and the connected sensors and actuators. This isolation is critical for protecting sensitive components from voltage spikes and noise that may originate from either side of the connection. The opto-isolator, such as the 4N35, serves as a key component in this setup, allowing for safe signal transmission while maintaining isolation.
For applications that may require different specifications, the MCT2E and CNY17-3 opto-isolators can be employed, each with their own characteristics that may necessitate adjustments in the circuit. The MCT2E, with a lower current transfer ratio, may require modifications to ensure that the output signal is adequately driven. In contrast, the CNY17-3 and similar devices provide higher current transfer ratios, allowing for a more straightforward implementation.
Powering the circuit from the PC without imposing additional load on its power supply is a significant advantage, as it minimizes the risk of overloading the PC's internal circuitry. Care must be taken to avoid applying voltages exceeding 5V to the PC connectors, as this could lead to irreversible damage, particularly in older models that are less robust than contemporary hardware.
The isolation barrier provided by the opto-isolator is enhanced by proper PCB design. By ensuring that there are no copper traces connecting the high-voltage side to the low-voltage side, and by maintaining appropriate spacing between components, the design can achieve isolation ratings of up to 1kV. This is particularly important in applications where high voltages may be present.
The inclusion of LEDs to indicate data transmission activity is a useful feature for debugging and monitoring purposes. However, once the circuit has been tested and validated, these indicators can be omitted to simplify the design further.
Lastly, the conversion of RS232 signal levels to drive the opto-isolator LEDs is a crucial aspect of the design. The RS232 standard operates with voltage levels that are not compatible with TTL logic levels, thus requiring careful consideration in the design to ensure proper operation and signal integrity. This circuit serves as a robust solution for interfacing with serial communication systems while providing the necessary isolation and protection for both the PC and peripheral devices.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 ra tio is 20, for the other two CTR is 100 so above design will work. 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. Read more about serial port here. 🔗 External reference
This USB to Serial RS232 adapter is highly beneficial in scenarios where a device with RS232 needs to be connected to a computer lacking an RS232 port but equipped with a USB port. Utilizing the FT232BM chip produced by...
In the article you will find a description of the universal PIC programmer, which suggested the involvement of Jens Madsen Dyekjar. Program allows districts PIC12C5XX, 12C67X, 16C55X, 16C61, 16C62X, 16C71, 16C71X, 16C8X, 16F8X, serial EEPROM 24Cxx. It allows to...
This circuit utilizes a photoelectric coupler to achieve 100GΩ isolation between a TTL (Transistor-Transistor Logic) circuit and a relay circuit. This configuration effectively prevents relay noise and peak voltage from affecting the TTL circuit. When the TTL input signal...
The circuit illustrated in Figure 2-48 consists of two configurations. Configuration 2-48 (a) operates using a 4.5V battery, while configuration 2-48 (b) employs AC capacitors to reduce the voltage supply. In configuration 2-48 (a), the delay time is influenced...
This is the schematic diagram of a 9-Pin RS232 Line Booster Signal Direction. The device functions as a 9-pin RS-232 repeater, re-transmitting all 8 signals while also maintaining the ground line.
The 9-Pin RS232 Line Booster is designed to extend...
This RS-232 type line receiver is designed to drive CMOS logic and incorporates a Schmitt-trigger feedback network that provides approximately 1-V input hysteresis, enhancing noise immunity. A potential issue in an interface connecting two devices, each connected to different...
Warning: include(partials/cookie-banner.php): Failed to open stream: Permission denied in /var/www/html/nextgr/view-circuit.php on line 713
Warning: include(): Failed opening 'partials/cookie-banner.php' for inclusion (include_path='.:/usr/share/php') in /var/www/html/nextgr/view-circuit.php on line 713