440 likes | 604 Views
Universal Controller. Team #55 Yi Ren Xuanyu Zhan ECE445 - SPRING 2014. Introduction. Universal Controller provides a wireless control through internet for the flip switches which could be an important part of future home automation system
E N D
Universal Controller Team #55 Yi Ren Xuanyu Zhan ECE445 - SPRING 2014
Introduction • Universal Controller provides a wireless control through internet for the flip switches which could be an important part of future home automation system • With our built-in temperature sensor, smoke sensor and siren system, Universal Controller can also replace smoke detector and thermometer at home
Features • Flip a switch • Control with computers or mobile devices with internet connection • Smoke detection • Siren alarm • Time setting with button • Time display • Temperature Display • Data Collection
Hardware Overview • Power Supply • User Interface • Wireless Communication Module • Control Unit • Sensing Unit • Motor
Power Supply Unit • Supplies ~4.5V and GND to the voltage regulators • Output of the regulators supply power to the motor, sensors, WiFi unit and control unit • Switching regulators have outputs around 3.3V and 5V • Build bypass capacitor to prevent voltage spikes
Output From 5V Regulator Min:4.84V Max:5.07V
Output From 3.3V Regulator Min:3.30V Max:3.47V
Power Supply Unit Power Budget • Servo: 4mA to 180mA • Microcontroller: 0.2mA • WiFi: 2mA to 40mA • LCD: 1.3mA • Smoke Detector: 120mA • Theoretical Total Current: 341.5mA • Tested Total Current: around 380mA
Energizer. Product Datasheet Energizer E91. May 2nd, 2014 . http://data.energizer.com/PDFs/E91.pdf.
Power Supply Unit Power Budget(worst case) Operation time= 1600mAh/380mA =4.21h Theoretical operation hours: 4hour (Based on the assumption that servo motor is active at all time)
Future Work on Power Unit This chip provides user with an option to charge this device with USB or a wall charger
User Interface (hardware) • A switch for the whole system • Reset button when the buzzer goes off • Timer button to set count down time • LCD to display the current temperature, the timer, and current status of the system.
Wireless Communication module • Get and send on/off signal from/to the router • Sweep search for the wireless signal every 30 seconds.
Test Result Our wireless module successfully connected to the router and was assigned an IP address
Control Unit • A microcontroller to interact with wireless module, motor, sensors and user interface • Built our own Arduino with two capacitors and a crystal oscillator.
Sensing Unit • A MQ-2 sensor is used as a smoke detector and it sends an analog output to the microcontroller(less than 0.2V in clear air) • TMP37 sensor is used as a temperature sensor and it sends an analog output to the microcontroller(0.5V at 25 oC)
Motor and mechanical end Servo motor is used to flip the switch
Software Overview • Android App • Web Page • Web Server • Data Collection and Analysis • Email Notification
Turn On/OFF switch by clicking “Turn On”/“Turn OFF” button • Check status of device by clicking “Refresh” button • Each button according to a php script
Display real time clock • Display current status of the switch • Turn On/OFF switch by clicking “On”/ “OFF” button
Display switching history • Provide PDF format of the switching historty • Provide bar graph and timeline graph
PCB Layout Utilized Eagle 5.10.0 Professional
Successes • Flip switch with physical button and virtual buttons on android app and our website • Collect data and generate graphs and tables that can be used for usage analysis and power consumption etc. • Sense temperature and smoke to give good indication of potential dangerous
Challenges • Android App • Web Server • WiFi • Data Collection • PCB
Future Work • Optimize PCB layout • Multiple options and long-lasting power supply • Diversify data analysis • Add more mechanical end for this device
Acknowledgements • Professor Scott Carney • Professor Andrew Singer • Dennis Yuan • Wally Smith • Mark Smart • SkotWiedmann • Scott McDonald
References • “Mac-UDP-Client-Server-library”, webpage, 2012. Available at:https://github.com/Shein/Mac-UDP-Client-Server • “MQ 2 smoke detector shield for Arduino”, webpage, Available at:http://www.cutedigi.com/arduino-shields/mq2-smoke-detector-shield-for-arduino.html • “Using the RN-XV WiFi Module as a Remote switch”, webpage, 2011. Available at:http://log.liminastudio.com/itp/physical-computing/using-the-rn-xv-wifi-module-as-a-remote-switch • “Getting started with the RN-XV WiFi Module & Node”, webpage, Tedbot, 2011. Available at:http://log.liminastudio.com/programming/getting-started-with-the-rn-xv-wifi-module-node-js • “WiFly Wireless SpeakJet Server”, webpage, CTaylor, 2010. Available at:https://www.sparkfun.com/tutorials/158 • “Seven segment display Library” on playground. Arduino.cc. Available at:http://playground.arduino.cc/Main/SevenSegmentLibrary#.Uxd-OfmwL2A • “Pololu 3.3V Step-Up Voltage Regulator U1V10F3”, webpage, pololu.com. Available at:http://www.pololu.com/product/2563 • “SoftwareSerial Library”, webpage, arduino.cc. Available at:http://arduino.cc/en/Reference/SoftwareSerial - .Uyk4wl6GE0o • “arduino-wifly-serial”, webpage, github.com. Available at:https://github.com/perezd/arduino-wifly-serial • Y. Ren and X. Zhan “Universal Controller”, Design Review, Department of Electrical and Computer Engineering, Unviersity of Illinois at Urbana-Champaign, 2014. Available at:https://courses.engr.illinois.edu/ece445/projects/spring2014/project55_design_review.pdf