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
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
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
Overview
○
Alex Berian
○
Dustin McCart
2
Background
3
Modern Smart Lighting Systems
4
Screebshot of Google
Smart Light Switch
5
○ Not the bulb
Requirements and Constraints
6
Glass Box Diagram
7
Alex Berian
Communication
8
Light Control Circuit
9
Relay Drive Circuit
10
Light Control Circuit
11
Light Control Circuit Testing
12
Raspberry Pi
Motion Sensor
13
Motion Sensor
14
○ 3.3V out ○ 6 seconds
○ 0V out
User Interface Circuit
15
User Interface Circuit
16
○ Bluetooth ○ Motion Sensor ○ Mode
User Interface Circuit Testing
17
Android Application
18
Android Application
19
○ Date and Time
System Communication
20
System Communication
21
○ Control Hardware ○ Prediction Algorithm ○ Data Storage
○ Bluetooth
■ Reconnection issue ■ ~$ sdptool add sp
○ Wifi setup
Dustin McCart
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
8 INPUTS
○ Light switch ○ Bluetooth toggle ○ Motion sensor toggle
○ Modes
7 Outputs
○ Indicator LEDs
24
Input/output pins
The pin set program uses the wiringPi library for working with the pins
Bluetooth communication
25
○ Pipes ○
ASCII strings
○ Terminate with “!”
pipe to communicate
○ “turn off lights!”
Data storage Programs
event information
Mostly background 91 entries (month,day) date format
Variable length
main program.
26
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
Prediction Algorithm
Master thesis
28
Stage one: point assignment
state
everything inbetween got a mixed number between 1 and 2 depending on how many aspects where the same
29
Stage two: point redistribution
desired time for the prediction
close they are to the desired time
state to another
30
Stage three: prediction
confirmed
31
Mode creation and program merging
Questions
33
Extra Slides
34
Light Control Circuit Calculations
35
Light Control Circuit Test
36
Full Circuit Diagram + Calculations
37
Prediction phase 1 example
38
System Flow Chart
39