DIY Mag ic M irr or · 2013. 6. 7. · Switch 4 – Pic and will stop w LED 2 – Indica LED 3 –...

82
Senso or Wir ring & C D I & Softw Copyright I Y M ware Open Gadg M a g Opera ets LLC g ic M ations Ve M ir r s Man rsion r or nual 7.0

Transcript of DIY Mag ic M irr or · 2013. 6. 7. · Switch 4 – Pic and will stop w LED 2 – Indica LED 3 –...

  • Senso

    or Wir

    ring &

    C

    DI& Softw

    Copyright

    IY Mware

    Open Gadg

    Mag Opera

    gets LLC

    gic Mations

    Ve

    Mirrs Manrsion

    ror nual 7.0

  • 2

    Contents 3 Chapter 1 – Required Hardware 5 Chapter 2 – Wiring and Testing the Sensors 10 Chapter 3 – Software Features 10 Switches 13 Touch Sensors 15 Changing the Character 17 Proximity Sensor 19 X-10 Control 21 Adjusting the Size and Position of the Characters and Text 23 Weather, Stock, Breathalyzer Read-Outs & Stealth Mode 24 LED Control 25 Breathalyzer 30 Custom Audio Mode (Text to Speech and User Supplied MP3s) 33 Using the Twitter Feature

    38 Webcam Facial Recognition 40 Stand Alone Mode 42 Quiz Mode 47 Photobooth Feature 53 Setting the Magic Mirror for Permanent Operation

    55 Chapter 4 – Configuration Settings 61 Customizing the Magic Mirror with your own Videos 65 Chapter 5 – Hardware Installation Tips 77 Chapter 6 – Troubleshooting 80 Appendix A – Magic Mirror Sensor Hub Schematic 81 Appendix B – Sensor Wiring Physical View 82 Appendix C – Magic Mirror Sensor Hub Internal Schematic

  • 3

    Part List See http://diymagicmirror.com/hardware.html  for recommended places to buy the parts. 

    Part  Qty  Description 

    PC  1  Your PC will be fine if it can play the videos on http://diymagicmirror.com/v3/mirrordemo.html smoothly 

    Monitor   1  Used 15" LCD monitor on Craigslist or eBay. You can use a larger monitor also. 

    Magic Mirror Sensor Hub  1  You can build your own or purchase one. See the manual “Building the Magic Mirror Sensor Hub” for instructions on how to build your own. The Magic Mirror Software is included with the Sensor Hub purchase. 

    Magic Mirror Software  1  Magic Mirror Software 

    Picture Frame with Oval Matte – OPTIONAL 

    1  Antique shops are good places to find a vintage frame. You'll want to make sure it covers the monitor and wall opening if you recess the monitor in your wall. 

    Dielectric Glass TV Mirror 4mm (2‐Way Mirror) – OPTIONAL 

    1  Looks like a normal mirror when the monitor is off. Hiddentelevison.com is one source and has low cost samples for smaller monitor/frame sizes (15”). 

    Maxbotix Proximity Sensor LV‐EZ1  

    1  A sensor hooked up to the Magic Mirror Sensor Hub that measures distance using sonar.   

    Touch Sensors (Up to 3)  3  Sensors that goes off when you touch them.  

    Switches (Up to 5)  5  See http://diymagicmirror.com/sensors.html for switch options 

     

    Chapter

    1

  • 4

    Part  Qty  Description 

    Alcohol Sensor  1  Alcohol Sensor for the Breathalyzer Feature 

    X‐10 Plug‐in RF Base – OPTIONAL  1  Receives the X‐10 commands over RF from the Sensor Hub. 

    X‐10 Firecracker CM17A – OPTIONAL 

    1  Plugs into the Magic Mirror Sensor Hub, sends X‐10 RF commands to the X‐10 Plug‐in RF Base 

    X‐10 LM465 Lamp Module  or X‐10 WS467 Wall Switch – OPTIONAL 

    1  For the X‐10 lighting control feature. Plug a lamp into the LM465 replace an existing light switch with the WS467 for an in‐wall installation. Note:  

    X‐10 Appliance Module AM466 – OPTIONAL 

    1  For X‐10 On/Off control feature. Plug any device into the appliance module.  

    LEDs – OPTIONAL  5  Use 4 High Brightness Red LEDs if using for the flickering fire effect. Otherwise, use indicator LEDs of color blue, green, yellow, and red. The 5th LED is the proximity sensor indicator LED and should be the color of your choice. 

    10K Linear Potentiometer and knob – OPTIONAL 

    1  10K Linear Potentiometer, mount this externally and wire to the Sensor Hub to change the Magic Mirror character on the fly 

    Thermostat or Doorbell wire – OPTIONAL 

    1  Use this wire for an in‐wall installation to connect the sensors to the Sensor Hub. You can get 1000 ft spools at your local Home Improvement Store 

  • 5

    Wiring and Testing the Sensors This chapter assumes you have either built your own or purchased a Magic Mirror Sensor Hub. Refer  to  the “Building the Magic Mirror Sensor Hub” for instructions on how to build your own.  

    Running a program called Firmata, the Arduino  sends sensor data to a serial server running on the PC. The serial server then passes the data to a local network port that the Magic Mirror software reads. The Magic Mirror software sends commands back to the Arduino  for X‐10 and LED control.  

    PC, M

    ac, o

    r Lin

    ux

    Figure 1 – How the Magic Mirror Works 

    Chapter

    2

  • T(m

    ArMM

    PEmt

    TtP

    Pr

    Soledsb

    The Magic MiBreathalyzer momentary). 

    Alochol  Sensoright:  SeeedMQ‐5  (recoMQ‐3 

    Proximity  SenEV1,  a  sonameasures  theto 22 feet 

    Touch Sensorto  right:  SeeePhidgets 1110

    Potentiometeright: Seeedst

    Switches (Up or  toggle  swieft  to  rightdoor  roller switch,  mombutton, reed (

    rror supportsfeature), 1 P 

    Sensor 

    or  (1)  –    Frstudio  alcohommended), 

    nsor  (1) – Maar  based  see distance of 

    rs  (Up  to 3) –edstudio  Tou0, and Phidge

    er  (1)  –  Frotduio Pot, Ge

    to 5) – Any mtch  is  suppo:  Seeedstudswitch,  stan

    mentary  switc(magnetic) sw

    s 1 proximity otentiometer

    om  left  to hol  sensor 

    Sparkfun 

    axbotix  LV‐ ensor  that objects up 

    – From  left uch  Sensor, ts 1129 

    om  left  to neric Pot  

    momentary rted.  From io  button, ndard  light ch,  arcade witch 

    (distance) ser (for changin

    Magic MFunctio

    Breathalyzer

    Plays variousanimations bthe distancesubject is frosensor Weather Stock  Perand X‐10 On

    Changes  thMirror chara

    Doorbell, WeForecast, StoPerformancePicture FramBreathalyzer

    6

    nsor, up to 3 ng the charact

    Mirror on(s) r 

    s based on e the om the 

    Forecast, rformance, n/Off 

    he  Magic acter 

    eather ock e, Picasa me, r Trigger 

    Phidgets Touter), and up t

    uch Sensors, 1to 5 on/off sw

    Senso

    1 Alcohol Senwitches (toggl

    or Picture 

    nsor e or 

  • 7

    After assembling the Magic Mirror Kit, connect the sensors and LEDs (optional), refer to Appendix A (Logical View) and Appendix B (Physical View). There are two ways to go on the wiring, using the plug and play connectors and screw terminals or using CAT5 cabling. Using the plug and play connectors and screw terminals will be easier and does not require any soldering as in figure 3.  Use CAT5 for long runs or in‐wall installations. Also note that the switch pull‐down and LED resistors are on the board so just connect directly to the switches and LEDs, no additional resistors are needed. 

    Figure 2 – Magic Mirror Sensor Hub (Arduino Shield) 

      

    [A] Sensor Pinout Cheat Sheet [B] Plug and Play Alcohol Sensor [C] Plug and Play Breathalyzer Switch [D] Screw Terminal Sensor Connections [E] CAT5E Cable Sensor Connections [F] Onboard Pot – Changes the Character [G] Proximity Sensor [H] Plug and Play Switch or Touch Sensor – Weather Forecast [I]  Plug and Play Switch or Touch Sensor – Stock Performance [J] Plug and Play Switch or Touch Sensor – X10 On/Off Control [K] +5V and GND Out – Power for Sensors wired to Screw Terminals and/or CAT5E Cables [L] Connect Optional X‐10 CM17A Here [M] External Pot – Changes the Character [N] Slide switch to toggle from Internal Pot or External Pot     

  •  

     

    Prince

    ess 

    Figure

    Pira

    F

    e 3 –  Plug and

    ate 

    igure 4 –  Ma

    8

    d Play/No So

    Hallo 

    agic Mirror Ch

    ldering Setup

    oween 

    haracters 

    In

     

    nsult 

  • If Fro

    f you do go th

    Follow the wirespective Caone set of sen

    Magic Mirror Board Pin Number

    1 2 3 4 5 6 7 8 9

    10 11 12 13 14 15 16

    e CAT5 route,

    iring schematt5e cable wirnsors at a tim

    Wire Color (conve

    Cable 1 – WhiteCable 1 – OranCable 1 – WhiteCable 1 – Blue Cable 1 – WhiteCable 1 – GreeCable 1 – WhiteCable 1 – Brow

    Cable 2 – WhiteCable 2 – OranCable 2 – WhiteCable 2 – Blue Cable 2 – WhiteCable 2 – GreeCable 2 – WhiteCable 2 – Brow

    , be sure that y

    tic, refer to Are to  the rese to ease trou

    (Cat5 T568B ention)

    e w/ Orange ge e w/ Green

    e w/ Blue en e w/ Brown

    wn

    e w/ Orange ge e w/ Green

    e w/ Blue en e w/ Brown

    wn

    Table

    T

    your CAT5 cab

    Appendix A  (Lpective sensoubleshooting

    Proximity SensTouch 1 – WeTouch 2 – StoTouch 3 – X10Switch 1 - DooSwitch 2 – WeSwitch 3 – StoLED 1 – IndicaSwitch 4 – Picand will stop wLED 2 – IndicaLED 3 – IndicaLED 4 – IndicaProximity LEDExternal CharaSwitch 5 – TrigAlcohol Senso

    e 1 – Magic M

    able 2 – T568

    9

    bles use the T‐

    Logical View)or per  table . 

    sor ather Forecast ck Performance

    0 On/Off Controlor Switch eather Forecastock Performanceator (Blue) or Fakcasa Slide Show when this switch ator (Green) or Fator (Yellow) or Fator (Red) or Fak

    D (Color or your Cacter Select Potggers Breathalyzor (For Breathalyz

    Mirror Sensor

    8B Wiring Co

    ‐568B wiring c

    ) and Appendbelow.  It’s re

    Function

    e ke Fire (Red) – Slide show wilis ON

    Fake Fire (Red) Fake Fire (Red)ke Fire (Red) Choice)

    zer yzer)

    Hub Pinouts

    onvention

    convention as 

    dix B  (Physicaecommended

    ll play when this

    s

    opposed to T

    al View), cond to wire up 

    switch is OFF

    T‐568A. 

    nect the and test 

    Arduino Pin

    Reference Analog 0 Analog 5 Analog 2 Analog 3 Digital 2 Digital 3 Digital 4 Digital 6

    Digital 7 Digital 9 Digital 10 Digital 11 Digital 13 Analog 4 Digital 5 Analog 1

  • SS Sl

    PM

    L

    SoftwSwitches

    Start by wirinight switch or

    Per AppendixMirror Sensor

    Launch “Magi

    a. EntMirrothe va

    b.  TuIMPOMirrocrash

    ware Fe

    g up the digitr momentary

    x A  (logical  vir Hub. 

    ic Mirror Adv

    ter the Magicor Sensor Hubalue will alwa

    rn  on  just  tORTANT: Only or Sensor Hub.  

    eature

    tal ON/OFF swy switches.  

    iew) and B  (p

    anced Setup”

    c Miror Sensob Port, it will bays be 5333. 

    the  digital  swturn on the s

    b will overloa

    es

    witches (swit

    physical  view

    or Hub Port  ibe 5335 for C

    witches  (Switsensors in thed the PC with

    10

    tches 1‐5). Th

    w), wire  the 5

    if you haven’COM5, 5334 fo

    tches  1‐5)  the configuratioh false data c

    hese can be t

    5 digital  swit

    t done so yeor COM4… on

    hat  you  havon screen thacausing the p

    oggle switche

    tches  (switch

    et.  If you neen the PC. For 

    ve  wired  up at are hookedrogram to lo

    es such as a s

    es 1‐5)  to  th

    d to enter thMac and Linu

    and  click  . he Magic otentially 

    ter

    3

  • Ifc

    L

    Vop

    f you get thiscurrent config

    Launch “Run M

    Verify that theon Port x”. If tport from the

     message, it mguration setti

    Magic Mirror

    e Magic Mirrothe Magic Mi “Configure M

    means your cngs will be m

     ”  o

    or Sensor Hubrror Sensor HMagic Mirror”

    configuration maintained so 

    n the PC and 

    b was found &Hub was not f” program. 

    11

    file was an oyou won’t ne

    “mirror” 

    & the top righfound, ensure

    lder version aeed to re‐ente

     on Mac

    ht box reads e that you’ve 

    and has beener them. 

    c and Linux. 

    “Magic Mirroentered the c

    n upgraded. Y

    or Sensor Hubcorrect Senso

    our 

    b Found or Hub 

  • Tv

    T

    Nc

    Trigger Switchvideo play. 

    Test the rema

    Note: You donconfiguration 

    h 1 and you w

    aining switche

    n’t have to usprogram. 

    will see a “1” f

    es that you ha

    se all the swit

    flash on the t

    ave wired up 

    tches, simply 

    12

    ext “Switch 1

    and then clos

    do not turn o

    1 – Arduino D

    se.   

    on the switch

    igital Pin 2 = 

    es that are no

    1” and the do

    ot wired in th

    oor 

    he 

  • TP1

    Ywre

    Lc

    Touch SensPer Appendix 1110 will read

    You’ll need towith the +5v crespective Senextended up t

    Launch “Magiclick .

    sors A and B, cond +5V normal

    o cut off the econnections, nsor Hub inputo 100 feet. 

    ic Mirror Adv. IMPORTANT

    nect the Phidly and 0V wh

    end connectothe black wirut pin. If you 

    anced Setup”T: Only turn o

    dgets Touch Sen touched. 

    rs of the Phide to a wire nuneed to lengt

    ” ann the Touch S

    13

    Sensors.  As re

    dgets Touch Sut with the Gthen the Phid

    d turn on theSensor inputs

    eference, the

    Sensors. The rND connectiodgets Touch S

    e touch sensos for the ones

    e Phidgets Tou

    red wire shouons, and the wSensor cable, 

    or inputs that s you have co

    uch Sensors P

    uld go to a wiwhite wire tothe cable can

    are wired uponnected.   

    P/N 

    re nut o the n be 

    p and 

  • L

    TT

    E

    Launch “Run M

    Touch “TouchTouch Sensor 

    Exit out of the

    Magic Mirror

    h Sensor 1” a3. 

    e software 

     ”  o

    and you will s

    n the PC and 

    see “Touched

    14

    “mirror” 

    d” and a wea

     on Mac

    ather video p

    c and Linux. 

    lay. Also testt Touch Sensoor 2 and 

  • CIfpi

    LSt

    Nc

    Changing thf using an extpotentiometen the picture 

    Launch “MagiSave >. If youthen change t

    Note: You do configuration 

    he Charactternally mouner, move the sbelow.  

    ic Mirror Adv would like tto OFF. The D

    not have to program. 

    ter nted potentioslide switch o

    vanced Setup”he Magic Mir

    Default is ON. 

    specify whet

    ometer to chaon the Magic 

    ” anrror characte

    ther or not yo

    15

    ange the MagMirror board

    nd ensure Chr to be only s

    ou are using 

    gic Mirror chad towards the

    aracter Selecset from the 

    the onboard

    aracter as oppe “External Po

    ct PotentiomeConfiguratio

     or external 

    posed to the ot” position a

    eter is ON ann Program/S

    potentiomete

    onboard as shown 

    nd click 

  • L

    Nw

    T

    Launch “Run M

    Now turn thewith the chara

    The Magic Mi

    Prince

    Magic Mirror

     potentiometacter (princes

    rror Characte

    ess 

     ”  o

    ter knob and ss, pirate, Hal

    ers:

    Pira

    n the PC and 

    you should slloween, insu

    ate 

    16

    “mirror” 

    see the “Charlt, or TTS/cus

    Hallo

     on Mac

    racter Select stom audio). 

    oween 

    c and Linux. 

    Potentiomete

    In

    er” box chang

    nsult 

    ge along 

  • P

    Cm

    LpsRebbb

    Proximity S

    Connect the pmeters).

    Launch “Magiplay when thesettings. The Range and Prerror will be rbefore the prbe required hbefore the sec

    Sensor

    proximity sen

    ic Mirror Adve subject is wProximity 2 vroximity 2 Urequired hereoximity videoere. If Prox 2cond proximi

    nsor, per App

    vanced Setupithin a distanvideo will playpper Range e.  The Time sos plays. A se Can Play Befty video can 

    pendix A. The

    ” annce between ty when the ssettings. Thesettings deteetting of 100 fore Prox 1 is play.

    17

     LV‐MaxSona

    nd turn on ththe Proximityubject is withe units are  rormine how loequates to roset to OFF, th

    ar EZ‐1 detec

    he proximity y 1 Lower Ranhin a distanceoughly  inchesong the subjeoughly 2 secohen the first 

    ts objects fro

    sensor. The Pnge and Proxe between ths but not exaect must stanonds but somproximity vid

    om 0 to 21 fe

    Proximity 1 vximity 1 Uppehe Proximity act  so  some  td within the me trial and edeo must be t

    eet (6.45 

    ideo will er Range 2 Lower trial and distance error will triggered 

  • LtarMtt

    Oy

    Ifip

    Launch “Run Mthe proximity and Proximityreaches the TMirror” until cthe proximity this range oth

    Once you havyour subjects 

    f  the  proximndicator  thatproximity vide

    Magic Mirrorsensor at vary Upper Rangime setting (1calibrated to sensor (i.e. w

    herwise the p

    ve the desiredknow where 

    mity  LED  is  hot  the  subjecteos are playin

     ”  orious distancege, you will se100 in this exyour liking. IMwhen no one roximity vide

    d settings, it mto stand to t

    ooked  up,  tht  is  standing ng and turn o

    n the PC and es. When youee this numbeample).  ContMPORTANT: Bis in the roomos will go off 

    may be helpfurigger the pro

    his  LED will  bin  the  rightff when the p

    18

    “mirror” u are within ther increase antinue to tweaBe sure to chm) and ensureat random. 

    ul to place a soximity video

    blink when  t  place.  The proximity vide

     on Mache range specnd a proximitak the settingeck the readie that your di

    sticker or somos.  

    he  subject  isproximity  LEeos have finis

    c and Linux ancified by Proxty video will tgs and re‐launings when noistance settin

    me kind of ind

    s within  rangED will  then shed playing. 

    nd stand in frximity Lower rigger when inch “Run Mag subject is in ngs do not fall

    dicator on the

    ge  providing turn  solid w

    ont of Range t gic front of l within 

    e floor so 

    a  visual when  the 

  • X

    LaSm

    Im

    X-10 Contro

    Launch “Magiand Lights UnSensor 3 – X1match the X‐1

    mportant X‐1make sure tha

    ol

    ic Mirror Advnit Code to m10 ON/OFF  s10 address of 

    10 will not wat the X‐10 RF

    vanced Setup”match the X‐1ensor hookedthat X‐10 mo

    work across dF Base Receiv

    ” an10 address ofd up,  then aodule. 

    ifferent AC cver is on the s

    19

    d ensure X‐10f the module lso  set  the O

    ircuits withosame circuit a

    0 Control is O controlling yON/OFF Hous

    ut a separateas your X‐10 m

    ON and set thyour  lights.  Ife Code and 

    e X‐10 signal modules.  

    he Lights Houf you have thON/Off Unit 

    amplifier mo

    use Code he Touch Code  to 

    odule so 

  • LbX

    Launch “Run Mbuttons to tesX‐10 address 

    Magic Mirrorst the X‐10 ligon your X‐10 

     ”  oghting controdevice match

    n the PC and l. If the lightshes the X‐10 a

    20

    “mirror” are not respoaddress set in

     on Maconding, checn the configu

    c and Linux ank your wiringration progra

    nd click the x1g and also ensam. 

    10 sure the 

  • A Ifcc

    Ut

    Adjusting th

    f you need tochange the Orcontinue. 

    Use the buttothe stock read

    You may 

    he Size and

    o adjust the sirientation (Po

    ons on the leftdout text, we

    also adjust th

    d Position o

    ize or positionortrait or Lan

    t to move andather readou

    he size and po

    of the Char

    n of the charadscape), then

    d re‐size the cut text, Breath

    ositioning of t

    21

    racters and

    acter, then cln you’ll need 

    character. Yohalyzer text, a

    the Picasa Sli

    d Text

    ick the Adjusto re‐start th

    ou may also mand weather 

    de Show and

    st Characters he configurati

    move (drag anicon from he

    d Doorcam in 

    button. Noteion program t

    nd drop) and rre. 

    the same ma

    e: If you to 

    re‐size 

    anner. 

  • 22

  • Weather

    If Stock Rvideo. Wewill displaturn these

    Set Stealtsensor ha

    r, Stock, Br

    eadout Text eather Readoay a weather e ON and OFF

    th Mode to Os been trigge

    reathalyzer

    is set to ON, aout Text will dicon correspoF here. 

    ON to run the ered. Use this 

    r Read-Out

    a numeric disdisplay a briefonding to the

    Magic Mirrorif you need t

    23

    s & Stealth

    splay of stockf text forecas weather fore

    r in stealth mthe element o

    h Mode

    k performancest while the wecast while th

    ode meaningof surprise in 

    e will display weather videohe weather v

    g that videos wyour installat

    along with tho plays. Weathideo plays. Yo

    will play onlytion. 

    he stock her Icon ou may 

     when a 

  • LED Con

    Choose “I

    “Indicator

    LED1 (BluLED2 (GreLED3 (YelLED4 (Red “Flickering LED1 – LE

    ntrol

    ndicators” or

    rs” Mode 

    e) ‐ Lit when een) ‐ Lit whelow) – Lit whed) ‐ Lit when f

    g Fire” Mode

    D4 will flicke

    r “Flickering F

    Breathalyzer n few drinks en buzzed onflat out drunk

     

    r for a fake fir

    Fire” mode fo

    is Ready on Breathaly Breathalyzerk on Breathaly

    re effect. Use

    24

    or the LEDs. “I

    zer and also fr and also foryzer and also

    e high brightn

    Indicators” is 

    for Good Wear OK Weathero for Bad Wea

    ness red LEDs 

    the default m

    ather and Gor and OK Stocather and Bad

    if using this m

    mode. 

    ood Stocks ck Performancd Stock Perfor

    mode. 

    ce rmance 

  • Breatha

    After wiri“ON”.  

    alyzer

    ng up the Alccohol Sensor aand the Breat

    25

    thalyzer Switcch (Switch 5),, set “Switch 5 – Breathalyyzer” to 

  • PacpBo

     

     

    Push the Switalcohol sensocountdown, tproportional tBreathalyzer (only.  

    ch 5 button tr is hot so jushe Magic Mirto your alcoh(it does not p

     

    to start the Brst blow on therror will speakol intake but provide a bloo

     

    reathalyzer. Ye alcohol sensk one of the rplease note tod alcohol con

    Figure 5 – Bre

    26

    You’ll be promsor without tresponses in fthat the Magntent numbe

     

    eathalyzer Res

    mpted to blowtouching it wifigure 5. The ic Mirror Brer) and should

    sponses 

    w into the alcth your moutresponses in athalyzer is nd be used for 

     

     

    cohol sensor. th. At the endfigure 5 will 

    not a professinovelty purp

    The d of the be onal oses 

     

  • Tbt

    Wwtt

    To trigger thebutton, checktrigger if a cha

    With this selewill fade for ttime the user the alcohol le

     Breathalyzerk “Breathalyzeange in alcoh

    ction, the behe number ofshould contivel reading in

    r automaticaler can go off ol level is det

    er icon will apf seconds as snue blowing n figure 5. 

    ly by just blowalso withouttected. 

    ppear when aspecified in thuntil the bee

    27

    wing on the at Swtich 5 trig

    a change in alhe “Countdowr icon has fad

    alcohol sensogger”. In this 

    lcohol level hwn (Seconds)ded away and

    or and not havmode, the Br

    as been dete)” above settd then the Ma

    ving to push areathalyzer w

    ected. The beeings during wagic Mirror w

    a will 

    er icon which ill give 

  • B

    YA

    BMided

    Raobb1w

    Breathalyzer 

    You may  alsoAdditional Ite

    Baseline  Idle Mirror  in  verdle/steady  stexact. When dynamically. D

    Reset  Differealcohol sensoobtain a new back  to  the Bbefore the ne100 and if thewhen the valu

    Calibration S

    o  calibrate  thms” and then

    Value:  Afterbose  mode.tate value whthe BreathalyDefault: 100 

    ence  Allowanor to reset bacbaseline valuBaseline  Idle ext Breathalye Reset Differue is 200 or b

    Settings 

    he  thresholdn “Breathalyz

    r  hooking  up  While  in  vehen no alcohyzer run each

    nce: When  thck to the origue dynamicallValue. This  szer reading cence Allowanelow. Default

    s  of  the  resper Calibration

    p  the  Breathaerbose  modehol  is near  thh time,  it will

    he  Breathalyginal Baselinely each time, setting determcan take placnce is set to 1t: 100 

    28

    ponses.    To n and Settings

    alyzer,  set  the,  look  for  the Breathalyzl obtain a new

    zer  has  detee Idle Value. Tit is not necemines how  ce. For examp100, then the 

    change  the s”. 

    he  configuratthe  Alcohol zer. The valuew baseline va

    ected  alcoholTo save time essary that thclose  the alcople, with the Breathalyzer

    default  setti

    tion  programSensor  box e you enter dalue (when n

    l,  it  can  takeand because he alcohol senohol  sensor  rdefault Baser will be ready

    ngs,  click  “C

    m  and  run  thand  then  endoes not neeno alcohol  is 

    e  some  timethe Breathalnsor reset all readings needline  Idle Valuy for the next

    onfigure 

    e Magic nter  the ed  to be present) 

      for  the lyzer will the way ds  to be ue set to t reading 

  • T

    Tr

    F

    B

    F

    C

    E

    Tt

    F

    B

    F

    If

    If

    If

    O

    This text will a

    This  text will reading. 

    Few Drinks O

    Buzzed Offset

    Flat Out Drun

    Countdown (S

    Example:  

    The Idle Basethe user blow

    Few Drinks: D

    Buzzed: Few D

    Flat Out Drun

    f the actual re

    f the actual re

    f the actual re

    Once the actu

    appear while 

    appear when

    ffset: Default

    t: Default: 20

    nk Offset: Def

    Seconds): Du

    line Value is 1ws into the Bre

    Dynamic Alcoh

    Drinks Value (

    k: Buzzed Val

    eading is betw

    eading is betw

    eading is ove

    ual reading ha

    the Breathaly

    n  the Breatha

    t: 100  

    fault: 300 

    ration in seco

    100, the Reseeathalyzer is 2

    hol Basline (2

    (200) + 300 =

    lue (200) + 60

    ween 300 and

    ween 500 and

    r 800, the Fla

    as returned to

    yzer is resetti

    alyzer  is with

    onds for the s

    et Difference 200.  

    00) + 100 = 3

     500 

    00 = 800 

    d 500, the Fe

    d 800, the Bu

    at Out Drunk v

    o 200 or less, 

    29

    ing (has not r

     

    hin  the Reset

    subject to blo

    Allownace is 

    00 

    w Drinks vide

    uzzed video w

    video will pla

    the Breathal

    reached the R

    t Difference A

     

    ow into the Br

     100, and the

    eo will play 

    will play 

    yzer will be r

    Reset Differen

    Allowance an

    reathalyzer. D

    e dynamic ba

    eading for th

    nce Allowance

    nd  ready  for  t

    Default: 5s 

    seline readin

    e next readin

    e yet). 

    the next 

    g before 

    ng. 

  • C Te

     

     

    Custom Aud

    The Magic Mievents.  Click 

    Select “Use T

    dio Mode (T

    rror features “Configure A

    Text to Speech

    Text to Spe

    a Text to Spedditional Item

    h”.  Enter you

    eech and U

    eech mode thms” and then

    ur desired res

    30

    User Supplie

    hat allows you“Custom Aud

    sponses for ea

    ed MP3s)

    u to define yodio & Text to 

    ach sensor ev

    our own respoSpeech Mod

     

    vent and click

     

    onses to the se”. 

    k “Save”.  

    sensor 

  • Y

    C

       

    You can also s

    Click “Browse

    supply your o

    e Custom Aud

    own MP3 file. 

    dio Files” to li

    Select “Use C

    sten to the c

    31

    Custom MP3s

    urrent sound

    s”. 

     files.  

     

  • Cm

     

    Over‐write th

    Check “Lipsynmovements w

         

    e desired MP

    nc Enabled” towill not be syn

    P3 files with y

    o enable the nced to the au

    our own. 

    lipsync featurudio. 

    32

    re. If this is noot checked, a 

    a video will play but the lip

    psync 

  • U Us SF 

     

    Using the T

    Using the Twispeak your Tw

    Select “ON” nFollow the pro

    Twitter Fea

    tter feature, weets. This fe

    next to Twitteompts enterin

    ature

    you can autoature is by de

    er Feature andng your Twitt

    omatically Tweefault turned 

    d then link yoter username

    33

    eet your Breaoff. 

    our Twitter ac and passwor

    athalyzer resu

    ccount by clicrd. 

    ults and/or ha

    king “Link Tw

    ave the Magic

    witter Accoun

    c Mirror 

    t”. 

     

  • Iftb

     

    f Twitter is tuthe Magic Mibird will appe

    urned on, yourror will sendar momentar

    ur Twitter accd a Tweet of rily along with

     

    count has beeyour results h a notificatio

    34

    en linked, andeach time thon sound letti

    d “Tweet Myhe Breathalyzing you know

     

    y Breathalyzezer button  is w the Tweet h

    r Results” is cpressed. Theas been sent

     

    checked, e Twitter . 

  • Ti

    Y“

    Tweets postednclude the al

    You may  also“Breathalyzer

    d to your Twicohol sensor 

    o  customize r Calibration 

    itter home pavalue in the T

    the  verbageand Settings”

    age. You can cTweet. 

    e  of  the  Brea”. 

    35

    customize the

    athalyzer  Tw

    e Tweet text 

    weets.  Click  “

    and also deci

    “Configure  Ad

     

    ide whether o

    dditional  Item

    or not to 

     

    ms”  and 

  • M

     

    Modify the text as desired. 

     

    36

     

  • U“MsUt

    Ay“M

    Using  the  de“speakmirror”Magic Mirror”search term tURLs are not term. 

    Alternatively, your Twitter a“Check for NeMy Tweets” w

    efault  setting” while check” will result ino any keyworspoken. Unc

    you may alsoaccount. Upoew Tweets Evwill limits resp

    gs,  the  Magking Twitter en the Magic Mrd you like. Tcheck  “Don’t 

    o enter your un starting up,ery” setting (ponses to just

    gic  Mirror  wevery 10 secoMirror speakinhe Magic MirSpeak  Searc

    username and, the Magic Mdefault is 10 t Tweets auth

    37

    ill  speak  (usonds. For exang “hello fromrror automatch Term”  to 

    d password toMirror will speseconds), spehored by you.

    sing  Text  toample, the Twm the Magic Mically filters ohave  the Ma

    o have the Meak your mosteak any new T. 

    o  Speech)  anweet “speakmMirror”.  Youout any word agic Mirror a

     

    Magic Mirror st recent TweeTweet.  Chec

     

    ny  Tweet  comirror hello f may also chacontaining hlso  speak  the

    speak Tweets et and then pking “Announ

    ontaining from the ange the ttp:// so e  search 

    from per the nce Only 

  • Uf+

    T

     

    Webcam Fa

    Using the featface is detecte+Webcam Fac

    Then click the

    acial Recog

    ture, the Maged from a USce w/ Frame”

    e “View Mode

    gnition

    gic Mirror wilB connected ”  to turn on t

    e & Adjust” b

    l play the samwebcam.  Frothis feature.

    button”. You’

    38

    me videos as iom the Mode

    ll be prompte

    it would frome Presets drop

    ed to re‐start 

    m the proximitpdown, select

    the configura

    ty sensor whet  “Normal 

    ation program

    en a 

    m. 

     

  • E

    Yu

    AM

    Exit out and re

    You should nounchecking “D

    Adjust the sizeMirror progra

    e‐launch and

    ow see the weDisplay Webc

    e and positioam, the proxim

    click “View M

    ebcam feed. Ycam Frame”. 

    n of the webcmity videos w

    Mode & Adju

    You may also

    cam feed & frwill now play w

    39

    ust” again.  

    o change the g

    rame to your when a face h

    graphic for th

     liking and thhas been dete

    he picture fra

    en save. Wheected by the w

    me or turn it 

    en you run thwebcam.  

    off by 

    he Magic 

  • S CSmc

    Stand Alone

    Check the “EnSensor Hub/Amode. You wiclicks for Wea

    e Mode

    nable Stand AArduino. Nonell however beather and Sto

    Alone Mode” be of the sensoe able to use ck. 

    box to run thors (switches,the webcam 

    40

    e Magic Mirr, touch, breatfacial recogn

    or in stand althalyzer, proxnition feature,

    lone mode mximity…) will f, Twitter feat

    eaning withofunction in thture, and mou

    out a his use 

     

  • T

    Y

    The Magic Mi

    You may also 

    rror running 

    turn off the s

    in stand alon

    stock and wea

    e mode.  

    ather icons fr

    41

    rom the confiiguration proggram.

  • Q Qp

    Oc

     

     

    Quiz Mode

    Quiz mode capossible answ

    Once quiz moconfiguration

    n be used forwers.  Turn on

    ode has been s while in qui

    r a question a quiz mode fr

    selected, thez mode. 

    and answer scrom the Adva

     following co

    42

    cenario.  Quizanced Configu

    nfigurations a

    z mode suppouration progr

    are made aut

    ort one questram. 

    tomatically, d

     

    tion and three

      

    do not change

    e these 

  • Ts

     

    The answers ashould corres

    are triggeredpond to the c

     by the inputcorrect answe

     

    ts from Switcer. In the exa

    43

    h 2, Switch 3mple below, 

    3, and Switch Switch 5 is th

    5. Now seleche correct ans

    ct which switswer. 

    tch input 

     

  • 44

    Before  you  can  use  quiz  mode,  you’ll  need  to  copy  some  additional  .flv  video  files  into  the  “Install Directory\mirror\videos”  directory  following  the  file  naming  convention  below.  The  videos  directory  for  a Windows  installation  is:  C:\Program  Files\DIY Magic Mirror\mirror\videos  or  C:\Program  Files  (x86)\DIY Magic Mirror\mirror\videos for 64‐bit Windows. 

    Mode  File Name  Function 

    Princess  video1_princess.flv video2_princess.flv video3_princess.flv proximity1_princess.flv video4_princess.flv quizloop_princess.flv * 

    Correct answer or incorrect answer Correct answer or incorrect answer Correct answer or incorrect answer Clue Question Ready to Answer question Video that loops after question has been asked and after wrong answer  

    Pirate  video1_pirate.flv video2_pirate.flv video3_pirate.flv proximity1_ pirate.flv video4_pirate.flv quizloop_pirate.flv * 

    Correct answer or incorrect answer Correct answer or incorrect answer Correct answer or incorrect answer Clue Question Ready to Answer question Video that loops after question has been asked and after wrong answer 

    Halloween  video1_halloween.flv video2_halloween.flv video3_halloween.flv proximity1_ halloween.flv video4_halloween.flv quizloop_halloween.flv * 

    Correct answer or incorrect answer Correct answer or incorrect answer Correct answer or incorrect answer Clue Question Ready to Answer question Video that loops after question has been asked and after wrong answer 

    Insult  video1_insult.flv video2_insult.flv video3_insult.flv proximity1_ insult.flv video4_insult.flv quizloop_insult.flv * 

    Correct answer or incorrect answer Correct answer or incorrect answer Correct answer or incorrect answer Clue Question Ready to Answer Question Video that loops after question has been asked and after wrong answer  

    Custom Audio 

    video1_tts.flv video2_tts.flv video3_tts.flv proximity1_tts.flv video4_tts.flv quizloop_tts.flv * 

    Correct answer or incorrect answer Correct answer or incorrect answer Correct answer or incorrect answer Clue Question Ready to Answer Question Video that loops after question has been asked and after wrong answer 

     

    *IMPORTANT: The quizloop_character.flv videos must have a navigation cue point called idle_end or these videos will not loop. See the section “Customizing the Magic Mirror with your own Videos” for instructions to create this cue point. 

    The proximity2_character.flv and proximity3_character.flv video files are not used in quiz mode so you don’t need to over‐write those. 

    Note: If you are using one particular character only, then you’ll need to just over‐write the video files for just that character.  

       

  • 45

    The flowchart below illustrates the flow of quiz mode and which video files play corresponding to which sensor inputs. In this example flow, Switch 5 was selected in the Advanced Configuration program as the correct answer.

    Triggered By Proximity Sensor Range 1

    Question/Clue Video Plays

    proximity1_character.flv

    Quiz Loop Video Plays

    quizloop_character.flv

    User MakesWrong Choice

    Switch 2

    User MakesWrong Choice

    Switch 3

    User SelectedRepeat Ready to Answer Question

    Switch 1

    Try AgainVideo Plays

    video1_character.flv

    Try Again Video Plays

    video2_character.flv

    Question is Repeated

    video4_character.flv

    Idle VideoPlaying

    idle_character.flv

    User MakesRight Choice

    Siwtch 5

    Correct Choice Video Plays

    video3_character.flv

    Start Over

    Quiz LoopVideo Plays

    quizloop_character.flv

    Triggered By Switch 1

    Ready to Answer Video Plays

    video4_character.flv

    Start Timer

    Timer Up

     

    Figure 6 – Quiz Mode Flow  

    Proximity Sensor Range 2 is not used for quiz mode, only proximity sensor range 1 triggers the quiz question video.   

  •  Iu

    V

    In

    R

    C

    W

    V

    c

    WQ

    O

    Wp

    T

    Wto

    T

     

    n the examplused: 

    Video Function 

    nitial Quiz/Clue 

    Ready to Answer

    Correct Answer V

    Wrong Answer V

    Video loop that p

    character = princ

    While in quiz Question Vide

    Only proximit

    While in quiz playing. 

    There is no te

    While the “Retriggered by tover while the

    The touch sen

    e shown in Fi

    Question Video 

    r Question Video

    Video 

    Video 

    plays while waiti

    cess, pirate, hallo

    mode, the aneo” from Swit

    ty range 1 is u

    mode, the an

    ext to speech 

    eady to Answehe proximity e user is stand

    nsors will func

    igure 6 with t

    (From Proximity

    o (From Switch 1

    ing for the user 

    oween, insult, an

    nswer videos tch 1. 

    used in quiz m

    nswer videos 

    or customer 

    er Question Vsensor plays ding in front 

    ctional as nor

     

    the correct an

    y Sensor) 

    1) 

    to select the cor

    nd tts

    will not play 

    mode, proxim

    will not play 

    MP3 capabili

    Video”  can beonly once. Thof the proxim

    rmal during q

    46

    nswer set to S

    rrect answer 

    until the que

    ity range 2 is 

     

    until the “Rea

    ty for quiz mo

    e repeatedly his is so the qmity sensor th

    uiz mode. 

    Switch 5, the 

    Video File N

    proximity1_

    video4_char

    video3_char

    video1_char

    quizloop_ch

    stion has play

    not used. 

    ady to Answe

    ode, only cus

    triggered viaquestion videohinking about 

    following file

    Name 

    _character.flv 

    racter.flv 

    racter.flv 

    racter.flv and vid

    haracter.flv 

    yed the “Read

    er Question V

    stom videos c

     Switch 1, theo does not kethe answer. 

    e names shou

    deo2_character.

    dy to Answer

    Video” has fin

    can be used.

    e quiz questioeep playing ov

    uld be 

    .flv 

    ished 

    on video ver and 

  • P

    TMts 

     

     IMmi  

    Photoboo

    To use the PhMirror Sensorthe toggle swswtich to  +5V

    n this exampMagic Mirror mounted somnstallation. 

    oth Featur

    otobooth fear Hub. The eaitch to Pin 9 oV on the screw

    le, the toggleSensor Hub c

    mewhere else 

    re 

    ature, a togglesiest way to don the screw w terminal. 

    e switch is attacase but it canexternally in 

     

    e switch (not do this is to uterminal bloc

    ached to the n also be your 

    47

    a momentaryuse the screw ck (D in the d

    y switch) mus terminals coiagram below

     

    st be wired uonnections anw) and the oth

    p to the Magnd wire one eher end of th

    gic nd of e toggle 

     

  • T–r 

     T 

    To turn on the– Photoboothresults with a

    To customize 

    e Photoboothh (w/ Webcamn HD Webcam

    the Photobo

    h feature, laum)”.  The Photm. 

    oth, select “C

    nch the Advatobooth requ

    Configure Add

    48

    nced Configuuires a webca

    ditional Items

    uration program to take the

    s”, and then c

    am and selece pictures, yo

    click “Photobo

     

    ct “ON” for “Sou’ll get the be

     

    ooth”.  

    Switch 4 est 

  •    CXod Wtb 

     

    Check “EnableX‐10 componeon the X‐10 mdefault addre

    With the lightthe Photoboobeen taken, th

    X‐10 Plu

    Receives theover RF from

    e X‐10 Lightinents below (pmodules with ss is A4. 

    ting control feoth start buttohe lamp will a

    ug‐in RF Base 

     e X‐10 commm the Sensor 

    ng Control” topurchased septhe “X‐10 Ho

    eature enableon has been pautomatically

    ands Hub. 

    Plugsen

    o turn on the parately). Be use Code” an

    ed, the lamp ppressed (duriny turn off. 

    X‐10 Firec

    s into the Mands X‐10 RF co

    Plug‐

    49

    lighting contrsure and alsond “X‐10 Unit 

    plugged into ng the countd

    cracker CM17    

       

    agic Mirror Seommands to ‐in RF Base

    rol feature. Fo match the XCode” in the

    the LM465 Ladown) and th

    7A 

    ensor Hub, the X‐10 

    or this featurX10 house ande configuratio

    amp Module hen when the

    X‐10 LM46

    Plug a lamp

    re, you’ll needd unit code an program. T

    will turn on we last picture h

    65 Lamp Mod 

       

    p into the LM

    d the  ddress The 

    when has 

    dule 

    465  

  •  CPu 

     EPPm If8 If Ifyi Sp Wv “t I “t

    Check “EnablePhotobooth isuse LED is LED

    Example LED Photobooth. TPhotobooth ismeans the Ph

    f “Enable Prin8.5 x 11 inche

    f “Saved Indiv

    f “Include Cuyour own logomage dimens

    Select the Wepictures and p

    Webcam FPS video in which

    “Count Down the Photoboo

    ncrease “Sho

    “Photos Previthey’ve been 

    e LED controls idle and whD 4 (pin 12 on

    indicator boxThe green LEDs in idle modeotobooth is i

    nting” is checes are support

    vidual Photos

    stom Logo” iso, simply ovesions. 

    ebcam Resoluprints. 

    is the framesh case you ca

    From” is the oth. 

    ot Delay” if yo

    ew Duration”taken. 

    ” to turn on ten it is in usen the screw te

    x for the D means the e and the redn use. 

    ked, the Photted. 

    s” is checked,

    s checked, thr‐write this fi

    ution correspo

    s per second. n reduce. 

    countdown t

    ou want an ad

    ” is the length

    the LED contr. The idle LEDerminal block

     

     LED 

    Wirof twirecon

    tobooth will p

     the Photobo

    e Photoboothle with your o

    onding to you

    Leave the de

    time in secon

    dditional dela

    h of  time the

    50

    rol feature. TwD is LED 3 (pin). 

    e the long leahe In Use LEDe the two shonect to the G

    print to your 

    ooth will save

    h will display own logo. Ens

    ur webcam. T

    fault of 20 un

    nds after the k

    y in between

     Photobooth 

    wo LEDs can bn 11 on the sc

    ad of the idle D to Pin 12 onort leads of thGND connectio

    default printe

     pictures to t

    the logo in thsure the repla

    The higher the

    nless you are 

    keyboard or b

    n photo takes

    will display t

    be wired to increw termina

     LED to Pin 11n the screw tehe LEDs togeton on the scr

    er. Paper size

    he indicated 

    he upper left acement file 

    e resolution w

    experiencing

    button has be

    the all photos

    ndicate whenl block) and t

    1 and the lonerminal blockther and thenrew terminal 

    es of 4 x 6 inc

    file path. 

    hand corner.is exactly the

    will produce b

    g sluggish web

    een pressed t

    s together aft

    n the the in 

    g lead k. Then n block. 

    hes and 

    . To add e same 

    better 

    bcam 

    to start 

    er 

  •  “r“ Ifb Ifp 

     Y 

     

    “Enable Photorecognizes a f“Proof Preview

    f you’d like tobackground o

    f “Overlay Baprintout will l

    You may custo

    obooth Start face. Note thiw Duration” i

    o add a custooverlay image

    ackground Imook like this: 

    omize the sta

    on Webcam Fs feature is stis how long th

    m image to t with your ow

    age” is check

    art up text tha

     

    Facial Recogntill a bit expehe photostrip

    he phtostrip wn file and en

    ed, the 

    at is displayed

    51

    nition” will serimental,  somp proof is disp

    print, then chnsure to keep

    If “Overlprintout 

     

    d in the Photo

    t the Photobomeones it wilplayed. 

    heck “Overlayp exactly the s

    lay Backgrount will look like

    obooth by ed

    ooth to start ll trigger whe

    y Backgroundsame image s

    nd Image” is e this: 

    diting the “Sta

    when the Wen there is no 

    d Image”. Repsize dimensio

    not checked,

    art Up Text” f

    ebcam face. 

    place the ns.  

     the 

    field. 

  • StMP 

     E 

     

    Simply flip theto Magic MirrMagic Mirror Photobooth m

    Either press th

    e toggle switcror mode. Themode and thmode. 

    he space key 

    ch to change tere are four cen toggle the

    on your keyb

    to Photobootcharacters alse switch for P

    board or the B

    52

    th mode. Who in the Phothotobooth m

    Breathalyzer b

     

    en done, flip tobooth. Selemode and that

     

    button to init

    the toggle swct the desiredt character w

    tiate the Phot

    witch again tod character w

    will be selected

    tobooth. 

    o return while in d in 

  • S Y

    L

    Setting the

    You are now r

    Launch “Magi

    Magic Mir

    ready to set t

    ic Mirror Adv

    ror for Perm

    he Magic Mir

    anced Setup”

    manent Op

    rror for perm

    ” an

    53

    eration

    anent operat

    d set Verbose

    tion.  

    e Mode to OFFF. 

  • At

    Ifh“

    Add a shortcuthen Re‐Boot.

    f  you  havhttp://airdow“Disable Upda

    ut to “Run Mir. 

    ven’t  alreadwnload.adobeates”. If you d

    rror.exe” on t

    dy  done .com/air/appdo not do this

    the PC or to “

    so,  turn plications/Sets, you’ll get an

    54

    “mirror” on th

    off  Adobe tingsManagen annoying A

    he Mac and L

    AIR  autoer/SettingsMadobe AIR upg

    Linux to your 

    omatic  updanager.air agrade prompt

    Start‐Up Fold

    ates  by  iand  then t every so oft

    der and 

    nstalling clicking en. 

  • 55

    Configuration Settings Configuration Settings 

    Enter Registration Code: Enter your registration code here to clear the demo box.  

    Sensor Hub Version: If you built the Sensor Hub yourself, then leave the default. Default: Version 3.0 

    Arduino Version: Set to ATMega168 if your Arduino uses the ATMega168 chip or ATMega328 if your Arduino uses the ATMega328 chip. Purchased Magic Mirror Sensor Hubs use the ATMega328. 

    Magic Mirror Mode: Sets the Magic Mirror to Princess, Pirate, Halloween, or Insult Mode. If wired up, the Character Select Potentiometer will over‐ride this setting. 

    Idle Videos: Set Idle Videos to OFF to run the Magic Mirror in stealth mode meaning that videos will play only when a sensor has been triggered. Use this if you need the element of surprise in your installation. Default: ON 

    Weather Zip Code: Enter your zip code to be used for the weather forecast. 

    Unit of Measure: Weather unit of measure, pick Fahrenheit or Celsius. Default: Fahrenheit 

    Forecast Cutoff: If the current time is before this time (military 24 hr), the current day forecast is used and if the current time is after, tomorrow's forecast is used. For the default of 11, if the current time is before 11:00 AM, the current day forecast will be used. If the current time is after 11:00 AM, then tomorrow’s forecast will be used. Default: 11  

    Good Weather Threshold: The temperature that defines a sunny day which triggers the good weather video. With the default settings of 70, the good weather video will play if the temperature forecast is 70 or above. Default: 70  

    Video Resolution: Set to low‐res if you are running on older PC hardware and the video is sluggish. Default: High‐Res 

    Orientation: Sets the Magic Mirror to Portrait or Landscape mode. Default: Portrait 90 

    Enter Stock Symbol: Enter as many stock symbols as you like, you can also enter just one stock too. 

    Chapter

    4

  • 56

    Good Stock Threshold: Threshold for good stock performance. If set to 3, then the good stock video will play if the sum gain of your portfolio is 3 or greater.  

    Bad Stock Threshold: Threshold for bad stock performance. If set to ‐1, the bad stock video will play if the sum decrease of your portfolio is ‐1 or less. If it's in between this and the good stock threshold, then the ok stock video will play.  

    Picasa/Google ID: If using the Slide Show Feature (Digital Switch 4), enter your Picasa/Google username 

    Picasa Albums: Displays your Picasa Albums, pick one to use for the Slide Show Mode  

    Slide Duration: Amount of time in seconds before the next Picasa picture is displayed. Default: 10 

    Switch 1 ‐ Door Video: Hook up to any on/off switch. Plays a video letting you know someone is at the door. 

    Switch 2 ‐ Weather Forecast: Hook up to any on/off switch (toggle or momentary), plays the weather forecast 

    Switch 3 ‐ Stocks: Hook up to any on/off switch (toggle or momentary), reports stock performance 

    Switch 4 ‐ Picasa Slide Show: Turn On if using the Picasa Slide Show feature. This switch must be a toggle on/off switch (standard light switch, reed switch) and cannot be a momentary on/off switch. The slide show will play when the switch is off and will return to normal Magic Mirror mode when the switch is on. 

    Switch 5 ‐ Breathalyzer: Turn On if using the Breathalyzer function, both the alcohol sensor and this switch must be connected 

    X‐10 Lighting Control: On Turns on the X‐10 lighting control, Off turns off 

    Lights House Code: Select a letter between A and P that matches the X‐10 house code on your X‐10 device. 

    Lights Unit Code: Select a number between 1 and 16 that matches the X‐10 unit code on your X‐10 device. The combination of house code and unit code is the device X‐10 address (Ex. A2). 

    ON/OFF House Code: Touch Sensor 3 triggers this. Select a number between 1 and 16 that matches the X‐10 unit code on your X‐10 device. The combination of house code and unit code is the device X‐10 address (Ex. A4). 

    ON/OFF Unit Code: Touch Sensor 3 triggers this. Select a number between 1 and 16 that matches the X‐10 unit code on your X‐10 device. The combination of house code and unit code is the device X‐10 address (Ex. A4). 

    Proximity Sensor: On turns on the Proximity Sensor. Set to Off if the proximity sensor is not hooked up.  

    Proximity 1 Lower Range: The lower distance range in roughly inches for the proximity sensor to trigger the first proximity video.  

    Proximity 1 Upper Range: The upper distance range in roughly inches for the proximity sensor to trigger the first proximity video.  

    Proximity 1 Time: How long the subject stands within the lower and upper distance limit before triggering the proximity 1 video, 100 is approx. 3 seconds. If 6 seconds is desired, then use 200. Default: 100  

  • 57

    Proximity 2 Lower Range: The lower distance range in roughly inches for the proximity sensor to trigger the second proximity video.  

    Proximity 2 Upper Range: The upper distance range in roughly inches for the proximity sensor to trigger the second proximity video.  

    Proximity 2 Time: How long the subject stands within the lower and upper distance limit before triggering the proximity 2 video, 100 is approx. 3 seconds. If 6 seconds is desired, then use 200. Default: 100  

    Prox 2 Can Play Before Prox 1: If set to ON, either proximity video will play depending on which distance range was triggered. If set to OFF, the first proximity video must play before the second proximity video. Default: ON 

    Touch Sensor 1 – Weather Forecast: On turns on Touch Sensor 1. Set to Off if this input is not hooked up to a Touch Sensor.  

    Touch Sensor 2 ‐ Stocks: On turns on Touch Sensor 2. Set to Off if this input is not hooked up to a Touch Sensor.  

    Touch Sensor 3 – X10 ON/OFF: On turns on Touch Sensor 3. Set to Off if this input is not hooked up to a Touch Sensor. This will send an X‐10 command to the X‐10 ON/OFF address. 

    Character Select Potentiometer: Yes enables the mirror mode (Princess, Pirate, Halloween, or Insult) to be selected on the fly via the potentiometer which will override the above mirror mode software setting. If set to no, then the mirror mode is selected via the above mirror mode software setting and cannot be changed on the fly.  

    Magic Mirror Sensor Hub Port: The Sensor Hub network/com port. PC users use 5332 for com2, 5333 for com3, 5334 for com4 and so on. Mac and Linux users will always set to 5333. IMPORTANT: YOU MUST ENTER THIS CORRECTLY 

    Startup Delay (seconds): Delays program execution. Only change in case of sensor timing issues. Default: 0 

    Verbose: Yes turns on verbose mode which shows the sensor readings, you'll use this during installation and sensor calibration. Once done, set to no for normal operation. 

    Stock Readout Text: Displays a numeric stock performance readout with the stock video. For example, if your stock portfolio was up +3.2 for the day, then 3.2 will display when the stock video plays. The text will be in green if the gain/loss was in the Good Stock Threshold range, white for little or no change, and red if within the Bad Stock Threshold range. Default: On 

    Weather Readout Text: Displays a brief text forecast while the weather video plays. Default: On 

    Weather Icon:  Displays a weather icon corresponding to the weather forecast while the weather video plays. Default: On 

  • 58

    Doorcam:  If set to On and Switch 1 – Door Switch is also set to On, an IP camera video feed will appear along with the door switch video. 

    IP Camera URL or IP address:  Enter the web address of the desired IP camera feed. IMPORTANT: Do not enter “http://” in front of the address. 

    Port:  The network port of the IP camera feed. 

    IP Camera Make:  The manufacturer of the IP camera. The webcam feed varies by manufacturer so you must set this correctly. 

    Video Stream Path:  You will only need to enter this if the IP Camera Make is set to “Other” 

    IP Camera Username:  Only if the IP Camera requires a username and password to view. 

    IP Camera Password:  Only if the IP Camera requires a username and password to view. 

    Baseline Idle Value: After hooking up the Breathalyzer, set the configuration program and run the Magic Mirror in verbose mode. While in verbose mode, look for the Alcohol Sensor box and then enter the idle/steady state value when no alcohol is near the Breathalyzer. The value you enter does not need to be exact. When the Breathalyzer run each time, it will obtain a new baseline value (when no alcohol is present) dynamically. Default: 100 

    Reset Difference Allowance: When the Breathalyzer has detected alcohol, it can take awhile (more than 5 minutes in some cases) for the alcohol sensor to reset back to the original Baseline Idle Value. To save time and because the Breathalyzer will obtain a new baseline value dynamically each time, it is not necessary that the alcohol sensor reset all the way back to the Baseline Idle Value. This setting determines how close the alcohol sensor readings needs to be before the next Breathalyzer reading can take place. For example, with the default Baseline Idle Value set to 100 and if the Reset Difference Allowance is set to 100, then the Breathalyzer will be ready for the next reading when the value is 200 or below. Default: 100 

    Few Drinks Offset: Default: 100  

    Buzzed Offset: Default: 300 

    Flat Out Drunk Offset: Default: 600 

    Countdown (Seconds): Amount of time in seconds for the subject to blow into the Breathalyzer. Default: 8 

  • 59

    Output LEDs (Optional)

    LED Sensor Hub Pin Indicator Mode Flickering Fire Mode

    LED 1 8 Lit when Breathalyzer is Ready Flickering Fire

    LED 2 10

    Lit when few drinks on Breathalyzer and also for Good Weather and Good Stocks

    Flickering Fire

    LED 3 11

    Lit when buzzed on Breathalyzer and also for OK Weather and OK Stock Performance

    Flickering Fire

    LED 2 12

    Lit when flat out drunk on Breathalyzer and also for Bad Weather and Bad Stock Performance

    Flickering Fire

    Proximity LED 13

    This LED will blink providing a visual indicator that the subject is within the proximity range defined by the configuration program. It will then turn solid when the Proximity Videos are playing and turn off when the Proximity Videos have stopped playing.

    This LED will blink providing a visual indicator that the subject is within the proximity range defined by the configuration program. It will then turn solid when the Proximity Videos are playing and turn off when the Proximity Videos have stopped playing.

  • C

    Tv 1ch 2iWe 3

    Customizing

    The  DIY Magvideos: 

    1 You  can  ucharacters,  phttp://www.im

    2 Record  thmagineerieinWindows useediting progra

    3 Encode th

    g the Magic M

    ic Mirror wa

    se  any  videopurchase  thmagineeriein

    he  audio  sepg using  yourrs) to record am. Rotate th

    he video in Ad

    Mirror with

    as  designed  t

    o  you  like  fore  character g.com/ 

    arately.  Thenr  keyboard  tothe performahe character 9

    dobe .FLV for

    your own Vi

    to  allow  the 

    r  the  animat(each  cha

    n manually mo  sync  the auance. Then as90 degrees as

    mat using the

    60

    ideos

    animations/v

    tions.  If  you'dracter  is  $

    move  the moudio. Use a  vssemble the as per Pirate sc

    e settings bel

    videos  to  be

    d  like  to  add15)  you  wo

    outh movemvideo  captureaudio and vidcreen shot on

    ow. Do not u

    e  personalize

    d  your  own  aould  like  to

    ments  of  the e program  (Feo together in the next pag

    use the .F4V fo

    d.  To  add  yo

    audio  to  the o  personaliz

    digital  puppFRAPS works in your favorige. 

    ormat. 

    our  own 

    existing ze  from 

    pet  from well  for ite video 

  • 4M

     cya

     

    4 Overwrite Mapping” sec

    If you  replaccreate a Navigyou don’t do tat least 10 sec

    the desired vction for the f

    e one of  thegation cue pothis, your idleconds before 

    videos  in “Insfunction of ea

    e  idle videos oint (not Evene video will pthe end of th

     

    stall Directoryach video file.

    (these are  thnt type cue polay just oncehe video. 

    61

    y\mirror\vide. 

    he ones  that oint) called “iand not loop

    eos” with you

    loop when  tdle_end” towp. IMPORTANT

    ur own. See t

    the mirror  is wards the endT: Create the

    the “Sensor t

      idle), you md of your idle e navigation c

    to Video 

    must also video. If ue point 

  • IwA

    Ab

    M

    P

    P

    H

    I

    C

     AT“

      

    n  addition,  yweather, stocAdvanced Con

    And then copbelow.  

    Mode 

    Princess 

    Pirate 

    Halloween 

    nsult 

    Custom Audio 

    As  an  exampTouch 1 is pre“video3_insul

    you may  alsock, and x10  funfiguration pr

    py your custo

    File Na

    video1_video2_video3_video1_video2_video3_video1_video2_video3_video1_video2_video3_video1_video2_video3_

    le, while  in  Pessed, the “vt.flv” video w

    o  change  the unctions. Cherogram to use

    m .flv videos 

    me 

    _princess.flv _princess.flv _princess.flv _pirate.flv _pirate.flv _pirate.flv _halloween.flv _halloween.flv _halloween.flv _insult.flv _insult.flv _insult.flv _tts.flv _tts.flv _tts.flv 

    Princess Modideo1_princewill play.

    touch  sensoeck the respee this feature

    into “Install 

    de  (selected ess.flv” video

    62

    or  inputs  to pective “Custoe. 

    Directory\mi

    by  turning  thwill play. Wh

    play  custom om VideoX  Ins

    irror\videos” 

    he  characterhile in Insult m

    videos  you  sstead” boxes

    following th

    r  select  knobmode and To

    supply  insteas  in the Magi

    e naming con

    /potentiomeouch 3 is pres

    d of  the c Mirror 

    nvention 

    ter)  and ssed, the 

  • 63

    Sensors to Video Mapping (Videos must be in Adobe .FLV format) For all videos except Touch Sensor 3 – X10/ON/OFF , switch 4 – Picasa slideshow, and the Breathalyzer videos, the lights will turn off when the video first begins to play and then turn back on when the video has completed if X‐10 lighting control has been turned on. 

    Sensor Triggered Video Filename Proximity Proximity 1, Proximity 2, and Proximity 3

    Videos

    proximity1_princess.flv proximity2_princess.flv proximity3_princess.flv proximity1_halloween.flv proximity2_halloween.flv proximity3_halloween.flv proximity1_pirate.flv proximity2_pirate.flv proximity3_pirate.flv proximity1_insult.flv proximity2_insult.flv proximity3_insult.flv

    Touch 1 - Weather

    Plays one of three videos depending on the weather forecast

    weather_good_princess.flv weather_ok_princess.flv weather_rain_princess.flv weather_good_halloween.flv weather_ok_halloween.flv weather_rain_halloween.flv weather_good_pirate.flv weather_ok_pirate.flv weather_rain_pirate.flv weather_good_insult.flv weather_ok_insult.flv weather_rain_insult.flv

    Touch 2 - Stock Plays one of three stock videos depending on your stock portfolio performance for the day

    stock_up_princess.flv stock_no_change_princess.flv stock_down_princess.flv stock_up_halloween.flv stock_no_change_halloween.flv stock_down_halloween.flv stock_up_pirate.flv stock_no_change_pirate.flv stock_down_pirate.flv stock_up_insult.flv stock_no_change_insult.flv stock_down_insult.flv

    Touch 3 X-10 Generic ON/OFF

    x10_off_princess.flv x10_on_princess.flv x10_off_halloween.flv x10_on_halloween.flv x10_off_pirate.flv x10_on_pirate.flv x10_off_insult.flv x10_on_insult.flv

    Switch 1 Door Video

    doorbell_princess.flv doorbell_halloween.flv doorbell_pirate.flv doorbell_insult.flv

    Switch 2 Weather

    weather_good_princess.flv weather_ok_princess.flv weather_rain_princess.flv weather_good_halloween.flv weather_ok_halloween.flv weather_rain_halloween.flv weather_good_pirate.flv weather_ok_pirate.flv

  • 64

    weather_rain_pirate.flv weather_good_insult.flv weather_ok_insult.flv weather_rain_insult.flv

    Switch 3 Stock

    stock_up_princess.flv stock_no_change_princess.flv stock_down_princess.flv stock_up_halloween.flv stock_no_change_halloween.flv stock_down_halloween.flv stock_up_pirate.flv stock_no_change_pirate.flv stock_down_pirate.flv stock_up_insult.flv stock_no_change_insult.flv stock_down_insult.flv

    Switch 4 Picasa Slide Show

    Picasa Slide Show

    Switch 5 Breathalyzer

    drink1_princess.flv drink2_princess.flv drink3_princess.flv drink4_princess.flv drink1_halloween.flv drink2_halloween.flv drink3_halloween.flv drink4_halloween.flv drink1_pirate.flv drink2_pirate.flv drink3_pirate.flv drink4_pirate.flv drink1_insult.flv drink2_insult.flv drink3_insult.flv drink4_insult.flv

  • 65

    Hardware Installation Tips Magic Mirror Installation Examples 

    Playhouse Installation 

    Chapter

    5

  • 66

    Halloween Party Running in stealth mode, the Magic Mirror appears as a normal bathroom mirror. Guests get a surprise when approaching the sink to wash their hands. 

    Haunted House Prop The Magic Mirror at the bottom of a well. 

  • 67

    Hotel Installation The Magic Mirror speaks the weather forecast to hotel guests. 

    Maker Faire Exhibit

  • B 1s C1TcPcr

    2tr

    3p

    4Mi

    Breathalyzer 

    1. Hot glue thsensor to a 1 ½

    Caution:  Don1 ½” and use AThe alcohol sechemical reacPVC emits a gcauses the alcreading. 

    2. Attach the top opening freducer and 1

    3. Hand out ½pieces for you

    4. Connect yoMagic Mirror nto the mout

    Housing 

    e Seeedstudi½” ABS T‐Pipe

    ’t use anythinABS for this pensor works bction and getsas when heatcohol sensor t

    PVC reducersrom 1 ½” to ½1 to ½” reduce

    ½” PVC risers aur guests. 

    our new BreatArduino Shieth piece. 

    o MQ‐5 alcohe.  

    ng smaller thapart, not PVC.based on a s fairly hot.  ted which to give a false

    s to reduce th½” (1 ½ “ to 1er). 

    as mouth 

    thalyzer to theld and blow 

    hol 

    an . 

    he 1 

    68

  • R

    Fwth

    Recessing the

    Frame out anwall for air cirthe monitor tholes and rou

    e Monitor Wi

     opening perrculation. Useto the wall. Rte the monito

    th‐in the Wa

    r the picture fe a monitor thRotate the moor cable and 

    ll 

    frame dimenhat is VESA monitor 90 degpower to the

     

    69

    sions. Be surmount compatgrees and be  location of t

    re to leave sotible, use a flsure to makehe Magic Mir

    ome room wiush mount Ve which side rror PC.  

    thin the monVESA mount tois up. Drill n

    nitor and o mount ecessary 

     

  • 70

    Build a Custom Box if In‐Wall is not an Option 

  • M

    M

    Mount the PC

    Mount the X‐

    C in an Old Ca

    ‐10 Firecrackecase to s

    ase 

    er and Arduinsave space

     

    no inside the P

    71

    PC 

     

  • R

    U

    Recess the Pr

    Use RTV Silico

    roximity Sens

    one Adhesive 

    sor in the Dry

    or Epoxy to s

    ywall 

    secure the pro

     

    72

    oximity sensoor to the backk of the drywall. 

  • F

    h

    For a Real Mi

    http://www.m

    Ba

    rror Look, Us

    mirropane.co

    DIY Magic

    ackside of the

    se a Two‐Way

    m is one supp

    c Mirror Off 

    e two‐way mi

    y Mirror 

    plier of two w

    rror

    73

    way mirrors.

    DIY Magic Mirro

     

    r On 

     

  • F

    Ba

     

    U

    Fake Fireplace

    Build a fake fiand 4. They w

    Use drywall jofirebox te

    replace belowwill all flicker a

    oint compounexture and th

    w the DIY Maat different in

    nd or wood phen black spra

    gic Mirror. Pentervals to sim

     

    uddy for the ay paint

    74

    er Appendix 1mulate a fake 

    1, the LEDs shfire. 

    hould be wireed to Fire LEDD 1, 2, 3, 

  • M

     DT

    Mounting the

    Don’t forget tTouch Sensor 

    Cut hol

    Cov

    Sand witcom

    e Touch Senso

    to measure excable length 

    e in drywall, 

    ver with dryw

    th 150 grit sanmpound, sand

    ors in Drywal

    xactly the loccan be exten

    1.5 inches x 1

    all fiberglass 

    ndpaper. Re‐ad again, and p

    ll 

    ation of the snded up to 10

    1.5 inches

    mesh 

    apply joint paint.

    75

    sensor so you00 feet. 

    Coverthan 1

    u know where

    r hole with a t1/8” thick), glu

     (do not use 

    Cover with

    e it is when th

    thin piece of ue touch sens

    piece a metal dryw

     drywall joint

    Add a sticker

    he drywall is u

    plastic/acrylisor to plastic/

    wall patch kit)

    t compound

    r

    up. The 

    ic (less /acrylic 

    )

  • R FNmt

    Remote PC M

    For remote mNote: VNC runmirror PC andthe VNC serve

    Maintenance 

    maintenance tns on Windowd then the VNer is already i

    o the magic mws XP but notC client on thnstalled by de

    mirror PC, VNt on Windowshe remote coefault.  

    76

    NC is free and s Vista. You’llntrolling PC. I

    works great. need to instaIf using LINUX

     Tightvnc.comall VNC serveX Ubuntu for 

    m is one versier on the magthe magic m

    ion. gic irror PC, 

  • TIf

    P 123A45L6t

       

    Troubf you see this

    Please check t

    1. The Sensor 2. The OS driv3. If you built/Arduino 4.You’ve ente5. For WindowLinux, ser2net6. On Windowthe case, right

    bleshoos message wh

    the following

    Hub/Arduinover has been i/assembled y

    ered the correws and Mac, st is running.  ws, the COM pt click on  and click t

     

    77

    ror, this mea

     port. rror Sensor Hdid the one t

    ub port in theindows, you h

    M9. It will nohe  button to

    r Hub/Arduin

    of the Firmata

    on program uct your firew

    set to COM10o change the 

    no was not fo

    a firmware to

    wall not to blo

    0 or higher. IfCOM port. 

    Chapt

    6und. 

    o the 

    ock). For 

    f this is 

    ter

    6

  • Oi 

     Ft 

     

    On Windows, nstallation dr

    For example, the 4 files. 

    Problem While in verbsensor is spitWeather, stoduring normwas triggered

    The Magic M

    The proximitone is standisensor. 

    Everything evideo does n

    if your instalrive. The four

    if your install

    bose mode, ttting out randock, door videal operation wd 

    Mirror softwar

    ty videos are gng in front of

    lse works butnot play. 

    lation directo files are loca

     

    ation drive is

    he proximity dom distanceeos play randwhen no sens

    re is crashing 

    going off whef the proximit

    t the the stoc

    ory is not on dated in Progra

    s E:\Program 

    Solut

    s Your wirin

    omly sor 

    You’vdoes configsensoconfigIf youare tuis leftoverl

    en no ty 

    Eitheor theis in tProxiverbono onconfigProxi

    k  Mostconfigvalid.

    78

    drive C, then am Files\DIY M

    Files\DIY Mag

    tion proximity seng and also enve got a sensonot have a phguration progors hooked upguration set cu are not usinurned off fromt on with no soading the Mr the proximie distance retthe room fallsmity Upper Lose mode andne in front of guration progmity Upper Lt likely you haguration prog. 

    you’ll need toMagic Mirror

    gic Mirror, th

    nsor is not honsure the proxor turned on hysical sensogram and enap. Check yourcorrectly but ng the Touch Sm the Configusensor, the inMagic Mirror sity sensor is nturned from ts between theLimit settings.d see what dithe proximitygram and moLimit settings ave entered agram and ens

    o edit these f. 

    en change C:

    ooked up corrximity sensorin the configuor hooked up able only inpur wiring if youstill have theSensor/Analouration progrnput will spit osoftware causnot getting +5the proximitye Proximity L. Start the Mastance settiny sensor. Theodify the Proxensuring thean invalid stocsure all your s

    four files to yo

    \ to E:\ in eac

    rectly. Check r is getting pouration progrto it. Run theuts with physu have the e problem. og inputs, ensram. If an anaout random dsing it to cras5V/not wired y sensor whenLower Limit anagic Mirror sogs are returnen run the ximity Lower Ly are out of tck symbol. Stastock symbols

    our 

    ch of 

     

    your ower. ram that e ical 

    sure those alog input data h. correctly n no one nd oftware in ed with 

    Limit and this range. art the s are 

  • 79

    Problem  Solution The Magic Mirror is not turning off and on my X‐10 lights.  

    First ensure you have X‐10 turned on in the configuration program. Then ensure your X‐10 Plug‐in RF Base is plugged in and on the same AC circuit as your X‐10 lamp module or switch. Ensure the X‐10 address set on your X‐10 module matches the X‐10 address in the configuration program.  You can hook up the Touch Sensors to the digital inputs (Switches 1‐4) which will turn off and on the X‐10 lights.  

    The Magic Mirror software is running fine, how do I stop and exit out? 

    The mouse cursor is hidden while the Magic Mirror software is running. On Windows, do an ALT‐F4 to exit out of the Magic Mirror software. 

    Turning the mode select knob does not change the mode (Princess, Pirate, or Halloween). 

    Ensure that the Character Select Potentiometer is turned on in the configuration program.   Also note the Character Select Potentiometer setting over‐rides the software mode select setting from the configuration program. So simply turn the knob to the desired mode and the Magic Mirror will start in this mode every time.  

  • ASAppenSchem

    ndix Amatic

    A – Maggic Mi

    80

    irror SSensorr Hub Wiringg

  • AVAppenVisua

    ndix Bl View

    B – Senw

    nsor W

    81

    Wiring Diagrram

  • AS

     

    AppenSchem

    ndix Cmatic

    C – Sen

    nsor H

    82

    Hub Intternall