Presentation is loading. Please wait.

Presentation is loading. Please wait.

Voice Controlled Home Automation System Group 13 Zhe Gong Hongchuan Li.

Similar presentations


Presentation on theme: "Voice Controlled Home Automation System Group 13 Zhe Gong Hongchuan Li."— Presentation transcript:

1 Voice Controlled Home Automation System Group 13 Zhe Gong Hongchuan Li

2 Introduction  A voice controlled switch system to create an automated and comfortable home environment  Turn on and off multiple sockets remotely

3 Objective User-customized voice command Control devices in all rooms Enable/disable voice control for specific power socket

4 Original Design Overview

5

6 Core Unit

7 Remote Unit

8 Power Electronics InputWall outlet AC Output5 VDC ± 20mv to all parts HardwareVSK-S10-5UA AC-DC converter

9 Power Electronics RequirementVerification Wall outlet transform to 5 VDC ± 0.02V Connect the power electronics circuit to wall outlet. Use volt-meter to measure the output voltage. Verify the voltage is 5 VDC ± 0.02V.

10 Power Electronics

11 Transmitter and Receiver Transmitter (Core Unit): Receiver (Remote Unit): Inputdigital data from microprocessor OutputRF signal to receiver HardwareTXM-418-LC InputRF signal at 418MHz Outputanalog signal to microcontroller HardwareTXM-418-LC

12 Transmitter and Receiver

13 RequirementVerification Stable data transmission from transmitter (core unit) to receiver (remote unit) Input a signal to transmitter using function generator and make transmitter transmits the signal. Connect oscilloscope to receiver to verify the received signal.

14 Transmitter and Receiver

15 Relay Input Low/high voltage from microcontroller 120V AC Output120V AC

16 Microprocessor Input Voice data from microphone Ethernet or Wi-Fi USB mouse/keyboard Output Digital command to transmitter HDMI output to screen Speaker for voice communication with user Hardware Raspberry pi model B/B+ Wi-Fi adaptor attached to Raspberry pi’s USB port USB speaker Software Rasbian OS Jasper (voice recognition software) Own program for analyzing and RF transmission

17 Microprocessor RequirementVerification Microprocessor can recognize the voice command. Say a voice command to microphone and verify that the text printed out by microprocessor is correct. Microprocessor can send data to transmitter, thus communicate with remote strip unit. Connect the microprocessor to Arduino to test if the microprocessor can send correct data

18 Microprocessor (Raspberry pi )

19 Microcontroller Input Serial signal from receiver OutputLow/high voltage to relays HardwareArduino UNO for testing, atmage328P for PCB

20 Microcontroller RequirementVerification Microcontroller converts data received back to command. Configure the microprocessor to send commands to microcontroller, verify the output of microcontroller to be high or low correspondingly. Based on command, microcontroller sends high or low signals to relay.

21 Microcontroller

22 Serial communication Challenges The wireless module TRM-418-LT doesn’t support the USART (Universal Synchronous/Asynchronous Receiver/Transmitter) Raspberry Pi doesn’t have a RTC to provide accurate interrupt Solutions Implement our own serial communication Continue to pull out the system time Block the interrupt

23 Serial communication count’ Send 0x0C(DATA)3 In binary 0b1100+16bitsData+0011 Send from right to left, each bit at a time Set the gpio pin23 to HIGH or LOW correspondingly Continuously shift the input into a buffer Process if the data satisfy the pattern Baud rate = 500 Too fast, inaccurate Too slow, the chip cannot handle

24 Encoding Using hamming 15-11 to encode the data Able to correct 1 bit error and detect 2 bits error

25 Encode/Decode API API in python encH1511(n, debug = False) decH1511(n, debug = False) API in C: int encH1511(int n); int decH1511(int n);

26 Protocol 11 bits of data 0b0011 0001 000 Bit 10-7 Core ID Generated from the CPU’s ID, each raspberry has a different number Bit 6-3 Remote ID Assigned to each remote unit (EEPROM) Bit 2-0 CMD (distance = 2) ON = 0(0b000) OFF = 3(0b011) TOGGLE = 5(0b101) ACK = 6(0b110) Devices are paired and the data is kept by both remote and core unit to avoid malfunction

27 Keywords Only process if contains “SWITCH” TURN ON/OFF Remote ID TOGGLE REMOTE ID If the remote id exist, then cmd is sent to the remote unit

28 Functional Tests Bread board test for wireless communication of transmitter and receiver

29 Wireless communication of test result Function Generator Output Receiver Output

30 Test of microcontroller with wireless communication

31 Microcontroller test results

32 Test with all PCB components

33 Test Results of PCB

34 Success and Challenges All verifications are met. Successfully turn on and off power socket by voice control – achieved overall functional objective

35 Challenges Noise affect the voice recognition accuracy and response speed Performance of microphone affects the voice recognition accuracy Long Distance and signal noise with similar frequency can affect wireless communication

36 Recommendations for further work Noise handling: noise filter or algorithm, limited command pick up time Add microphone in remote unit and enable bidirectional communication between core unit and remote unit: control the socket far away from the core unit, when you are near the socket

37 Strengths:  Multiple socket control  Possible expansion of new sockets  Cost effective Conclusion Weakness:  Susceptible to Noise  Susceptible to long distance in large house


Download ppt "Voice Controlled Home Automation System Group 13 Zhe Gong Hongchuan Li."

Similar presentations


Ads by Google