This Home windows-based program, created with Microsoft Visible Fundamental (VB6), options an intuitive person graphic interface (UGI) and operates seamlessly on the Home windows platform. It interfaces with a private laptop’s (PC’s) USB port by way of a {hardware} module, which features a microprocessor-based digital circuit able to controlling as much as eight home equipment via the PC.
This system transmits particular directions to the microprocessor-based interface card by way of the USB port. These directions are pre-programmed and saved within the microprocessor’s reminiscence. Actions are executed via a delegated relay quantity linked to an enter/output (I/O) pin of the microprocessor and driver circuit.
At its core is the ATmega328P, a single-chip, 8-bit microcontroller housed in a 28-pin DIL bundle. This microcontroller is each cost-effective and broadly out there within the Indian market. As it’s the similar IC utilized in Arduino Uno, the ATmega328P circuit could be simply changed with an Arduino Uno board, if most popular.
Invoice of Supplies | |
Parts | Amount |
220V major to 15V, 1A secondary transformer (T1) | 1 |
Rectifier diode 1N4007 (D1-D12) | 12 |
Capacitor 1000µF, 25V (C1) | 1 |
12V voltage regulator IC 7812 (IC1) | 1 |
5V voltage regulator IC 7805 (IC4) | 1 |
Relay 12V SPDT (RLY 1- RLY8) | 8 |
Relay driver IC ULN2803A (IC2) | 1 |
5mm crimson LED for energy indication | 1 |
1k resistor (R1) | 1 |
Microcontroller ATmega328P (IC3) | 1 |
28-pin DIL IC base (optionally available for breadboard) | 1 |
18-pin DIL IC base (optionally available for breadboard) | 1 |
Crystal 16MHz (X1) | 1 |
22pF ceramic capacitor | 2 |
USB-to-TTL serial converter (see Fig. 2) | 1 |
Jumper wires | As required |
Relay connectors | 8 |
The Arduino IDE, required to program the ATmega328P, is obtainable at no cost obtain at https://www.arduino.cc/en/software program. A block diagram illustrating this system’s performance is proven in Fig. 1, whereas the whole invoice of supplies is offered within the desk on this web page.
This program entails utilizing Visible Fundamental (VB) to speak with an exterior {hardware} module via the USB port. A fundamental understanding of VB programming and {hardware} information for connecting and controlling the {hardware} module is important. A microcontroller or USB interface module acts because the middleman between the PC and the home equipment.
The home equipment are linked by way of relays. A general-purpose PCB or breadboard, jumper wires, and an influence provide for exterior home equipment are used. Fig. 2 reveals the USB-to-TTL serial converter used to program the microcontroller ATmega328P.
Equipment management via the PC’s USB port utilizing Visible Fundamental is illustrated in Fig. 3. The circuit contains a step-down transformer, bridge rectifier, 12V voltage regulator LM7812 (IC1), relay driver UL2803 (IC2), microcontroller ATmega328P (IC3), 5V voltage regulator 7805 (IC4), 12 rectifier diodes 1N4007 (D1-D12), eight 12V SPDT relays, a 16MHz crystal, and different supporting parts.
The LED signifies whether or not the circuit is powered. A 12V and a 5V regulated energy provides are required to function the circuit. These are derived from a 220V AC major to 15V, 1A secondary transformer (T1), a bridge rectifier constructed with 4 1N4007 diodes (D1-D4), and 7812 and 7805 voltage regulators. Capacitor C1 removes ripples. The 12V output from IC 7812 powers the relays and supplies enter to IC 7805, whose 5V output permits the ATmega328P.
The microcontroller’s output pins are straight linked to ULN2803A pins as per the circuit diagram to regulate the home equipment by way of relays. The ULN2803A relay driver isolates the low-voltage circuit from the high-voltage part and controls the relay contacts.
Set up the IDE for VB improvement. Guarantee correct USB drivers for the microcontroller or interface module. Embrace libraries for USB communication. Use input-output ports for serial communication. Two packages are used:
1. Arduino code sketch for the microcontroller (Fig. 4).
2. Visible Fundamental-based GUI for the PC, offering a graphical interface to regulate the home equipment by way of the serial port.
Arrange Visible Studio and create a brand new window. Add controls and the SerialPort within the toolbox. Write the VB code. Run VB6 on the PC, copy the VB6 program (Fig. 5), paste it into the brand new challenge, and create an executable (EXE) file.
After programming the ATmega328P IC, take away it from the Arduino Uno board. Assemble the circuit and use the programmed IC as proven in Fig. 3. Press F5 to run the VB software. Guarantee the proper COM port is specified. Use the Arduino IDE’s serial monitor to confirm instructions and responses, if wanted.
Energy the {hardware}, join the FTDI or Arduino Uno to the PC’s USB port, and run the GUI Visible Fundamental code. The GUI will seem on the display screen (Fig. 6). Management the home equipment by clicking the GUI buttons.
Adeeb Raza is an electronics engineer with about 35 years of sensible expertise. He’s a daily reader and contributor to EFY.
👇Comply with extra 👇
👉 bdphone.com
👉 ultraactivation.com
👉 trainingreferral.com
👉 shaplafood.com
👉 bangladeshi.assist
👉 www.forexdhaka.com
👉 uncommunication.com
👉 ultra-sim.com
👉 forexdhaka.com
👉 ultrafxfund.com
👉 ultractivation.com
👉 bdphoneonline.com
POCO continues to make one of the best funds telephones, and the producer is doing…
- Commercial - Designed for players and creators alike, the ROG Astral sequence combines excellent…
Good garments, also referred to as e-textiles or wearable expertise, are clothes embedded with sensors,…
Completely satisfied Halloween! Have fun with us be studying about a number of spooky science…
Digital potentiometers (“Dpots”) are a various and helpful class of digital/analog elements with as much…
Keysight Applied sciences pronounces the enlargement of its Novus portfolio with the Novus mini automotive,…