Is domotics up to it? - DDD South West

healthyapricotΜηχανική

5 Νοε 2013 (πριν από 3 χρόνια και 7 μήνες)

82 εμφανίσεις


Agenda

45 min


Questions


Introduction


What is Home Automation (domotics)


Different standards


How to control the physical world


Interacting with people


Voice control


Safety

15 min

Introduction

John Price



Next Generation User Group


http://www.nxtgenug.net

Domotics = The science of
Home Automation




The vision
--

since 1985

Is domotics up to it?

What is home automation?

Why a home automation system?

To satisfy the need to increase:


Health, (alarm on a CO detection)


Safety (good lighting to avoid falling)


Security (burglar detection)


Entertain (Access to Music and Movies)


Turning off the power to the TV

and Games Console in the kids
bedroom, when you call them for dinner.



Knowing you are on your way home from holiday, and that the

house is cold and
theres

no hot water and it turning on the heating
so the house is nice and warm ready for your arrival home.


Domotics

starts with the
simple things...


How to control the physical world?

Lots of different standards

Insteon

Z Wave (
zigbee
)

X10

Clipsal (c
-
bus)

Clipsal


Hard wired control

Needs separate data lines from
each device back to a
controller.


Only really viable on new
builds


Extremely reliable, hence used
a lot in big commercial settings


Clipsal


Hard wired control

Clipsal


Hard wired control

Z Wave


Radio controlled only


Insteon



Radio and
powerline


D
evices
are two
-
way, with verified
comms
.



P
owerline

&

radio
signaling

back each other up.



Much
faster than
X10.



Has
a
much bigger
address &

command space
.



Devices
are simulcasting
repeaters.

Insteon

signal repeating pattern


Insteon



Radio and
powerline


D
evices
are two
-
way, with verified
comms
.



P
owerline

&

radio
signaling

back each other up.



Much
faster than
X10.



Has
a
much bigger
address &

command space
.



Devices
are simulcasting
repeaters.

X10


predominantly
powerline

Powerline
(AC)
data transmission

Voltage

Time

Zero cross
point

Burst of static at 120khz

000100010010

X10 Commands

Commands take the form:

<
HouseCode
> <
DeviceCode
> <
FunctionCode
>



A


P 1


16 From the table below

0000

All OFF

Switch off all devices

(same
housecode
)

0001

All LIGHTS ON

Switch on

all lights (with brightness ctrl)

0010

ON

Switch on a device

0011

OFF

Switch off a device

0100

Dimmer down

Reduce brightness of lamp module

0101

Dimmer

up

Increase brightness of lamp module

0111

Extender code

For expansion

1000

Hail request

Poll named device

1001

Hail acknowledge

Acknowledge poll

1010 or 1011

Pre set dim

Return to previous dimmed

state

1101

Status ON

Response to Status request

1110

Status OFF

Response to Status

request

1111

Status Request

Request the status from a named device

X10 Commands

Voltage

Time

Zero cross
point

Burst of static at 120khz

000100010010

<
HouseCode
><
DeviceCode
><
FunctionCode
>


0001



0001



0010


Which is

A 1 ON


(A1 is the device
address
)

Burst of static at 120khz

0001
0001
0010

Powerline

gotchas

Two rules,


Each device must not generate
interference


Each device must accept any
interference presented to it.

Powerline

gotchas


Something is causing interference



Something is sucking up signal

If X10 does not work, its probably because:

Converting across standards

EZX10RF


X10 to
Insteon

converter.


Remember these two standard use the
same protocol, with the
Insteon

theoretically being able to fill the
shortcomings of
powerline

X10 with radio
waves.


Still better to pick one system, or
integrate back at the software stage than
try and integrate the devices directly

New kid on the block

Promising simultaneous
transmission of HD
video, data and low
voltage power (~40v)

Over standard Cat5e/6 cabling

http://
www.hdbaset.org

-

Custom Integrator Show E31

Choosing the right device
for the load..


Lamp modules are
dimmable
.


Only for resistive loads.


Will burn out both lamp module and
the plugged in device if used on
inductive loads.


Appliance modules switch on and
off only.


Can be used for anything

Device Automony
-

Agents

Social

Reactive

Proactive

Intelligence

A
gents everywhere

Or Centralized control

Software

Harmony

www.domialifestyle.com

(
.net
)

Homeseer

www.homeseer.com

Software

Harmony

www.domialifestyle.com

(Perl)

HomeVision

www.automatedhome.co.uk

(proprietary)

Software

mControl

www.embeddedautomation.com




Web interface



Media Center
interface


Initiating

Demo

Sequence


Yellow Alert

But we want to write CODE!

http://www.craigscreations.com/projects/x10net.zip

Just write the string we
worked out earlier to the
serial port…
(what the
heck is a serial port?)

Way too much effort for what we what to do


private static void InitX10()


{



x10 = new X10CM11aController(
HouseCode.A
,



"COM1", 4800,
System.IO.Ports.Parity.None
,



8,
System.IO.Ports.StopBits.One
);



Lamp2 = new X10Lamp(x10, 2);


Appliance1 = new X10Application(x10, 1);




}

Controlling X10 Devices


Appliance1.On();


Appliance1.Off();




Lamp2.On();


Lamp2.Off();



Lamp2.LightLevel=50;


Controlling X10 Devices

Initiating

Demo

Sequence


Yellow Alert

A nice friendly interface

Initiating

Demo

Sequence

Yellow Alert

Listening for commands


using

System.Speech.Recognition
;



SpeechRecognitionEngine

listener
= new
SpeechRecognitionEngine
();

DictationGrammar

gram = new
DictationGrammar
();


listener.LoadGrammar
(gram
);

listener.SetInputToDefaultAudioDevice
();


listener.SpeechRecognized
+=new

EventHandler
<
SpeechRecognizedEventArgs
>(
listener_SpeechRecognized
);



listener.RecognizeCompleted

+= new


EventHandler
<
RecognizeCompletedEventArgs
>(
listener_RecognizeCompleted
);


listener.RecognizeAsync
();


Listening for commands



private

void

listener_SpeechRecognized
(object

sender,











SpeechRecognizedEventArgs

phrase)


{


switch

(
phrase.Result.Text.ToLowerInvariant
())


{


case

"lights

on":


OnRaiseCommandHeardEvent
(new

VoiceCommandArgs
("
LightsOn
"));


break;





case

"lights

off":


OnRaiseCommandHeardEvent
(new

VoiceCommandArgs
("
LightsOff
"));


break;


}


}


Listening for commands



void

listener_RecognizeCompleted
(object

sender,







RecognizeCompletedEventArgs

e)


{


listener.RecognizeAsync
();


}



Initiating

Demo

Sequence

Yellow Alert

What else?

What else?

http://
www.lawnbott.com

What else?

http://
www.irobot.com/uk

What else?

LG
Optimus

7
-

Windows Phone 7 Device can

PLAYTO any other
dlna

device. e.g. TV

What else?

http://www.xbox.com/en
-
GB/kinect

Back to making the tea..

Back to making the tea..












Use an appliance module to switch on the kettle..

?????????

Back to making the tea..
















Or switch on a tea maker with a timer..









Back to making the tea..









But someone still needs to
:


Fill it with water


Put fresh T
-
Bags in


Empty the used ones out and wash up the cups


Fetch your own cake and biscuits

Back to making the tea..

What you really need is one of these!

Consider the human factor

Key Takeaways…


Not just about turning on a light, more about making
life more comfortable.



Can increase safety


think of knowing someone got up
ok.



Can save money


reducing heating and electricity
usage when you’re not at home.



Easy to get going, modules relatively cheap. (£20ish)


Key Takeaways…


Consider PEOPLE!
-

Just because you can automate
something, doesn’t mean you should



Watch out for a new networking standard being trialled


HdbaseT


Safety

Questions?

Thanks for listening

My Blog

http://johnnysblog.net


Media Center SDK (
5.3
)



http
://www.microsoft.com/downloads/details.aspx?familyid=A
43
EA
0
B
7
-
B
85
F
-
4612
-
AA
08
-
3
BF
128
C
5873
E



SAPI
5.3

http://msdn.microsoft.com/en
-
us/library/ms
723627
(v=vs.
85
).
aspx


Insteon



http
://
www.insteon.net/faq
-
home.html#
07

ZWave



http
://
www.z
-
wave.com/modules/ZwaveStart


X
10


http
://
www.x
10
.com/homepage.htm

C
-
Bus


http
://
www.cbusdirect.co.uk


HdbaseT



http://www.hdbaset.org
/


X
10
Library

http
://
www.craigscreations.com/projects/x
10
net.zip