Mercurial > code > home > repos > homeauto
annotate service/arduinoNode/config.n3 @ 1003:58c939e2e121
arduinoNode config. missing import
Ignore-this: d2fb9c1c35ff9b30f0b7b0ee67342821
darcs-hash:20151004111557-312f9-1d52b9430070916e1c8a12903de4e1d1e35f39a7
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 04 Oct 2015 04:15:57 -0700 |
parents | a34e008a8f95 |
children |
rev | line source |
---|---|
982
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
1 @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
2 @prefix : <http://projects.bigasterisk.com/room/> . |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
3 @prefix ha: <http://bigasterisk.com/homeauto/> . |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
4 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
5 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> . |
969 | 6 |
972
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
7 |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
8 @prefix board0pin: <http://bigasterisk.com/homeauto/board0/pin/> . |
996 | 9 @prefix board0ow: <http://bigasterisk.com/homeauto/board0/oneWire/> . |
972
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
10 |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
11 ha:board0 a :ArduinoBoard; |
969 | 12 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0"; |
13 :boardTag "atmega328"; | |
982
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
14 :hasPin |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
15 board0pin:d3, |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
16 board0pin:d4, |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
17 board0pin:d5, |
996 | 18 board0pin:d6, |
19 board0pin:d7 . | |
969 | 20 |
21 board0pin:d3 :pinNumber 3 . | |
22 board0pin:d4 :pinNumber 4 . | |
982
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
23 board0pin:d5 :pinNumber 5 . |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
24 board0pin:d6 :pinNumber 6 . |
996 | 25 board0pin:d7 :pinNumber 7 . |
969 | 26 |
27 board0pin:d3 :connectedTo sensor:motion0 . | |
28 sensor:motion0 a :MotionSensor; | |
29 :sees houseLoc:storage . | |
972
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
30 |
1003
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
31 board0pin:d4 :connectedTo :heater . |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
32 :heater a :DigitalOutput . |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
33 |
982
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
34 board0pin:d5 :connectedTo :storageCeilingLedCross . |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
35 :storageCeilingLedCross a :LedOutput . |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
36 |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
37 board0pin:d6 :connectedTo :storageCeilingLedLong . |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
38 :storageCeilingLedLong a :LedOutput . |
d9467d6d0f7b
bang arduino board config update
drewp <drewp@bigasterisk.com>
parents:
974
diff
changeset
|
39 |
1003
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
40 board0pin:d7 :connectedTo board0ow: . |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
41 board0ow: a :OneWire; |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
42 :connectedTo board0ow:temperatureSensor . |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
43 board0ow:temperatureSensor a :TemperatureSensor; |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
44 :position :storage . |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
45 |
972
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
46 |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
47 @prefix board1pin: <http://bigasterisk.com/homeauto/board1/pin/> . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
48 @prefix board1lcd: <http://bigasterisk.com/homeauto/board1/lcd/> . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
49 @prefix board1ow: <http://bigasterisk.com/homeauto/board1/oneWire/> . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
50 |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
51 ha:board1 a :ArduinoBoard; |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
52 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A6004bUG-if00-port0"; |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
53 :boardTag "atmega328"; |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
54 rdfs:comment "chip has been replaced with a 328"; |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
55 :hasPin |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
56 board1pin:d3, |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
57 board1pin:d5, |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
58 board1pin:d6, |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
59 board1pin:d7, |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
60 board1pin:d8, |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
61 board1pin:d9, |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
62 board1pin:d10, |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
63 board1pin:d11, |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
64 board1pin:d12 . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
65 |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
66 board1pin:d3 :pinNumber 3 . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
67 board1pin:d10 :pinNumber 10 . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
68 board1pin:d11 :pinNumber 11 . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
69 board1pin:d12 :pinNumber 12 . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
70 |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
71 board1pin:d10 :connectedTo board1lcd:backlight . |
974
f707210c13bd
new /output to post statements which devices can handle. led and lcd output working
drewp <drewp@bigasterisk.com>
parents:
972
diff
changeset
|
72 board1lcd:backlight a :LedOutput, :ActiveLowOutput . |
972
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
73 |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
74 board1pin:d3 :connectedTo board1ow: . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
75 board1ow: a :OneWire; |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
76 :connectedTo board1ow:temperatureSensor . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
77 board1ow:temperatureSensor a :TemperatureSensor; |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
78 :position :office . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
79 |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
80 board1pin:d9 :pinNumber 9; :connectedTo board1lcd:SID . |
974
f707210c13bd
new /output to post statements which devices can handle. led and lcd output working
drewp <drewp@bigasterisk.com>
parents:
972
diff
changeset
|
81 board1pin:d8 :pinNumber 8; :connectedTo board1lcd:SCLK . |
972
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
82 board1pin:d7 :pinNumber 7; :connectedTo board1lcd:A0 . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
83 board1pin:d6 :pinNumber 6; :connectedTo board1lcd:RST . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
84 board1pin:d5 :pinNumber 5; :connectedTo board1lcd:CS . |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
85 |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
86 board1lcd: a :ST7565Lcd; |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
87 :lcdSID board1lcd:SID; |
974
f707210c13bd
new /output to post statements which devices can handle. led and lcd output working
drewp <drewp@bigasterisk.com>
parents:
972
diff
changeset
|
88 :lcdSCLK board1lcd:SCLK; |
972
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
89 :lcdA0 board1lcd:A0; |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
90 :lcdRST board1lcd:RST; |
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
91 :lcdCS board1lcd:CS . |
996 | 92 |
93 @prefix shopPin: <http://bigasterisk.com/homeauto/boardShop/pin/> . | |
94 @prefix shopBarcode: <http://bigasterisk.com/homeauto/boardShop/barcode/> . | |
95 @prefix shopButtons: <http://bigasterisk.com/homeauto/boardShop/buttons/> . | |
96 @prefix shopOw: <http://bigasterisk.com/homeauto/boardShop/oneWire/> . | |
97 @prefix shopShift: <http://bigasterisk.com/homeauto/boardShop/shift/> . | |
98 @prefix shopPwm: <http://bigasterisk.com/homeauto/boardShop/pwm/> . | |
99 | |
100 ha:boardShop a :ArduinoBoard; | |
101 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A4001hrf-if00-port0"; | |
102 :boardTag "atmega168"; | |
103 rdfs:comment "board is like diecimila with atmega168"; | |
104 :hasPin | |
105 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 . | |
106 | |
107 shopPin:d0 :pinNumber 0 . | |
108 shopPin:d1 :pinNumber 1 . | |
109 shopPin:d2 :pinNumber 2; :connectedTo shopBarcode:Txblack . | |
110 shopPin:d3 :pinNumber 3; :connectedTo shopBarcode:RxGreen . | |
111 shopPin:d4 :pinNumber 4; :connectedTo shopOw: . | |
112 shopPin:d5 :pinNumber 5; :connectedTo shopButtons:x . | |
113 shopPin:d6 :pinNumber 6; :connectedTo shopButtons:x . | |
114 shopPin:d7 :pinNumber 7; :connectedTo shopButtons:x . | |
115 shopPin:d8 :pinNumber 8; :connectedTo shopButtons:rot . | |
116 shopPin:d9 :pinNumber 9; :connectedTo shopButtons:rot . | |
117 shopPin:d10 :pinNumber 10; :connectedTo shopShift:data . | |
118 shopPin:d11 :pinNumber 11; :connectedTo shopShift:briteLatch . | |
119 shopPin:d12 :pinNumber 12; :connectedTo shopShift:lightClock . | |
120 shopPin:d13 :pinNumber 13; :connectedTo shopShift:briteClock . | |
121 | |
122 shopPin:a4 :pinNumber "a4"; :connectedTo shopPwm:sda . | |
123 shopPin:a5 :pinNumber "a5"; :connectedTo shopPwm:scl . | |
124 | |
125 shopOw: a :OneWire; | |
126 :connectedTo shopOw:temperatureSensor . | |
127 shopOw:temperatureSensor a :TemperatureSensor; | |
128 :position :workshop . | |
129 | |
130 shopPwm:roomLights a :PwmBoard; | |
131 :scl shopPwm:scl; | |
132 :sda shopPwm:sda; | |
133 :output | |
134 [:area shopPwm:sewingLight; :channel 0; :wattage 7], | |
135 [:area shopPwm:shopLight0; :channel 1; :wattage 10], | |
136 [:area shopPwm:shopLight1; :channel 2; :wattage 10], | |
137 [:area shopPwm:ariLight; :channel 3; :wattage 10], | |
138 [:area shopPwm:shopLight2; :channel 4; :wattage 10], | |
139 [:area shopPwm:shopLight3; :channel 6; :wattage 8] . | |
140 | |
141 # shiftbrite EI (arduino d12) still needs to be connected to +5 | |
969 | 142 |
1003
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
143 #barcode red: +5V |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
144 #barcode white: gnd |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
145 #SoftwareSerial barcode = SoftwareSerial(/* rx pin, green */ 3, |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
146 # /* tx pin, black */ 2, |
58c939e2e121
arduinoNode config. missing import
drewp <drewp@bigasterisk.com>
parents:
996
diff
changeset
|
147 # /* inverse */ true); |
972
5f1bbec24d45
config: new arduino board with temp and lcd
drewp <drewp@bigasterisk.com>
parents:
969
diff
changeset
|
148 |