A while ago I had one of those rare moments when a light bulb hover above my head

I asked for help on the arduino forums, and a user did write the code for an arduino. So it would be possible to also use an arduino or even an Attiny85/45 chip, which is much smaller

Here is the link to the forum:
http://forum.arduino.cc/index.php?topic ... msg2605062
Obviously all this is only possible because Mike added an "OFF" option to the PPM1 and PPM2 settings in the "Protocol" Menu. we can now just turn the signal OFF and consequently also turn the RF power OFF for the corresponding Module. No need to use CPU pins that can be very useful for other stuff like more switches..

Mike, thank you very much for making this possible
Here is the schematic of the circuit I'm using on my Ar9x radio.
So, basically what this circuit does is to monitor the PPM1 and PPM2 signals. If a signal is detected on Pin2 or Pin3 of the ATtiny85 microprocessor, the corresponding output (Pin5 or Pin6) will be turned ON. The output pins will then control a couple MOSFET transistors that will act as power switches, and can then turn the internal and external RF modules ON or OFF depending on the settings in the protocol menu.
You will need to tap both PPM1 and 2 signals and connect them to the board.(Will make a diagram).
Then you need to tap the RF power line that comes from the power switch, isolate it from Pin3 of the module bay, and connect it to the board. Then connect the internal and external power outputs to the modules.. The external output connects to Pin3 of the module bay. As i said, i will try to make a diagram as this can be a bit confusing..
Inside the zip file attached below you can find the eagle files for making a PCB for this project.. I've used 0805 and 1206 SMD components. You could use only 0805 if you wish..
I'm sure someone can design a better PCB. Mine is working fine though. There are also a couple PDF files with the board design already mirrored.
You can see I also have put some programming pads on the PCB's. They make it easy to flash the Attiny85. Just connect the programmer to those pads.
The code provided in the zip file should be flashed using the Arduino IDE. I have also included an HEX file in case you use some other programmer, or don't want to use the arduino IDE.
I always have trouble burning the bootloader to the Attiny using the Arduino IDE. It always fails. Actually there is no bootloader. The IDE just programs the right fuses to the chip. But I have to use AVR Studio 4 to program the fuses. Perhaps there are other programs that can also do it, but I didn't try any other.
After changing the fuses I can program the Attiny with the arduino IDE using an UsbAsp programmer. I guess other supported programmers might also work, but I didn't try any other..
The fuses are:
Low - E2
High - DF
Extended - FF
On the Arduino IDE, you should select "Attiny85, 8Mhz internal clock" as the board..
As I said above, I have one of these boards installed in my Ar9x board for a couple months now, and never had a problem. it seems to be working very well. Will install one on my Skyboard radio, and try to do the same on my 9XR-PRO. It would be nice if the PRO had enough space inside the case for a DHT module. But I don't know if it is possible..
Obviously, I take no responsibility for any failures or damage resulting from you building this project.. It really works nice for me, and it is a wonderful feature.



I did wait for quite a while before I release this project because I wanted to be sure that it works. I think that after a couple months without problems, is now time to share it with you..
Have fun and do not hesitate to ask any questions about the project..
João