Project released: 20 PICs controlling my home via CAN

General discussion on mikroBasic.
Author
Message
beeonik
Posts: 2
Joined: 19 Nov 2009 22:01

dimming

#16 Post by beeonik » 08 Dec 2009 09:12

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

ionut
Posts: 76
Joined: 04 May 2009 18:03

#17 Post by ionut » 09 Dec 2009 18:15

Code and schematics are already posted 12th post down from the first post

piccy
Posts: 31
Joined: 20 Jun 2005 16:30
Location: Germany

used dimmer

#18 Post by piccy » 10 Dec 2009 09:51

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...

orga
Posts: 240
Joined: 04 Jun 2008 20:08

#19 Post by orga » 17 Dec 2009 23:51

Hello Piccy,
in the CAN-Node, where is the CAN-Node-ID?
Please explane the code from CAN sender.
Regards orga

piccy
Posts: 31
Joined: 20 Jun 2005 16:30
Location: Germany

CAN id

#20 Post by piccy » 18 Dec 2009 15:07

have a look here to the code part:

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]
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.

meccman13
Posts: 1
Joined: 16 Aug 2015 22:38

Re: Project released: 20 PICs controlling my home via CAN

#21 Post by meccman13 » 16 Aug 2015 22:55

Hi, I am new in this forum.

You can give me this include files :

SubMod_OG
SubMod_Receiver

Tanks.

Post Reply

Return to “mikroBasic General”