Here I'm showing how to control home appliances via xBee and Arduino Uno.
Here you can see there is a GAS SENSOR and beside that there is a FLAME SENSOR (the library can be downloaded from https://www.theengineeringprojects.com/) and the xBee is connected to Arduino through Tx and Rx pins of Arduino and the lamps and the DC motor are connected to supply voltage through a relay. Each relay has one pin connected to Arduino and the other to ground. If the relay is on, then that component is connected to supply and vice versa.
Here you can see that there is another Arduino (in another Proteus project) and there is also a LCD to show the sensor data coming from the FLAME and the GAS sensors (in the Home System, different from this project). The second xBee (in Control System) is connected to the first xBee (in Home System) through the VIRTUAL SERIAL PORT DRIVER (you can download this from https://www.eltima.com/products/vspdxp/). This driver helps you to connect the port driver virtually. Like this:
Here you can see that I'm in the VSPD and on the left side you can see that my COM1 and COM2 are virtually connected. Similarly you can connect as many virtual ports, adding them by pressing the ADD PAIR button on the right side.
Here in the above picture, you can see that in the Control System xBee the Physical port is written as COM1 and, in a similar way, you have to change the Physical port in the 2nd xBee by going to its properties. You have to write COM2 there so that both the xBees are connected through VSPD and can share data with each other.
Comments