Verilog Module to Operate 434MHz RC Switches

Wrote a simple Verilog module to operate a 434MHz RC switch from an FPGA.

Basically this is a personal exercise of mine to get familiar with Verilog HDL. If you interested in a more practical approach on operating a 434MHz switch, see for example this article.

For some theory on the protocol to operate the switches, you could have a look at this article, or read the comment in rcswitch.v.

MachXO2 and RC switch

MachXO2 and RC switch

The current setup (as shown in the picture) connects a cheap 434MHz transmitter to the FPGA (Lattice MachXO2, also cheap) as well as two push buttons. If the red button is pressed, the swich is turned on, if the black button is pressed, it is turned off. In general this is done by sending 1 and 0 to the radio in the right frequency. At the end it looks like shown in the GTKWave screenshot.

GTKWave Output

GTKWave Output

For more detail see the comments in the code found on github.

Leave a Reply

You must be logged in to post a comment.