smart lighting system final presentation
play

Smart Lighting System Final Presentation Bradley University - PowerPoint PPT Presentation

Smart Lighting System Final Presentation Bradley University Department of Electrical and Computer Engineering Authors: Alexander Berian, Dustin McCart Project Advisor: Aleksander Malinowski Date: 3/21/2016 Background Overview Work


  1. Smart Lighting System Final Presentation Bradley University Department of Electrical and Computer Engineering Authors: Alexander Berian, Dustin McCart Project Advisor: Aleksander Malinowski Date: 3/21/2016

  2. ● Background Overview ● Work Completed Alex Berian ○ Dustin McCart ○ 2

  3. Background ● Smart Light Systems ● Smart Light Switch ● Specifications 3

  4. Modern Smart Lighting Systems ● Pricey ● Complicating ● Bulb + more Screebshot of Google 4

  5. Smart Light Switch ● We Make The Switch ○ Not the bulb ● Building/Home Automation ● Save Energy ● Smart Phones ● Light Usage Pattern Prediction ● Preset Events 5

  6. Requirements and Constraints 6

  7. Glass Box Diagram 7

  8. ● Light Control Circuit ● User Interface Alex Berian ● Android Application ● System Communication 8

  9. Light Control Circuit 9

  10. Relay Drive Circuit ● Relay Switch ● Transistor ● Flyback Diode ● Raspberry Pi 5V ● Raspberry Pi output Pin 10

  11. Light Control Circuit 11

  12. Light Control Circuit Testing ● Safety ● Lamp ● Old and unused Raspberry Pi ● Button 12

  13. Motion Sensor 13

  14. Motion Sensor ● Motion Detected ○ 3.3V out ○ 6 seconds ● No Motion Detected ○ 0V out 14

  15. User Interface Circuit 15

  16. User Interface Circuit ● Bluetooth Toggle ● Motion Sensor Toggle ● Light Switch ● Mode Selection ● Indicator LED ○ Bluetooth ○ Motion Sensor ○ Mode 16

  17. User Interface Circuit Testing ● Simple input & output program 17

  18. Android Application 18

  19. Android Application ● Android Studio ● Commands over Bluetooth ● Syncs to system status ● Wifi setup ○ Date and Time 19

  20. System Communication 20

  21. System Communication ● Raspbian ● Pipes ● C++ ○ Control Hardware ○ Prediction Algorithm ○ Data Storage ● Python ○ Bluetooth ■ Reconnection issue ■ ~$ sdptool add sp ○ Wifi setup 21

  22. • • • Dustin McCart • • 22

  23. Schedule Task Planned start Completion Date Status Basic Programming 9/15/2015 9/22/2015 Complete Pin Setup 9/24/2015 10/20/2015 Complete Prediction Algorithm 10/22/2015 11/17/2015 Complete Data storage 1st and 2nd log 11/19/2015 12/8/2015 Complete Data storage 3rd log added later Unknown 65% Mode Programming 1/21/2016 Unknown 40% Communication Between programs added later 3/8/2016 Complete Merging Programs 2/11/2016 Unknown 30% 23

  24. Input/output pins The pin set program uses the wiringPi library for working with the pins 8 INPUTS 7 Outputs ● 3 Switches ○ Light switch ● 6 LEDs ○ Bluetooth toggle ○ Indicator LEDs ○ Motion sensor toggle ● 4 Push Buttons ○ Modes ● Signal to Light Control Circuit ● Motion Sensor 24

  25. Bluetooth communication ● C++ to Python ○ Pipes ○ ASCII strings ○ Terminate with “!” ● Specific commands sent over pipe to communicate ○ “turn off lights!” 25

  26. Data storage Programs •3 Logs: date information, transition information, and preset event information •Date log Mostly background 91 entries (month,day) date format •preset log (incomplete) Variable length •Each has basic functions designed for communication with main program. 26

  27. Data storage continued Transition log Variable length Needed for prediction Entries are made of special variable class made of 6 unsigned short ints (month,day,hour,minute,previous state,new state) Has function need to work prediction 27

  28. Prediction Algorithm •Transition probability •Originally created by Rolf Heukels and published in his Master thesis •Based on the transition for one state to the next •Has three stages •Stage one initial point assignment •Stage two point redistribution •Stage three prediction creation 28

  29. Stage one: point assignment •Points given determined by total number of times a state occurs •Every state given multiplier based on similarity to current state •In our case 1 for no similarity 2 for same state and everything inbetween got a mixed number between 1 and 2 depending on how many aspects where the same •Run every time the prediction is run 29

  30. Stage two: point redistribution •Finds every transition occurring within a set range of the desired time for the prediction •All transitions summed with weight given based on how close they are to the desired time •Points transferred according to number of transitions for one state to another 30

  31. Stage three: prediction •Desired state of an item is chosen •In our case it was if the light was on •Point for all state where this occurs are summed •This summation is then divided by the total number of points •If the result is higher then a set threshold the prediction is confirmed 31

  32. Mode creation and program merging • • • • • • • 32

  33. ? ? ? ? ? ? ? ? ? Questions ? ? ? ? ? ? ? 33

  34. Extra Slides 34

  35. Light Control Circuit Calculations 35

  36. Light Control Circuit Test 36

  37. Full Circuit Diagram + Calculations 37

  38. Prediction phase 1 example 38

  39. System Flow Chart 39

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend