Tag: optocoupler

2 articles found.

PC817 Optocoupler Library for Proteus: PC817 and 4N35

PC817 Optocoupler Library for Proteus: two PC817s and two 4N35s with a 24 V input and a 12 V lamp on an Arduino UNO V4.0

Hello friends, I hope you all are doing great. Today, I am going to share the new PC817 Optocoupler Library for Proteus. An optocoupler joins two circuits with nothing but light: an infrared LED on one side, a phototransistor on the other, and a clear gap between them that can hold off thousands of volts. It is how a 3.3 V or 5 V microcontroller reads a 24 V machine signal, how it switches a load on another supply without sharing its ground, and how a mains power supply tells its controller what the output is doing. Our library has two of the most used ones at true scale: the PC817, the small four-pin optocoupler found on almost every relay board and power supply, with its CTR rank (A, B, C or D) printed on its body, and the 4N35, the classic six-pin part whose phototransistor has its base on a pin. The model has the infrared LED, the light as a photocurrent, and a phototransistor whose current transfer ratio rises, peaks and falls with the LED current just as the datasheet curve does, with the charges of its junctions so its switching times follow the load. The demo reads a 24 V switch, drives an isolated 12 V lamp, and times two 4N35s to show what one resistor on the base pin does. NOTICE: Our team has put a lot of effort into these small parts: the bodies, the animation and the pop-ups are all our own design, and you get them free. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the PC817 Optocoupler board of our ...

Relay Module Library for Proteus V1.0: 1, 2, 4 and 8 Channel 5V

Relay Module Library for Proteus V1.0: an Arduino UNO V4.0 with a 4-channel 5V relay module, and the Advance pop-up with the switching of a relay

Hello friends, I hope you all are doing great. Today, I am going to share the new Relay Module Library for Proteus V1.0. The blue 5 V relay module is in almost every Arduino kit: one, two, four or eight SONGLE relays on a board, with optocouplers, LEDs and screw terminals. It lets a small Arduino pin switch a lamp, a fan, a pump, a solenoid lock or a motor, with the load completely separated from the Arduino. Home automation, plant watering, garage doors and smart sockets all start with this module. Now you can build and test them in Proteus. Behind the parts sits our own model, not a symbol on top of a Proteus relay. Each input works like the real one, active LOW through an LED and a PC817 optocoupler. Each relay has a coil that takes time to build up its current, an armature that picks up and drops out at the levels of the datasheet, and contacts that break before they make and bounce. The contacts are real circuit elements, so a lamp, an LED or an Arduino input on them sees the real switching. You get eight devices: the 1, 2, 4 and 8-channel modules, each as a Simple device with a live STATUS panel and as an Advance device with a pop-up window and three test tools. The demo runs on our Arduino UNO V4.0. NOTICE: a relay library is easy to fake: flip a switch the moment the pin changes. We wanted more. Our relays need about 7 ms to switch, ignore pulses that are too short, cannot follow PWM, stop working when the JD-VCC jumper is pulled and bounce on every closing, just like ...