Presented here is a Windows-based project that can control up to eight electrical devices using a personal computer. Connecting a computer to external devices is becoming essential in our day-to-day life for automation. But to communicate to a device we need a common communication protocol such as a serial COM port, USB or wireless connectivity. Here we have used the serial communication protocol to control the devices.

Fig. 1: Author’s prototype
Fig. 1: Author’s prototype

ECF_partsMany modern personal computers have no serial COM ports but these are still found in industrial machines or scientific instruments. This project was inspired by the construction project, ‘Multiple Device Switching Through PC’s Parallel Port’ published in May 2008 issue of EFY. Parallel ports are not in use any more, nor are they available on PCs and laptops. So we have designed this project for the serial port, which is still being used for communication in some PCs. The author’s prototype is shown in Fig. 1.

Circuit and working
The circuit diagram is shown in Fig. 2. It consists of microcontroller AT89C2051 (IC1), MAX232 driver (IC2), eight opto-TRIAC drivers MOC3041 (IC3 through IC10), eight BT136 TRIACs (TRIAC1 through TRIAC8), a DB9 serial COM port connector, a 5V voltage regulator (IC11) and a few other common components.

Explore Circuits and Projects Explore Videos and Tutorials

Power supply. The 230V, 50Hz AC mains is stepped down by transformer X1 to deliver a secondary output of 12 V, 500mA. The transformer output is rectified by full-wave rectifier module BR1, filtered by capacitor C6 and regulated by IC 7805 (IC11). Capacitor C7 bypasses the ripples present in regulated supply. The regulated 5V is used to power the microcontroller, MAX232 driver, MOC3041 opto-TRIAC drivers and BT136 TRIACs. LED1 indicates presence of power supply.

READ
Crystal-Based 50Hz Generator

Microcontroller. The AT89C2051 is a low-voltage, high-performance CMOS 8-bit microcontroller with 2k bytes of Flash programmable and erasable read-only memory. The device is manufactured using Atmel’s high-density non-volatile memory and is compatible with the industry-standard MCS-51 instruction set. It has 128 bytes of RAM, 15 I/O lines, two 16-bit timer/counters, a five-vector two-level interrupt architecture, a full duplex serial port, a precision analogue comparator, an on-chip oscillator and clock circuitry. an 11.0592MHz crystal is used as the external clock source. You may use two 33pF capacitors along with the crystal to get proper oscillation frequency.

3 COMMENTS

  1. [email protected]

    Hello sir,
    How much time will it require to complete the whole working setup?

LEAVE A REPLY