Hardware description: ISP connector instalation

To change software in your Transmitter you will need ISP (in system programming) connection. It allows you to connect programmer (for Atmel AVR processors) and reprogram flash and eeprom memory. Before that you should backup your original software first!

Required components

If you wants to convert your transmitter you will need flowing components:

  • 10-pins box header connector (if you want you can use 6-pin connector)
  • if you have chosen standard connector, then you will need universal PCB
  • 6 thin cables 25 cm length
or better:
  • 6-pin female connector, which can reduce chance accidental short circut
  • plug correct for chosen connector
  • 6 thin cables 25 cm length
or:
  • Box header 10-pin connector for ribbon cable
  • 10-wires ribbon cable
In addition, You will need:
  • soldering iron
  • solder

Connector manufacturing

Let start from preparing connector. Here is connector schema (with soldering example):



You can use 6-pin PS2 connector and here is how to connect cables (example by Xoltri):

Connections

Below you can see picture of Turnigy 9X motherboard with marking where to solder which wire. Some explanation is needed when connecting SCK. There are two different transmitter version on the market. It can be distinguished by the position SCK pad. If PAD looks like on this photo, then you need to solder SCK wire to resistor (as on photo). If SCK pad is in place marked as "v2" then you can solder SCK cable to that PAD.

Test

Connect your programator to ISP connector, set it into "powering programing board" mode and check if you can read processor signature. If yes, then everything is ok, if not, then check all connections. Podłącz programator ISP do złącza, przestaw go w tryb zasilania programowanego układu i sprawdź czy jesteś w stanie odczytać "sygnaturę" procesora. Jeżeli tak, to wszystko jest ok, jeżeli nie sprawdź połączenia.

Install connector in transmitter

It is many possibility how to do that, you can cut a hole in bottom or hide connector under battery cover.


If you chose to use round connector, it can look like this:


Instalacja programatora w nadajniku

Inną możliwością jest zainstalowanie programatora (np. USBasp) wewnątrz nadajnika i wyprowadzenie na zewnątrz gniazda (np. mini USB typu "B"):

Dzięki tej modyfikacji możemy podłączyć aparaturę do komputera za pomocą popularnego kabla USB:

Original software backup

AVR programmer can be driven by many different software. One of them is avrdude (but it has no user interface). To make whole transmitter software backup you can use following command:

avrdude -p m64 -c stk500v2 -P com3 -U flash:r:"x9_flash.bin":r -U eeprom:r:"x9_eeprom.bin":r -U lfuse:r:"9x_lf.bin":r -U hfuse:r:"9x_hf.bin":r -U lock:r:"9x_lock.bin":r -U efuse:r:"9x_ef.bin":r -U calibration:r:"9x_cal.bin":r -U signature:r:"9x_sig.bin":r

W przypadku używania innego programatora należy zmienić parametr "-c" oraz "-P". Pierwszy wskazuję rodzaj programatora, drugi sposób jego podłączenia. Dla popularnego USBasp parametry te będą wyglądały następująco: -c usbasp -P usb

Last edited on 06/18/2012 21:15:56
Powered by Anwiki • 0.056 sec • 2.49 MB