rc-switch
rc-switch copied to clipboard
Custom protocol Avidsen doorbel
Hello,
it's not really an issue but I don't understand how to implement new code.
I have a doorbel Avidsen that is not directly recognized by RC switch, I followed the tutorial to add a new remote and sniffed the code.
From there I could figure out that pulselenght is 500µs That the remote is transmitting 12bit (8 related to dip switch and 4 last that are fixed)
S 0 0 0 0 0 0 0 0 1 1 0 0
That sync bit is 1 high and 1 low That 0 is represented by 2 high and 1 low That 1 is represented by 1 high and 2 low
So I think the protocol should be { 500, { 1, 1 }, { 2, 1 }, { 1, 2 }, false }
Is it correct ?
Also added the line into the RCSwitch.cpp file as protocol 7 But if I use then the receive demo the serial monitor stays empty, could you tell me what should I do to get it working.
Thx
How do you calculate 500µs?