Mercurial > code > home > repos > homeauto
diff service/arduinoNode/config/slash.n3 @ 214:254d656af72e
support a dir of config files
Ignore-this: 729d0aea065af5a0fac6b07653b1d3d2
author | drewp@bigasterisk.com |
---|---|
date | Sun, 03 Jan 2016 02:27:17 -0800 |
parents | |
children | 6614416dd2c3 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/service/arduinoNode/config/slash.n3 Sun Jan 03 02:27:17 2016 -0800 @@ -0,0 +1,63 @@ +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix : <http://projects.bigasterisk.com/room/> . +@prefix ha: <http://bigasterisk.com/homeauto/> . +@prefix sensor: <http://bigasterisk.com/homeauto/sensor/> . +@prefix houseLoc: <http://bigasterisk.com/homeauto/houseLoc/> . + + +@prefix shopPin: <http://bigasterisk.com/homeauto/boardShop/pin/> . +@prefix shopBarcode: <http://bigasterisk.com/homeauto/boardShop/barcode/> . +@prefix shopButtons: <http://bigasterisk.com/homeauto/boardShop/buttons/> . +@prefix shopOw: <http://bigasterisk.com/homeauto/boardShop/oneWire/> . +@prefix shopShift: <http://bigasterisk.com/homeauto/boardShop/shift/> . +@prefix shopPwm: <http://bigasterisk.com/homeauto/boardShop/pwm/> . + +ha:boardShop a :ArduinoBoard; + :device "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A4001hrf-if00-port0"; + :boardTag "atmega168"; + rdfs:comment "board is like diecimila with atmega168"; + :hasPin + 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 . + +shopPin:d0 :pinNumber 0 . +shopPin:d1 :pinNumber 1 . +shopPin:d2 :pinNumber 2; :connectedTo shopBarcode:Txblack . +shopPin:d3 :pinNumber 3; :connectedTo shopBarcode:RxGreen . +shopPin:d4 :pinNumber 4; :connectedTo shopOw: . +shopPin:d5 :pinNumber 5; :connectedTo shopButtons:x . +shopPin:d6 :pinNumber 6; :connectedTo shopButtons:x . +shopPin:d7 :pinNumber 7; :connectedTo shopButtons:x . +shopPin:d8 :pinNumber 8; :connectedTo shopButtons:rot . +shopPin:d9 :pinNumber 9; :connectedTo shopButtons:rot . +shopPin:d10 :pinNumber 10; :connectedTo shopShift:data . +shopPin:d11 :pinNumber 11; :connectedTo shopShift:briteLatch . +shopPin:d12 :pinNumber 12; :connectedTo shopShift:lightClock . +shopPin:d13 :pinNumber 13; :connectedTo shopShift:briteClock . + +shopPin:a4 :pinNumber "a4"; :connectedTo shopPwm:sda . +shopPin:a5 :pinNumber "a5"; :connectedTo shopPwm:scl . + +shopOw: a :OneWire; + :connectedTo shopOw:dev-28bf08d101000026 . +shopOw:dev-28bf08d101000026 a :TemperatureSensor; + :position :workshop; + :graphiteName "system.house.temp.workshop" . + +shopPwm:roomLights a :PwmBoard; + :scl shopPwm:scl; + :sda shopPwm:sda; + :output + [:area shopPwm:sewingLight; :channel 0; :wattage 7], + [:area shopPwm:shopLight0; :channel 1; :wattage 10], + [:area shopPwm:shopLight1; :channel 2; :wattage 10], + [:area shopPwm:ariLight; :channel 3; :wattage 10], + [:area shopPwm:shopLight2; :channel 4; :wattage 10], + [:area shopPwm:shopLight3; :channel 6; :wattage 8] . + +# shiftbrite EI (arduino d12) still needs to be connected to +5 + +#barcode red: +5V +#barcode white: gnd +#SoftwareSerial barcode = SoftwareSerial(/* rx pin, green */ 3, +# /* tx pin, black */ 2, +# /* inverse */ true);