Aims to expand and perfect the home automation project, the end devices (Smart Power Plug) will be added in. As it is a power plug device called smart, it will not only be controlled by web page while the user wants to on or off it, but also can detect and sent the current signal to the web page for the user managing electricity and saving money.
The components required for measuring current are Current Sensor, Microcontroller, and Telegesis ZigBee chip. Current Sensor is to measure current and send out the analog signal through output pin. The microcontroller is to receive the analog signal and convert it to the digital signal. After got the digital signal from Microcontroller, ZigBee sends out the data, which is the value of current through wireless. Of course, there is a component rolled power supply, which can convert 230 Vac to 3.3 Vdc or 5.5 Vdc for other components.
The components required for measuring current are Current Sensor, Microcontroller, and Telegesis ZigBee chip. Current Sensor is to measure current and send out the analog signal through output pin. The microcontroller is to receive the analog signal and convert it to the digital signal. After got the digital signal from Microcontroller, ZigBee sends out the data, which is the value of current through wireless. Of course, there is a component rolled power supply, which can convert 230 Vac to 3.3 Vdc or 5.5 Vdc for other components.
After receiving the components, the connection between current and microcontroller are going to be tested firstly. Referring the picture below:
According to the circuit diagram of the datasheet, the Vout of the current sensor can connect with the Analog input of the microcontroller.