Small Relay Box II – update

relayboxschsplashTwo months ago, I published post about Small Relay Box II. There was full design of small DCTR-driven Relay box. A week ago, I assembled the first piece of PCB and I discovered two bugs (one HW – wrong NC a NO contact description on silkscreen layer and one SW – wrong relay pin mapping).

This post brings new gerber files for PCB and new Custom DPA handler for DCTR. Silkscreen was fixed and relay pin mapping changed. See attachement.

Small relay box

Small relay box

Examples of DPA packets:

  • NADR: 0x01; PNUM: 0x20; PCMD: 0x01; HWPID: 0xFFFF (switch-on all REs)
  • NADR: 0x01; PNUM: 0x20; PCMD: 0x00; HWPID: 0xFFFF (switch-off all REs)
  • NADR: 0x01; PNUM: 0x22; PCMD: 0x02; HWPID: 0xFFFF; DATA: 0x64 (switch-on Relay 2 for 10 seconds)
36
37
38
39
40
41
42
43
44
45
46
// Peripheral map
#define PER_ALL		0x00
#define PER_RE1		0x01
#define PER_RE2		0x02
#define PER_RE3		0x03
#define PER_RE4		0x04
 
// command map
#define CMD_OFF		0x00
#define CMD_ON		0x01
#define CMD_BLINK	0x02

More info about usage inside the original post.

Download Attachments

Leave a Reply

Your email address will not be published. Required fields are marked *