New Products Flash Sale
Thread Tools
Old May 13, 2014, 08:49 AM
midelic is online now
Find More Posts by midelic
Registered User
midelic's Avatar
Joined Apr 2012
4,389 Posts
Mini-HowTo
DIY Multiprotocol TX Module

DIY Multiprotocol TX Module
This setup is based on Phracturedblue idea of universal Tx module he made for integration with his many devo TX(deviation firmware).Following this and multiple RC protocols existing in deviation firmware,I was able to make an integration of these most popular RC protocols in arduino on a standalone module based on single atmel 328 chip and driven by any TX able to output PPM signal.

Because I had no time to design my own multiprotocol PCB,I used a hacked universal module pcb wich Phracturedblue made available on deviation forum and also at OSH park.
At the moment the multiprotocol includes 4 protocols,Flysky,Hubsan,Frsky-2way,and Hisky.
As soon as I possible can I will add also Frsky 1-way, V2X2 and DSM protocols.

Hardware:
1.Universal module PCB V1.3, shared at OSH park.
2.Arduino promini 16Mhz(Protocols are using as witness the existing on board LED on B5 pin)
3.A7105 module(PA/LNA module ,V911,X7105-SY).I used a V911 module harvested from a V911 TX
4.CC2500 PA/LNA module(XL2500)
5.Nrf24L01 PA/LNA module
6.AMS1117-3.3 LVO voltage regulator(or any other minimum 500mA LDO)
7.Resistor 20K(between NRF_CE pin to Vcc)
8.Caps 4.7-10uF(2pcs on ldo)
9.DIP switch 8 positions


Clarifications:
I designed this arrangement having in mind core9x tx (a DIY TX using ER9X firmware),but this is a stand alone module it can be used with any tx which output PPM signal.At the moment channel order is AETR so will work with any programmable TX..for TX which are not able to change channel order,other than AETR..ask in this thread and I'll make a custom version.
I don't now the range of this multi-module.I did not make any test for range.I also didn't make field test to see how all this modules work together in such close proximity especially with antennas close one to another......but based on positive feedback from deviation forum I think they will work just fine.Anyway only one module will be work at the time not all activated at the same time.
Atm there is no telemetry involved.I removed the SMA connectors from the modules.It will be used instead U.FL/IPX wire antenna.All wires will be routed in a single antenna plastic tubing(common wire antenna shell).
For installing the RF modules it can be used the attached photos as reference also the modules installation in deviation links.
The recommended modules to be used are the ones in below links.
In the pics below I used a V911 module(A7105) harvested from a V911 TX(it can be used also from V939TX).
On the universal PCB..there are not allocated pins for a V911 module so I drilled 6 small holes and soldered on the back wire connections to X7105-SY pins.
This setup can be customized and will be customized in the future based on feedback from users.I will make also another version without DIP switches made specific for ER9X firmware using serial for protocol selection.
WARNING:
DON'TEXCEED 3.3V for the modules
Atm the code used fixed id so it may interfere with your neighbor friend plane rx if your friend using the same multiprotocol code provided here.
When all protocols will be added and and more mature code I'll fix this problem.So if you are using this code use it alone for the moment.
If using rotary dip switch I recommend buying one with 16pos..it uses 4 pins connected to mcu and allows more protocols.


DISCLAIMER:
THIS CODE IS STILL IN TESTING.IF YOU FEEL UNEASY WITH THAT, DON'T USE IT!
THE CODE AND SETUP PRESENTED HERE IS AS IS.
USE IT ON YOUR OWN RISK .I DON'T TAKE ANY RESPONSIBILITY OF THE PROBLEMS WHICH MAY ARISE USING IT.


Shopping modules links
1.http://www.banggood.com/XL7105-D03-A...-p-922603.html
2.http://www.banggood.com/A7105-XL7105...-p-922597.html
3.http://www.ebay.com/itm/CC2500-PA-LN...item1c3ac6728e
4.http://www.banggood.com/CC2500-PA-LN...-p-922595.html
5.http://www.banggood.com/CC2500-PCBA-...-p-922598.html
6.http://www.aliexpress.com/item/CC250...359941652.html
7.http://www.banggood.com/2_4G-NRF24L0...-p-922601.html
8.http://www.ebay.com/itm/NRF24L01-PA-...item19e4304331
9.http://www.ebay.com/sch/i.html?_saca...ntennal&_rdc=1
10.http://www.ebay.com/itm/231196071545...84.m1439.l2649
11.http://www.ebay.com/sch/i.html?_saca...osition&_frs=1
12.http://www.banggood.com/Walkera-WK-D...-p-922596.html

NO ATTINY 24A chip REQUIRED
I used attiny pinout (soldered a 0.1" pinheader)from exiting PCB to connect to my promini.
Why? Because I was too lazy to design my own PCB.

ARDUINO PROMINI 16 Mhz


14.05.2014
Added new diagram for people who want to design their own pcb or have their own setup.
16.05.2014
Forgot to add PPM signal in the diagram,Now uploadeded the correct one.
Fixed bug added updated code ,see "mmulti01.hex",adopted dave1993 files naming
19.05.2014
Added diagram with Vreg/caps.
edit:Added also more professional complete schematic in Kicad made by Blackmoon.
See pdf file V1.2."KICAD_MULTI_PROTOCOL_MODULE_rev1.2"
Note: This schematic made by blackmoon reflects the future development of multiprotocol module(attached bind button ,more protocols).
Atm the diagrams(pics) below works with code attached.
20.05.2014
For people who had problem with Frsky 2-way binding
I had a CC2500 module working without freq offset.
So I attached a multiprotocol version hex file without freq offset Frsky protocol.
"mmulti02.hex"
10.06.2014
Somebody requested for a multiprotocol setup using rotary dip switch
so I made a diagram for using rotary dip switch BCD 10 pos.
17.06.2016
Blackmoon made several diagrams in kicad for mutiprotocol .......at the moment only promini and M328 tqfp versions with normal dip switch.The version with promini and tqfp with rotary dip switch will follow next.
More info and all diagrams and gerber files below link.
http://www.rcgroups.com/forums/showt...5#post28675977
26.06.2014
Tested code using BCD rotary dip switch (10pos)...for protocol selection.Added bind button functionality for Flysky and Frsky protocols.
See attached "Multiprotocol_rotarySW_M328_16Mhz..hex"
.Added also one more protocol.,,V2X2...on nrf chip.Now total 5 protocol added.
edit:
Added code multiprotocol using rotary switch and random id for each protocol at bind.
"Multiprotocol_rotarySW_randomid.hex"

29.06.2014
Added diagram using 4 pos dip switch use binary code for protocol selection(16 protocols) ... this for people binary wise which cannot find rotary dip switch or chose it for smaller foot print.
It can be used with multiprotocol_rotarySW.
04.07.2014
Fixed bug in PPM code causing problem in V2x2 protocol.
See updated code Multiprotocol_rotarySW_randomid2.hex

31.12.2014
Last and improved version of this year coming just before new year.
Added DSM2 protocol finally (key No.6 on dial)..improved V2x2 code(made it slimmer and faster reaction).Tested all protocols one by one..many tests on DSM2 for improvements.For binding on DSM2 protocol keep pressed bind button(at TX start) till rx led stop flashing .,then release bind button.
See file" Multiprotocol_rotarySW_1.hex"

13.02.2015
The user "sccamp" designed new pcb for multiprotocol.Now it is published uploaded and shared at oshpark for people use freely.See below attached link along with his multiprotocol cad files.
https://oshpark.com/shared_projects/MaGYDg0y
BOM links.
http://www.rcgroups.com/forums/showp...&postcount=842
http://www.rcgroups.com/forums/showp...postcount=1020
02.03.2015
New code,Rewrite code make it slimmer.
Added new protocols CX-10 red pcb ,Devo,,KN and SymaX.Rotary switch dial is the same as numbers order.Total numbers of protocols and numbers are at the end of the page.
Confirmed working new protocols are Devo,and KN.The rest of SymaX protocols not tested yet.
See attached Multiprotocol_rotarySW_2.hex


Sources:
1.http://www.deviationtx.com/forum/7-d...tart=160#20326
2.https://bitbucket.org/PhracturedBlue...20Multi-Module
3.https://bitbucket.org/PhracturedBlue...iki/ModuleList
4.https://bitbucket.org/PhracturedBlue/deviation/src
5.http://www.rcgroups.com/forums/showthread.php?t=1921870
6.http://www.rcgroups.com/forums/showthread.php?t=1954078
7.http://www.rcgroups.com/forums/showthread.php?t=2124647

WARNING:
NO ATTINY 24A chip REQUIRED
************************************************** ***************
General info:
All protocols found on the market today use only 4 RF modules..with 4 different RF chips.

1.A7105 Rf chip ______ for Flysky,Hubsan,HK6S.
2.CC2500 Rf chip________for Frsky,Skyartec,Hitec
3,CYRF6936 ____________ for DSM2 ,DSMX,DEVO ,Walkera
4.NRF 24L01 Rf chip ______for ,...plenty protocols..,,Hisky ,V2x2,V977,CX-XX and all new SYMAX products.

A more complete list you find here.
https://docs.google.com/spreadsheet/...=sharing#gid=0
************************************************** *************
Pinout for rotary dip switch/bind pin.
SW-Promini(M328)

1 -D10(B2)
2- D11(B3)
4- D12(B4)
8- A0(C0)

Bind
pin -D13(B5)



At the moment protocols supported are:
The numbers are also the dial switch key numbers

1.Flysky
2.Hubsan
3.Frsky
4.Hisky
5.V2x2
6.Dsm2
7.Devo
8.Skwlkr(CX-10 red pcb)
9.KN(V977)
10.SymaX(Symax11/12)
11.SymaX4
12.SymaX5C
midelic is online now Find More Posts by midelic
Last edited by midelic; Mar 17, 2015 at 09:39 PM. Reason: added new protocols code/more info
Reply With Quote
Sign up now
to remove ads between posts
Old May 13, 2014, 08:49 AM
midelic is online now
Find More Posts by midelic
Registered User
midelic's Avatar
Joined Apr 2012
4,389 Posts
ER9X with multiprotocol selection menu.

I'll "dump" here all the info regarding multiprotocol selection in ER9X.
For using multiprotocol selection from ER9X screen, it is mandatory to be done the so called "Frsky telemetry mod" for Turnigy 9x and 9XR.

The Turnigy 9x frsky mod I recommend is the one in the below link.There are many tutorial showing how to do that but not very well explained the connections.This one I like because it shows explicit where to connect,the wires from 9X MISO MOSI pins to 5pin output connector.See the pictures with pin no 5(goes to MOSI) and no2(goes to MISO)

http://myrcflight.com/turnigy-9xr.html

Video using multiprotocol selection in Er9x.
ER9X firmware with multiprotocol selection(serial) (1 min 25 sec)

Added also the hacked ER9X firmware for multiprotocol selection.
Use:
When Trainer switch is pressed at start it will show multiprotocol menu.
midelic is online now Find More Posts by midelic
Last edited by midelic; Apr 05, 2015 at 04:29 PM.
Reply With Quote
Old May 13, 2014, 08:56 AM
e_lm_70 is offline
Find More Posts by e_lm_70
Registered User
Austria
Joined Jan 2004
8,803 Posts
reserved ;-)
e_lm_70 is offline Find More Posts by e_lm_70
Last edited by e_lm_70; Jul 02, 2014 at 03:19 AM.
Reply With Quote
Old May 13, 2014, 09:06 AM
midelic is online now
Find More Posts by midelic
Registered User
midelic's Avatar
Joined Apr 2012
4,389 Posts
Yes it can be but must be integrated in other firmware.
I will make another version without switches...for ER9X firmware using serial protocol selection.
I tested many versions but somehow........I returned to switches....very straight forward easy to remember.There is another way using only one switch(tactile push button) and remember how many times you press it for protocol selection.
So maybe in the final will be 3 versions.
The other free pins are reserved for additional protocols.(Frsky 1 way,V2X2.and DSM)
midelic is online now Find More Posts by midelic
Last edited by midelic; May 13, 2014 at 09:32 AM.
Reply With Quote
Old May 13, 2014, 09:19 AM
midelic is online now
Find More Posts by midelic
Registered User
midelic's Avatar
Joined Apr 2012
4,389 Posts
Working with pure software is not so pure,,..need additional transistors to control the power supply of each module using coresponding pins on promini...not very cheap...expensive and complicated...better with switches(in this case DIP switched very small lower footprint and compact).

For example the other solution a NPN transistor its base connected on the arduino pin and in colector the load in series (each module power pins).
midelic is online now Find More Posts by midelic
Last edited by midelic; May 13, 2014 at 09:28 AM.
Reply With Quote
Old May 13, 2014, 12:03 PM
e_lm_70 is offline
Find More Posts by e_lm_70
Registered User
Austria
Joined Jan 2004
8,803 Posts
Quote:
Originally Posted by midelic View Post
Working with pure software is not so pure,,..need additional transistors to control the power supply of each module using coresponding pins on promini...not very cheap...expensive and complicated...better with switches(in this case DIP switched very small lower footprint and compact).

For example the other solution a NPN transistor its base connected on the arduino pin and in colector the load in series (each module power pins).
Each atmega pin can drive 40mA, so it should be enough for power each module in case, one at time .. 200mA is the max allowed as total on a atmega
e_lm_70 is offline Find More Posts by e_lm_70
Reply With Quote
Old May 13, 2014, 12:27 PM
midelic is online now
Find More Posts by midelic
Registered User
midelic's Avatar
Joined Apr 2012
4,389 Posts
I know that, I was thinking about it.Actually...40mA is not enough.These modules have PA/LNA..and one module can take between 60-120 mA...so not suitable without transistors.
midelic is online now Find More Posts by midelic
Reply With Quote
Old May 13, 2014, 07:00 PM
dave1993 is offline
Find More Posts by dave1993
RC beginner
New York
Joined Oct 2008
6,054 Posts
lol. hard to miss this thread what with midelics "advertising campaign".

imo this seems pretty close to the perfect universal radio solution. most popular protocols and not restricted to any particular radio. i specially like the dip switch approach for exactly the reasons you mention. i have all the modules and would like to build one but not using that special board. its a little confusing. hopefully we dont need to use that t24. any chance you could include a wiring diagram or at least a pin list?
dave1993 is offline Find More Posts by dave1993
Reply With Quote
Old May 13, 2014, 07:15 PM
midelic is online now
Find More Posts by midelic
Registered User
midelic's Avatar
Joined Apr 2012
4,389 Posts
There is already a diagram for universal module PCB...PB made in kicad......he had the idea of controlling the modules using separate pins for each module CS pin,..... all the other corresponding pins being all connected....All module are powered all the time but "broadcasting" only one at the time.
See below his diagram in pdf..Maybe it can help you if not...I'll see what I can do later on.
Forget about Attiny...there is no need of it....I used Attiny pinout to connect to my promini.Anyway you have there all relevant pinout.It is not complicated to understand it.......all pins are connected(MISO to MISO(SO),MOSI to MOSI(SI)....aso) except CS pins.
midelic is online now Find More Posts by midelic
Last edited by midelic; May 13, 2014 at 07:20 PM.
Reply With Quote
Old May 13, 2014, 08:49 PM
midelic is online now
Find More Posts by midelic
Registered User
midelic's Avatar
Joined Apr 2012
4,389 Posts
Added on first post new diagram for people who want to design their own pcb or have their own setup.
@dave
see first post.
midelic is online now Find More Posts by midelic
Reply With Quote
Old May 13, 2014, 09:17 PM
John michel is online now
Find More Posts by John michel
Registered User
Joined Jun 2013
523 Posts
because you put name attiny 24 in schematic , so it will have some confusion . I am the first

We have a TX to compete with Devo although still lack protocol Devo

for All in one , should have some test for Range because there very much chip broadcast . I hope it only not to use for heli or something in distance 100m

all anten of modul can connect common to a super Booster ?
John michel is online now Find More Posts by John michel
RCG Plus Member
Last edited by John michel; May 13, 2014 at 09:24 PM.
Reply With Quote
Old May 13, 2014, 09:29 PM
midelic is online now
Find More Posts by midelic
Registered User
midelic's Avatar
Joined Apr 2012
4,389 Posts
In the schematic provided in attachment there was not any attiny,.. only markings on PCB..But I agree, it was confusing so ,,I hope now it is clear.

I don't compete with anybody....this is a stand alone module for any tx using PPM signal ....Later on I will add more protocols .It will not hold all protocols but only the most popular.If people want DEvo should buy Devo TX.This one is for people who already have their own good Tx happy with it, and not want to stock pile many Tx.
Only one chip at the time will broadcast...not booster ,each module have their own PA included, so the range in theory will go to the limit of their own RF amplification(which IMO is more than 1 KM). . ..Attached to each module will be an U.fl wire antenna routed in single plastic sheath(from common antenna).For more info read carefully first post..and check the links provided.
midelic is online now Find More Posts by midelic
Last edited by midelic; May 13, 2014 at 09:37 PM.
Reply With Quote
Old May 13, 2014, 10:32 PM
John michel is online now
Find More Posts by John michel
Registered User
Joined Jun 2013
523 Posts
Quote:
Originally Posted by midelic View Post
.If people want DEvo should buy Devo TX.This one is for people who already have their own good Tx happy with it, and not want to stock pile many Tx.
.
and people only want to Protocol Devo, they still should buy Tx Devo ? Mean you will not add it .

uhmmm.... I also don't want to buy pile TX .
John michel is online now Find More Posts by John michel
RCG Plus Member
Old May 14, 2014, 01:21 AM
blackmoon is offline
Find More Posts by blackmoon
flying beam
blackmoon's Avatar
through the Looking Glass
Joined Apr 2008
1,952 Posts
When you have time, adding the devo proto would be nice to

People could use the walkera S upgrade module giving them access to all CYRF based protocols.

banggood sells it very cheap vs other places : http://www.banggood.com/Walkera-WK-D...-p-922596.html

I bought one from ehirobo for double the price
blackmoon is offline Find More Posts by blackmoon
Reply With Quote
Old May 14, 2014, 05:07 AM
djdavies83 is offline
Find More Posts by djdavies83
We can rebuild it!
djdavies83's Avatar
United Kingdom, Wales, Swffryd
Joined Apr 2010
3,693 Posts
not sure if I'm seeing this right, are most of the module connections in parallel? how is one module used and the others not used?
djdavies83 is offline Find More Posts by djdavies83
Reply With Quote


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion Cheap & Easy - DIY openLRS/openLRSng - RX & TX modules e_lm_70 DIY Electronics 247 Yesterday 12:09 AM
Build Log RC Poyglot--Multiprotocol DIY TX iter DIY Electronics 136 Feb 18, 2015 01:06 PM
Discussion Cheap DIY radio - RX and TX modules e_lm_70 DIY Electronics 446 Feb 06, 2015 02:28 PM
Discussion DIY: HiSky HT8 External TX module (JR) for V922 and Taranis TX piotrkundu FrSky 1 May 04, 2014 09:18 PM
Discussion DIY Orange-tx-module-dsmx for Aurora 9x? Ashley123 Hitec/Multiplex USA 1 Feb 06, 2014 01:29 AM