DIY-Multiprotocol-TX-Module/docs/Module_Build_yourself_PCB.md
2016-09-25 08:05:11 -04:00

7.0 KiB

#DIY MPTM by soldering components on a PCB Currently the form factor of this module is designed for the JR-style module bay. Many of the popular RC transmitters use the JR-style module bay: FrSky Taranis, FlySky Th9x, Turnigy 9X/R/Pro ##What you need First you must choose the PCB onto which to solder all the components. There are two PCB options:

  • ATmega (8-bit) powered PCB V2.3d supporting individual RF modules
  • STM32 (32-bit) powered PCB supporting the 4-in-1 RF module

The ATmega-based board has been designed to accept individual RF modules. This way you can select just the module or modules you want. The downside is that each module requires its own antenna. It can become cumbersome with 4 antennas protruding from the module. It is possible to soder the 4-in-1 module to the PCB using thin insulated wire. This 4-in-1 module requires only one antenna. Finally, the Atmega board has a 32k flash memory. This is big enough to accommodate more than 15 protocols, but it cannot accommodate all the available protocols.

The STM32-based board has been designed to accept the 4-in-1 RF module with the antenna switcher (shown below). This means only one antenna. The STM32F103 processesor also has a much larger flash memory.

###ATmega board V2.3d

  1. ATmega (8-bit) powered PCB V2.3d available from OSHPark here.
  2. Individual RF modules The modules are available here:
    • CC2500 for FrSkyV, FrSkyD, FrSkyX and SFHSS
    • CYRF6936 {Can someone please give me a source} for DSM, DEVO, J6Pro
    • A7105 for Flysky, Hubsan
    • NRF24L01 for Hisky, V2x2, CX-10, SYMAX and plenty other protocols
    • The 4-in-1 RF module (available here) can also be connected with solder wires. To enable the antenna switcher the PE1 and PE2 pads must be soldered to ATmega pins, check the schematic
  3. Electronics component BOM is downloadable here. This BOM is inclusive, you many not need all the parts depending on your needs.

The schematic for the board is here. Please note that is is the general schematic - there will be some minor differences (like solder jumpers) between this and the board.

###STM32 powered PCB

  1. STM32 (32-bit) powered PCB supporting the 4-in-1 RF module available from OSHPark here.
  2. The 4-in-1 RF module is available here
  3. The BOM for this board is available here. The github project page for the STM32 module is here.

The schematic for the board is here

###Common parts

  1. A module case that fits your receiver like the one here
    or you can 3D print your own from a selection on Thingiverse (example here or here).
  2. A 2.4GHz antenna and pigtail
  3. AVR ISP programmer like the popular USBASP programming dongle that is 3.3V safe - available from many sellers on ebay. There are reports that some of the cheap programmers are not safe to use with 3.3V units (like this unit). Look for USBAsp programmers with the “LC Technologies” label. {Pascal to confirm these reports are true} Also, you will need a 10-pin to 6-pin connector to connect the USBASP to the board.

##Build instructions If you got this far you already know what you are doing!!

###Common steps

  1. Solder all the parts according to the BOM part numbering and the images for your board (see OSHPARK for the images)
  2. Fit the module into the module case. This may require some careful filing or sanding of the module to ensure a nice fit.

###PPM interface If you are only planning on using the PPM interface with transmitter you are ready to program the module as described in Compiling and Programming the module.

###Enabling Serial interface If you have a transmitter that can support serial communication with the board then you need to solder some jumpers.

ATmega V2.3d board

There are four solder type jumpers on the bottom side of the board near the lower left corner when the bottom of the board is facing towards you. The silkscreen shows which jumper is which. These four jumpers enable the board to be configured in several ways as explaned below.

(J-1)	Use (PPM V/V) if the incoming PPM signal is at a higher voltage level, leave open if ~~5V.

(J-2)	Use (Jumper 2) to connect the incomming PPM signal to the RX pin on the processor

(J-3)	Short (TELEM) only if you have done a telemetry mod to your radio, leave open if not needed. When connected, pin 2 of the two pin header (P3) is also connected.

(J-4) Use (MOD) only to connect the transmitter pin 2 to pin 1 of the two pin header (P3).

It is most likely J-2 will be the only one needing to be shorted for the serial method of sending model protocols.

You are now ready to go over to Compiling and Programming.

STM32 board

Solder bridges and resistors as illustrated in the picture below. {need to get info from midelic}

You are now ready to go over to Compiling and Programming STM32.

#Reference Schematic Here is the schematic you can use to troubleshoot the module

PCB V2.3d Schematic

## PCB STM32 Schematic