Hi,
I have a SuperSwitch(r) IR-Remote-Control Mains Dimmer Switch
The remote has one button: Tap for On/Off; Hold for Dimmer
Nothing has ever been able to “learn” the IR signal (including the FZ).
Today I (finally) measured the output with a 'scope, and very simply:
For as long as the remote button is pressed, a PWM signal is transmitted @ 932Hz with a duty cycle of ~5…10% [more accurate measurements required] …I assert: There is NO “data” in this signal [which retrospectively explains a lot] …Reversing the remote control (PCB date 1974), shows that it is a super trivial CMOS NAND Gate timer, tuned to 932Hz (I suspect 1KHz +/- 10%) with an R/C pair …which, in turn, flashes an IR LED via a MOSFET …The button is a PtM SP/ST which merely completes the circuit.
I would like to write a plugin to perform this action.
I’m all good with GUI I/O …What I’m stuck at is this:
- How do I directly set the PWM frequency and duty cycle for the GPIO pin to which the IR LED is attached, and then toggle it on and off?
- Can I use the same answer to perform the same action with an (different) ‘exposed’ GPIO pin?
Any advice greatly appreciated,
BC