Mercurial > code > home > repos > homeauto
comparison 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 |
comparison
equal
deleted
inserted
replaced
190:ad20e5cb4feb | 191:443d562c7b39 |
---|---|
4 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . | 4 @prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . |
5 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> . | 5 @prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> . |
6 | 6 |
7 | 7 |
8 @prefix board0pin: <http://bigasterisk.com/homeauto/board0/pin/> . | 8 @prefix board0pin: <http://bigasterisk.com/homeauto/board0/pin/> . |
9 @prefix board0ow: <http://bigasterisk.com/homeauto/board0/oneWire/> . | |
9 | 10 |
10 ha:board0 a :ArduinoBoard; | 11 ha:board0 a :ArduinoBoard; |
11 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0"; | 12 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A900cepU-if00-port0"; |
12 :boardTag "atmega328"; | 13 :boardTag "atmega328"; |
13 :hasPin | 14 :hasPin |
14 board0pin:d3, | 15 board0pin:d3, |
15 board0pin:d4, | 16 board0pin:d4, |
16 board0pin:d5, | 17 board0pin:d5, |
17 board0pin:d6 . | 18 board0pin:d6, |
19 board0pin:d7 . | |
18 | 20 |
19 board0pin:d3 :pinNumber 3 . | 21 board0pin:d3 :pinNumber 3 . |
20 board0pin:d4 :pinNumber 4 . | 22 board0pin:d4 :pinNumber 4 . |
21 board0pin:d5 :pinNumber 5 . | 23 board0pin:d5 :pinNumber 5 . |
22 board0pin:d6 :pinNumber 6 . | 24 board0pin:d6 :pinNumber 6 . |
25 board0pin:d7 :pinNumber 7 . | |
23 | 26 |
24 board0pin:d3 :connectedTo sensor:motion0 . | 27 board0pin:d3 :connectedTo sensor:motion0 . |
25 sensor:motion0 a :MotionSensor; | 28 sensor:motion0 a :MotionSensor; |
26 :sees houseLoc:storage . | 29 :sees houseLoc:storage . |
27 | 30 |
76 :lcdSID board1lcd:SID; | 79 :lcdSID board1lcd:SID; |
77 :lcdSCLK board1lcd:SCLK; | 80 :lcdSCLK board1lcd:SCLK; |
78 :lcdA0 board1lcd:A0; | 81 :lcdA0 board1lcd:A0; |
79 :lcdRST board1lcd:RST; | 82 :lcdRST board1lcd:RST; |
80 :lcdCS board1lcd:CS . | 83 :lcdCS board1lcd:CS . |
81 | 84 |
85 @prefix shopPin: <http://bigasterisk.com/homeauto/boardShop/pin/> . | |
86 @prefix shopBarcode: <http://bigasterisk.com/homeauto/boardShop/barcode/> . | |
87 @prefix shopButtons: <http://bigasterisk.com/homeauto/boardShop/buttons/> . | |
88 @prefix shopOw: <http://bigasterisk.com/homeauto/boardShop/oneWire/> . | |
89 @prefix shopShift: <http://bigasterisk.com/homeauto/boardShop/shift/> . | |
90 @prefix shopPwm: <http://bigasterisk.com/homeauto/boardShop/pwm/> . | |
91 | |
92 ha:boardShop a :ArduinoBoard; | |
93 :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A4001hrf-if00-port0"; | |
94 :boardTag "atmega168"; | |
95 rdfs:comment "board is like diecimila with atmega168"; | |
96 :hasPin | |
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 . | |
98 | |
99 shopPin:d0 :pinNumber 0 . | |
100 shopPin:d1 :pinNumber 1 . | |
101 shopPin:d2 :pinNumber 2; :connectedTo shopBarcode:Txblack . | |
102 shopPin:d3 :pinNumber 3; :connectedTo shopBarcode:RxGreen . | |
103 shopPin:d4 :pinNumber 4; :connectedTo shopOw: . | |
104 shopPin:d5 :pinNumber 5; :connectedTo shopButtons:x . | |
105 shopPin:d6 :pinNumber 6; :connectedTo shopButtons:x . | |
106 shopPin:d7 :pinNumber 7; :connectedTo shopButtons:x . | |
107 shopPin:d8 :pinNumber 8; :connectedTo shopButtons:rot . | |
108 shopPin:d9 :pinNumber 9; :connectedTo shopButtons:rot . | |
109 shopPin:d10 :pinNumber 10; :connectedTo shopShift:data . | |
110 shopPin:d11 :pinNumber 11; :connectedTo shopShift:briteLatch . | |
111 shopPin:d12 :pinNumber 12; :connectedTo shopShift:lightClock . | |
112 shopPin:d13 :pinNumber 13; :connectedTo shopShift:briteClock . | |
113 | |
114 shopPin:a4 :pinNumber "a4"; :connectedTo shopPwm:sda . | |
115 shopPin:a5 :pinNumber "a5"; :connectedTo shopPwm:scl . | |
116 | |
117 shopOw: a :OneWire; | |
118 :connectedTo shopOw:temperatureSensor . | |
119 shopOw:temperatureSensor a :TemperatureSensor; | |
120 :position :workshop . | |
121 | |
122 shopPwm:roomLights a :PwmBoard; | |
123 :scl shopPwm:scl; | |
124 :sda shopPwm:sda; | |
125 :output | |
126 [:area shopPwm:sewingLight; :channel 0; :wattage 7], | |
127 [:area shopPwm:shopLight0; :channel 1; :wattage 10], | |
128 [:area shopPwm:shopLight1; :channel 2; :wattage 10], | |
129 [:area shopPwm:ariLight; :channel 3; :wattage 10], | |
130 [:area shopPwm:shopLight2; :channel 4; :wattage 10], | |
131 [:area shopPwm:shopLight3; :channel 6; :wattage 8] . | |
132 | |
133 # shiftbrite EI (arduino d12) still needs to be connected to +5 | |
82 | 134 |
83 | 135 |
84 |