annotate service/arduinoNode/config.n3 @ 191:443d562c7b39

add shop lights config Ignore-this: ecb293862d23ca4183271b83b0fb9d27
author drewp@bigasterisk.com
date Sun, 30 Aug 2015 01:18:46 -0700
parents 5305fe90c09b
children 06795f84fe29
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
177
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
1 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
2 @prefix : <http://projects.bigasterisk.com/room/> .
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
3 @prefix ha: <http://bigasterisk.com/homeauto/> .
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
4 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> .
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
5 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> .
164
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
6
167
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
7
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
8 @prefix board0pin: <http://bigasterisk.com/homeauto/board0/pin/> .
191
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
9 @prefix board0ow: <http://bigasterisk.com/homeauto/board0/oneWire/> .
167
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
10
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
11 ha:board0 a :ArduinoBoard;
164
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
12 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0";
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
13 :boardTag "atmega328";
177
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
14 :hasPin
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
15 board0pin:d3,
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
16 board0pin:d4,
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
17 board0pin:d5,
191
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
18 board0pin:d6,
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
19 board0pin:d7 .
164
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
20
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
21 board0pin:d3 :pinNumber 3 .
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
22 board0pin:d4 :pinNumber 4 .
177
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
23 board0pin:d5 :pinNumber 5 .
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
24 board0pin:d6 :pinNumber 6 .
191
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
25 board0pin:d7 :pinNumber 7 .
164
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
26
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
27 board0pin:d3 :connectedTo sensor:motion0 .
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
28 sensor:motion0 a :MotionSensor;
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
29 :sees houseLoc:storage .
167
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
30
177
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
31 board0pin:d5 :connectedTo :storageCeilingLedCross .
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
32 :storageCeilingLedCross a :LedOutput .
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
33
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
34 board0pin:d6 :connectedTo :storageCeilingLedLong .
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
35 :storageCeilingLedLong a :LedOutput .
5305fe90c09b bang arduino board config update
drewp@bigasterisk.com
parents: 169
diff changeset
36
167
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
37
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
38
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
39 @prefix board1pin: <http://bigasterisk.com/homeauto/board1/pin/> .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
40 @prefix board1lcd: <http://bigasterisk.com/homeauto/board1/lcd/> .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
41 @prefix board1ow: <http://bigasterisk.com/homeauto/board1/oneWire/> .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
42
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
43 ha:board1 a :ArduinoBoard;
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
44 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A6004bUG-if00-port0";
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
45 :boardTag "atmega328";
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
46 rdfs:comment "chip has been replaced with a 328";
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
47 :hasPin
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
48 board1pin:d3,
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
49 board1pin:d5,
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
50 board1pin:d6,
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
51 board1pin:d7,
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
52 board1pin:d8,
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
53 board1pin:d9,
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
54 board1pin:d10,
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
55 board1pin:d11,
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
56 board1pin:d12 .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
57
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
58 board1pin:d3 :pinNumber 3 .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
59 board1pin:d10 :pinNumber 10 .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
60 board1pin:d11 :pinNumber 11 .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
61 board1pin:d12 :pinNumber 12 .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
62
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
63 board1pin:d10 :connectedTo board1lcd:backlight .
169
d228105749ac new /output to post statements which devices can handle. led and lcd output working
drewp@bigasterisk.com
parents: 167
diff changeset
64 board1lcd:backlight a :LedOutput, :ActiveLowOutput .
167
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
65
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
66 board1pin:d3 :connectedTo board1ow: .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
67 board1ow: a :OneWire;
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
68 :connectedTo board1ow:temperatureSensor .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
69 board1ow:temperatureSensor a :TemperatureSensor;
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
70 :position :office .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
71
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
72 board1pin:d9 :pinNumber 9; :connectedTo board1lcd:SID .
169
d228105749ac new /output to post statements which devices can handle. led and lcd output working
drewp@bigasterisk.com
parents: 167
diff changeset
73 board1pin:d8 :pinNumber 8; :connectedTo board1lcd:SCLK .
167
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
74 board1pin:d7 :pinNumber 7; :connectedTo board1lcd:A0 .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
75 board1pin:d6 :pinNumber 6; :connectedTo board1lcd:RST .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
76 board1pin:d5 :pinNumber 5; :connectedTo board1lcd:CS .
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
77
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
78 board1lcd: a :ST7565Lcd;
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
79 :lcdSID board1lcd:SID;
169
d228105749ac new /output to post statements which devices can handle. led and lcd output working
drewp@bigasterisk.com
parents: 167
diff changeset
80 :lcdSCLK board1lcd:SCLK;
167
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
81 :lcdA0 board1lcd:A0;
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
82 :lcdRST board1lcd:RST;
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
83 :lcdCS board1lcd:CS .
191
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
84
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
85 @prefix shopPin: <http://bigasterisk.com/homeauto/boardShop/pin/> .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
86 @prefix shopBarcode: <http://bigasterisk.com/homeauto/boardShop/barcode/> .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
87 @prefix shopButtons: <http://bigasterisk.com/homeauto/boardShop/buttons/> .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
88 @prefix shopOw: <http://bigasterisk.com/homeauto/boardShop/oneWire/> .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
89 @prefix shopShift: <http://bigasterisk.com/homeauto/boardShop/shift/> .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
90 @prefix shopPwm: <http://bigasterisk.com/homeauto/boardShop/pwm/> .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
91
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
92 ha:boardShop a :ArduinoBoard;
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
93 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A4001hrf-if00-port0";
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
94 :boardTag "atmega168";
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
95 rdfs:comment "board is like diecimila with atmega168";
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
96 :hasPin
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
97 shopPin:d0, shopPin:d1, shopPin:d2, shopPin:d3, shopPin:d4, shopPin:d5, shopPin:d6, shopPin:d7, shopPin:d8, shopPin:d9, shopPin:d10, shopPin:d11, shopPin:d12, shopPin:d13, shopPin:a4, shopPin:a5 .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
98
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
99 shopPin:d0 :pinNumber 0 .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
100 shopPin:d1 :pinNumber 1 .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
101 shopPin:d2 :pinNumber 2; :connectedTo shopBarcode:Txblack .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
102 shopPin:d3 :pinNumber 3; :connectedTo shopBarcode:RxGreen .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
103 shopPin:d4 :pinNumber 4; :connectedTo shopOw: .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
104 shopPin:d5 :pinNumber 5; :connectedTo shopButtons:x .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
105 shopPin:d6 :pinNumber 6; :connectedTo shopButtons:x .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
106 shopPin:d7 :pinNumber 7; :connectedTo shopButtons:x .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
107 shopPin:d8 :pinNumber 8; :connectedTo shopButtons:rot .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
108 shopPin:d9 :pinNumber 9; :connectedTo shopButtons:rot .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
109 shopPin:d10 :pinNumber 10; :connectedTo shopShift:data .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
110 shopPin:d11 :pinNumber 11; :connectedTo shopShift:briteLatch .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
111 shopPin:d12 :pinNumber 12; :connectedTo shopShift:lightClock .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
112 shopPin:d13 :pinNumber 13; :connectedTo shopShift:briteClock .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
113
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
114 shopPin:a4 :pinNumber "a4"; :connectedTo shopPwm:sda .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
115 shopPin:a5 :pinNumber "a5"; :connectedTo shopPwm:scl .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
116
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
117 shopOw: a :OneWire;
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
118 :connectedTo shopOw:temperatureSensor .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
119 shopOw:temperatureSensor a :TemperatureSensor;
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
120 :position :workshop .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
121
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
122 shopPwm:roomLights a :PwmBoard;
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
123 :scl shopPwm:scl;
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
124 :sda shopPwm:sda;
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
125 :output
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
126 [:area shopPwm:sewingLight; :channel 0; :wattage 7],
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
127 [:area shopPwm:shopLight0; :channel 1; :wattage 10],
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
128 [:area shopPwm:shopLight1; :channel 2; :wattage 10],
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
129 [:area shopPwm:ariLight; :channel 3; :wattage 10],
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
130 [:area shopPwm:shopLight2; :channel 4; :wattage 10],
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
131 [:area shopPwm:shopLight3; :channel 6; :wattage 8] .
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
132
443d562c7b39 add shop lights config
drewp@bigasterisk.com
parents: 177
diff changeset
133 # shiftbrite EI (arduino d12) still needs to be connected to +5
164
49c1756b2edb start arduinonode
drewp@bigasterisk.com
parents:
diff changeset
134
167
3dd84ac050d0 config: new arduino board with temp and lcd
drewp@bigasterisk.com
parents: 164
diff changeset
135