SMALL - espritmodel.com SMALL - Telemetry SMALL - Radio
Reply
Thread Tools
Old May 13, 2014, 09:49 AM
Registered User
midelic's Avatar
Joined Apr 2012
3,872 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.7.2013
Fixed bug in PPM code causing problem in V2x2 protocol.
See updated code Multiprotocol_rotarySW_randomid2.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


Universal TX module PCB V1.3
http://oshpark.com/shared_projects/Df3iWl1J
Attached also hex file for multiprotocol

WARNING:
NO ATTINY 24A chip REQUIRED

At the moment protocols supported are:
1.FLYSKY
2.HUBSAN
3.FRSKY-2way
4.HISKY
5.V2X2(V202,V272... aso.)
midelic is online now Find More Posts by midelic
RCG Plus Member
Last edited by midelic; Sep 03, 2014 at 09:22 AM. Reason: added new diagram
Reply With Quote
Sign up now
to remove ads between posts
Old May 13, 2014, 09:49 AM
Registered User
midelic's Avatar
Joined Apr 2012
3,872 Posts
reserved
midelic is online now Find More Posts by midelic
RCG Plus Member
Latest blog entry: DIY Multiprotocol TX Module
Reply With Quote
Old May 13, 2014, 09:56 AM
Registered User
Austria
Joined Jan 2004
7,999 Posts
reserved ;-)
e_lm_70 is online now Find More Posts by e_lm_70
Last edited by e_lm_70; Jul 02, 2014 at 04:19 AM.
Reply With Quote
Old May 13, 2014, 10:06 AM
Registered User
midelic's Avatar
Joined Apr 2012
3,872 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
RCG Plus Member
Last edited by midelic; May 13, 2014 at 10:32 AM.
Reply With Quote
Old May 13, 2014, 10:19 AM
Registered User
midelic's Avatar
Joined Apr 2012
3,872 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
RCG Plus Member
Last edited by midelic; May 13, 2014 at 10:28 AM.
Reply With Quote
Old May 13, 2014, 01:03 PM
Registered User
Austria
Joined Jan 2004
7,999 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 online now Find More Posts by e_lm_70
Reply With Quote
Old May 13, 2014, 01:27 PM
Registered User
midelic's Avatar
Joined Apr 2012
3,872 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
RCG Plus Member
Latest blog entry: DIY Multiprotocol TX Module
Reply With Quote
Old May 13, 2014, 08:00 PM
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, 08:15 PM
Registered User
midelic's Avatar
Joined Apr 2012
3,872 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
RCG Plus Member
Last edited by midelic; May 13, 2014 at 08:20 PM.
Reply With Quote
Old May 13, 2014, 09:49 PM
Registered User
midelic's Avatar
Joined Apr 2012
3,872 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
RCG Plus Member
Latest blog entry: DIY Multiprotocol TX Module
Reply With Quote
Old May 13, 2014, 10:17 PM
Registered User
Joined Jun 2013
491 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 10:24 PM.
Reply With Quote
Old May 13, 2014, 10:29 PM
Registered User
midelic's Avatar
Joined Apr 2012
3,872 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
RCG Plus Member
Last edited by midelic; May 13, 2014 at 10:37 PM.
Reply With Quote
Old May 13, 2014, 11:32 PM
Registered User
Joined Jun 2013
491 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, 02:21 AM
flying beam
blackmoon's Avatar
through the Looking Glass
Joined Apr 2008
1,756 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 online now Find More Posts by blackmoon
Reply With Quote
Old May 14, 2014, 06:07 AM
We can rebuild it!
djdavies83's Avatar
United Kingdom, Wales, Swffryd
Joined Apr 2010
3,686 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 online now Find More Posts by djdavies83
Reply With Quote
Reply


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 201 Nov 01, 2014 06:50 AM
Discussion Cheap DIY radio - RX and TX modules e_lm_70 DIY Electronics 444 Sep 09, 2014 12:19 PM
Discussion DIY: HiSky HT8 External TX module (JR) for V922 and Taranis TX piotrkundu FrSky 1 May 04, 2014 10:18 PM
Discussion DIY Orange-tx-module-dsmx for Aurora 9x? Ashley123 Hitec/Multiplex USA 1 Feb 06, 2014 02:29 AM
Build Log RC Poyglot--Multiprotocol DIY TX iter DIY Electronics 135 Sep 27, 2009 04:24 PM