So... I already did the thread about the shift register use.
Here's another useful ideia, I think...
I didn't see any option to use RF controllers on the system I flashed in my tuya module.
I am looking for putting a 433Mhz RF receiver in the module so I can use those multi channel RF controllers from AliExpress like those:
I see it as a better option than using an IR receiver, since IR must have a clean space between the controller and receiver, while RF have a decent reach even in a situation where we have closed rooms
There is no RF Recv driver yet.
We need to add it soon.
Basically we need a driver for a single GPIO that will have RF receiver connected and will be able to print out received codes? And then we can map those codes to events, like IR?
In my studies I got these informations: (most might be just in the curiosities category, but some could be useful)
Both IR and RF use the same principles: Both have an oscillator with a fixed frequency (around 38kHz for IR and 315/433/868MHz for RF). Their data transfer is made by setting a switch that sends or stops the broadcasting of those frequencies - that's the led turning on/off in the IR and data in pin in RF sender module. For Reading IR we use an IR sensor (it receives the frequency and needs some tweaking) or a specific IR receiver (those 3 pin IR sensors) - the receiver filters the frequency and sets its data pin just to high or low. The RF receiver works the same way an IR receiver works. It senses its desired frequency in the air and according to the frequency switching it outputs High or low in its data pin.
The basic structure of IR data payload is like this: The payload is composed of a command id and the device id. For decoding them we can use a receiver to spoof its payload and analyze the received pattern and then using an IR led we can transmit the decoded payload and it should work as a clone from the decoded remote. RF works the same, but with some possible encryption. This Great Scott video has some useful information about it (after 4 minutes): https://www.youtube.com/watch?v=pMc_H-REIJk According to his findings: RF sends data the same way as IR but it can have some encryption - like 3H1L to set one Bit 1 or 3L1H to set Bit 0. The decoded payload in his video and in some other pages I read is a 24 bit key.
p.kaczmarek2 wrote:
Basically we need a driver for a single GPIO that will have RF receiver connected and will be able to print out received codes? And then we can map those codes to events, like IR?
Basically, yes. I imagine Tasmota's repository should be a really good reference for RF decoding.
Unfortunately I got busy and didn't give much attention to the project's code this week so I don't have any useful input for the code itself. I am focused on assimilating the simulator and figuring how to improve it.....