Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for longer pulses, as delayMicroseconds can only wait 16383us #432

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomaskovacik
Copy link

@tomaskovacik tomaskovacik commented Aug 17, 2021

Hello,

I am playing with NICE flo2 [1] remotes with M1E chip [2]

Based on the output from "receiver example" the protocol of these remotes is 11 with pulses around 665us:

Decimal: 1161 (12Bit) Binary: 010010001001 Tri-State: not applicable PulseLength: 665 microseconds Protocol: 11
Raw data: 23916,636,716,1312,1396,636,720,1304,720,1304,1404,628,720,1304,720,1304,716,1300,1400,632,720,1304,716,1304,1400,

Decimal: 1162 (12Bit) Binary: 010010001010 Tri-State: not applicable PulseLength: 664 microseconds Protocol: 11
Raw data: 23912,636,716,1312,1404,628,720,1304,720,1304,1396,636,720,1304,720,1300,720,1300,1400,632,724,1296,1400,632,720,

unfortunately, "send example" did not work for me because the protocol requires 35x665us pulse which is more than 16383(max for delayMicrosecons() [3]).

so I simply split delays to milliseconds delay and microseconds delay using basic calculations, which works for me.

generated codes using send example with simple mySwitch.setProtocol(11,665);

Decimal: 1161 (12Bit) Binary: 010010001001 Tri-State: not applicable PulseLength: 670 microseconds Protocol: 11
Raw data: 24140,680,748,1344,1420,680,744,1348,748,1356,1412,684,752,1344,748,1344,748,1344,1416,676,748,1340,748,1344,1416,

Decimal: 1162 (12Bit) Binary: 010010001010 Tri-State: not applicable PulseLength: 670 microseconds Protocol: 11
Raw data: 24144,688,736,1356,1408,688,740,1356,740,1356,1408,680,748,1348,744,1348,748,1344,1416,676,744,1344,1420,680,744,

[1] https://www.remotecontrol-express.com/remote+NICE+:+FLO2+%28SWITCHS%29
[2] https://datasheetspdf.com/pdf-file/1404207/MOSDESIGN/M1E/1
[3] https://www.arduino.cc/reference/en/language/functions/time/delaymicroseconds/

bmorcelli added a commit to bmorcelli/rc-switch that referenced this pull request Nov 19, 2024
PRs added to this variant:
sui77#432
sui77#464
sui77#405

added CAME, FAAC amd NICE 12bit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant