Dear Piccy,
Well done for your project. It was very nice and interesting. Can you please tell me what kind of dimming you used? DSI/DALI or 0-10V of Dimmable Live? Can you please share some codes with us?
Thanks
beeonik
Project released: 20 PICs controlling my home via CAN
used dimmer
I have choosen the following dimmer:
http://www.reichelt.de/?;ACTION=3;LA=44 ... 4384776952
It is just a simple push-button type, which is used also for standard wired dimmer functions.
Instead of a normal push-button, now a relay of my CAN controlled base station is doing the job:
short time on: light on/off
longer time on: dimming up/down
Advantages of my solution:
cheap (20EUR), simple (no driver), flexible (every port could be used)
and most important: SAFE! certified, comercial parts for the high-voltage side
, no issues with insurance...
http://www.reichelt.de/?;ACTION=3;LA=44 ... 4384776952
It is just a simple push-button type, which is used also for standard wired dimmer functions.
Instead of a normal push-button, now a relay of my CAN controlled base station is doing the job:
short time on: light on/off
longer time on: dimming up/down
Advantages of my solution:
cheap (20EUR), simple (no driver), flexible (every port could be used)
and most important: SAFE! certified, comercial parts for the high-voltage side
, no issues with insurance...
CAN id
have a look here to the code part:
The CAN id is written during flashing in the ID Locations and the read as shown above.
And why? So I am able to program all nodes with the identical code, I have just to modifiy the ID locations.
One additional remark: according to the CAN protocol concept, the CAN IDs are message specific, not node specific!
But to simplfy it, I just use one ID for one node with one message.
Code: Select all
Pt = $200000 ' address of pointer start (ID locations start)
i = 0
while i < 8
ID_LOCATIONS[i] = Pt^ 'value from pointer address
inc(i)
wend
CAN_ID = ID_LOCATIONS[0]
And why? So I am able to program all nodes with the identical code, I have just to modifiy the ID locations.
One additional remark: according to the CAN protocol concept, the CAN IDs are message specific, not node specific!
But to simplfy it, I just use one ID for one node with one message.
Re: Project released: 20 PICs controlling my home via CAN
Hi, I am new in this forum.
You can give me this include files :
SubMod_OG
SubMod_Receiver
Tanks.
You can give me this include files :
SubMod_OG
SubMod_Receiver
Tanks.