Export translations
Jump to:
navigation
,
search
Settings
Group
Axis translation parameters
Bluetooth dongle
Command line
Compatibility
Config Editors
Contribute
Development on Linux
Development on Windows
DIY USB adapter
DIY USB adapter for dummies
FAQ
Features
Force Feedback
Gimx-fpsconfig
Installation
Macros
Main Page Old
Mouse Calibration
Mouse tweaks
Quick Start
RPi
Template:Deprecated
Template:Firmwares
Translate
Language
aa - Afar
ab - Abkhazian
ace - Achinese
ady - Adyghe
ady-cyrl - адыгабзэ
aeb - Tunisian Arabic
aeb-arab - تونسي
aeb-latn - Tûnsî
af - Afrikaans
ak - Akan
aln - Gheg Albanian
am - Amharic
an - Aragonese
ang - Old English
anp - Angika
ar - Arabic
arc - Aramaic
arn - Mapuche
arq - Algerian Arabic
ary - Moroccan Arabic
arz - Egyptian Arabic
as - Assamese
ase - American Sign Language
ast - Asturian
atj - Atikamekw
av - Avaric
avk - Kotava
awa - Awadhi
ay - Aymara
az - Azerbaijani
azb - South Azerbaijani
ba - Bashkir
ban - Balinese
bar - Bavarian
bbc - Batak Toba
bbc-latn - Batak Toba
bcc - Southern Balochi
bcl - Central Bikol
be - Belarusian
be-tarask - Belarusian (Taraškievica orthography)
bg - Bulgarian
bgn - Western Balochi
bho - Bhojpuri
bi - Bislama
bjn - Banjar
bm - Bambara
bn - Bangla
bo - Tibetan
bpy - Bishnupriya
bqi - Bakhtiari
br - Breton
brh - Brahui
bs - Bosnian
bto - Iriga Bicolano
bug - Buginese
bxr - Russia Buriat
ca - Catalan
cbk-zam - Chavacano
cdo - Min Dong Chinese
ce - Chechen
ceb - Cebuano
ch - Chamorro
cho - Choctaw
chr - Cherokee
chy - Cheyenne
ckb - Central Kurdish
co - Corsican
cps - Capiznon
cr - Cree
crh - Crimean Turkish
crh-cyrl - Crimean Turkish (Cyrillic script)
crh-latn - Crimean Turkish (Latin script)
cs - Czech
csb - Kashubian
cu - Church Slavic
cv - Chuvash
cy - Welsh
da - Danish
de - German
de-at - Austrian German
de-ch - Swiss High German
de-formal - German (formal address)
din - Dinka
diq - Zazaki
dsb - Lower Sorbian
dtp - Central Dusun
dty - Doteli
dv - Divehi
dz - Dzongkha
ee - Ewe
egl - Emilian
el - Greek
eml - Emiliano-Romagnolo
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - Spanish
es-formal - español (formal)
et - Estonian
eu - Basque
ext - Extremaduran
fa - Persian
ff - Fulah
fi - Finnish
fit - Tornedalen Finnish
fj - Fijian
fo - Faroese
fr - French
frc - Cajun French
frp - Arpitan
frr - Northern Frisian
fur - Friulian
fy - Western Frisian
ga - Irish
gag - Gagauz
gan - Gan Chinese
gan-hans - Simplified Gan script
gan-hant - Traditional Gan script
gcr - kréyòl gwiyanè
gd - Scottish Gaelic
gl - Galician
glk - Gilaki
gn - Guarani
gom - Goan Konkani
gom-deva - Goan Konkani (Devanagari script)
gom-latn - Goan Konkani (Latin script)
gor - Gorontalo
got - Gothic
grc - Ancient Greek
gsw - Swiss German
gu - Gujarati
gv - Manx
ha - Hausa
hak - Hakka Chinese
haw - Hawaiian
he - Hebrew
hi - Hindi
hif - Fiji Hindi
hif-latn - Fiji Hindi (Latin script)
hil - Hiligaynon
ho - Hiri Motu
hr - Croatian
hrx - Hunsrik
hsb - Upper Sorbian
ht - Haitian Creole
hu - Hungarian
hu-formal - magyar (formal)
hy - Armenian
hz - Herero
ia - Interlingua
id - Indonesian
ie - Interlingue
ig - Igbo
ii - Sichuan Yi
ik - Inupiaq
ike-cans - Eastern Canadian (Aboriginal syllabics)
ike-latn - Eastern Canadian (Latin script)
ilo - Iloko
inh - Ingush
io - Ido
is - Icelandic
it - Italian
iu - Inuktitut
ja - Japanese
jam - Jamaican Creole English
jbo - Lojban
jut - Jutish
jv - Javanese
ka - Georgian
kaa - Kara-Kalpak
kab - Kabyle
kbd - Kabardian
kbd-cyrl - Адыгэбзэ
kbp - Kabiye
kg - Kongo
khw - Khowar
ki - Kikuyu
kiu - Kirmanjki
kj - Kuanyama
kk - Kazakh
kk-arab - Kazakh (Arabic script)
kk-cn - Kazakh (China)
kk-cyrl - Kazakh (Cyrillic script)
kk-kz - Kazakh (Kazakhstan)
kk-latn - Kazakh (Latin script)
kk-tr - Kazakh (Turkey)
kl - Kalaallisut
km - Khmer
kn - Kannada
ko - Korean
ko-kp - 한국어 (조선)
koi - Komi-Permyak
kr - Kanuri
krc - Karachay-Balkar
kri - Krio
krj - Kinaray-a
krl - Karelian
ks - Kashmiri
ks-arab - Kashmiri (Arabic script)
ks-deva - Kashmiri (Devanagari script)
ksh - Colognian
ku - Kurdish
ku-arab - كوردي (عەرەبی)
ku-latn - Kurdish (Latin script)
kum - Kumyk
kv - Komi
kw - Cornish
ky - Kyrgyz
la - Latin
lad - Ladino
lb - Luxembourgish
lbe - Lak
lez - Lezghian
lfn - Lingua Franca Nova
lg - Ganda
li - Limburgish
lij - Ligurian
liv - Livonian
lki - Laki
lmo - Lombard
ln - Lingala
lo - Lao
loz - Lozi
lrc - Northern Luri
lt - Lithuanian
ltg - Latgalian
lus - Mizo
luz - Southern Luri
lv - Latvian
lzh - Literary Chinese
lzz - Laz
mai - Maithili
map-bms - Basa Banyumasan
mdf - Moksha
mg - Malagasy
mh - Marshallese
mhr - Eastern Mari
mi - Maori
min - Minangkabau
mk - Macedonian
ml - Malayalam
mn - Mongolian
mo - молдовеняскэ
mr - Marathi
mrj - Western Mari
ms - Malay
mt - Maltese
mus - Creek
mwl - Mirandese
my - Burmese
myv - Erzya
mzn - Mazanderani
na - Nauru
nah - Nāhuatl
nan - Min Nan Chinese
nap - Neapolitan
nb - Norwegian Bokmål
nds - Low German
nds-nl - Low Saxon
ne - Nepali
new - Newari
ng - Ndonga
niu - Niuean
nl - Dutch
nl-informal - Nederlands (informeel)
nn - Norwegian Nynorsk
nov - Novial
nrm - Norman
nso - Northern Sotho
nv - Navajo
ny - Nyanja
nys - Nyunga
oc - Occitan
olo - Livvi-Karelian
om - Oromo
or - Odia
os - Ossetic
pa - Punjabi
pag - Pangasinan
pam - Pampanga
pap - Papiamento
pcd - Picard
pdc - Pennsylvania German
pdt - Plautdietsch
pfl - Palatine German
pi - Pali
pih - Norfuk / Pitkern
pl - Polish
pms - Piedmontese
pnb - Western Punjabi
pnt - Pontic
prg - Prussian
ps - Pashto
pt - Portuguese
pt-br - Brazilian Portuguese
qu - Quechua
qug - Chimborazo Highland Quichua
rgn - Romagnol
rif - Riffian
rm - Romansh
rmy - Romani
rn - Rundi
ro - Romanian
roa-tara - Tarantino
ru - Russian
rue - Rusyn
rup - Aromanian
ruq - Megleno-Romanian
ruq-cyrl - Megleno-Romanian (Cyrillic script)
ruq-latn - Megleno-Romanian (Latin script)
rw - Kinyarwanda
sa - Sanskrit
sah - Sakha
sat - Santali
sc - Sardinian
scn - Sicilian
sco - Scots
sd - Sindhi
sdc - Sassarese Sardinian
sdh - Southern Kurdish
se - Northern Sami
sei - Seri
ses - Koyraboro Senni
sg - Sango
sgs - Samogitian
sh - Serbo-Croatian
shi - Tachelhit
shi-latn - Tašlḥiyt
shi-tfng - ⵜⴰⵛⵍⵃⵉⵜ
shn - Shan
si - Sinhala
sk - Slovak
skr - سرائیکی
skr-arab - سرائیکی
sl - Slovenian
sli - Lower Silesian
sm - Samoan
sma - Southern Sami
sn - Shona
so - Somali
sq - Albanian
sr - Serbian
sr-ec - Serbian (Cyrillic script)
sr-el - Serbian (Latin script)
srn - Sranan Tongo
ss - Swati
st - Southern Sotho
stq - Saterland Frisian
sty - cебертатар
su - Sundanese
sv - Swedish
sw - Swahili
szl - Silesian
ta - Tamil
tay - Tayal
tcy - Tulu
te - Telugu
tet - Tetum
tg - Tajik
tg-cyrl - Tajik (Cyrillic script)
tg-latn - Tajik (Latin script)
th - Thai
ti - Tigrinya
tk - Turkmen
tl - Tagalog
tly - Talysh
tn - Tswana
to - Tongan
tpi - Tok Pisin
tr - Turkish
tru - Turoyo
ts - Tsonga
tt - Tatar
tt-cyrl - Tatar (Cyrillic script)
tt-latn - Tatar (Latin script)
tum - Tumbuka
tw - Twi
ty - Tahitian
tyv - Tuvinian
tzm - Central Atlas Tamazight
udm - Udmurt
ug - Uyghur
ug-arab - Uyghur (Arabic script)
ug-latn - Uyghur (Latin script)
uk - Ukrainian
ur - Urdu
uz - Uzbek
uz-cyrl - ўзбекча
uz-latn - oʻzbekcha
ve - Venda
vec - Venetian
vep - Veps
vi - Vietnamese
vls - West Flemish
vmf - Main-Franconian
vo - Volapük
vot - Votic
vro - Võro
wa - Walloon
war - Waray
wo - Wolof
wuu - Wu Chinese
xal - Kalmyk
xh - Xhosa
xmf - Mingrelian
yi - Yiddish
yo - Yoruba
yue - Cantonese
za - Zhuang
zea - Zeelandic
zh - Chinese
zh-cn - Chinese (China)
zh-hans - Simplified Chinese
zh-hant - Traditional Chinese
zh-hk - Chinese (Hong Kong)
zh-mo - 中文(澳門)
zh-my - 中文(马来西亚)
zh-sg - Chinese (Singapore)
zh-tw - Chinese (Taiwan)
zu - Zulu
qqq - Message documentation
Format
Export for off-line translation
Export in native format
{{DISPLAYTITLE:DIY USB adapter}}<languages /> This page explains how to build a GIMX DIY USB adapter.<br /> '''[https://blog.gimx.fr/shop/ Buy a ready to use GIMX adapter from the official GIMX shop.]'''<br /> '''A much easier but less complete tutorial is also available: [[DIY_USB_adapter_for_dummies|DIY USB Adapter for dummies]].'''<br /> A German translation of a previous version is also available on the forum: [https://forum.gimx.fr/viewtopic.php?f=4&t=362 old German translation]. Warning: you are responsible for the hardware you buy, and anything right or wrong you do with this. ==Required hardware parts== <div class="mw-collapsible mw-collapsed"> ===USB to UART adapter=== <div class="mw-collapsible-content"> Make sure it works at '''500kbps''' and that it is '''5V tolerant'''. {| class="wikitable" | chip || CP2102 || FT232R || PL2303HX || CH340 || FT230X |- | 5V tolerant | style="background: green; color: white;" | yes | style="background: orange; color: white;" | (1) | style="background: orange; color: white;" | (1) | style="background: orange; color: white;" | (1) | style="background: green; color: white;" | yes |- | 500 kbps | style="background: green; color: white;" | yes | style="background: green; color: white;" | yes | style="background: orange; color: white;" | (2) | style="background: red; color: white;" | no | style="background: green; color: white;" | yes |- | |- | compatible | style="background: green; color: white;" | yes | style="background: orange; color: white;" | (1) | style="background: orange; color: white;" | (1)(2) | style="background: red; color: white;" | no | style="background: green; color: white;" | yes |} (1) depends on the board<br /> (2) only on Linux<br /> Examples: * [http://jim.sh/ftx/ MicroFTX (10$ excl. shipping costs)] * [http://www.ebay.com/sch/i.html?_odkw=cp2102&LH_BIN=1&_sop=15&_osacat=0&_from=R40&LH_PrefLoc=2&_from=R40&_trksid=p2045573.m570.l1313.TR0.TRC0.H0.Xcp2102+-pl2303&_nkw=cp2102+-pl2303&_sacat=0 CP2102 converters on ebay (as low as 3$)] * [http://www.ebay.com/sch/i.html?_odkw=ft232+-cp2102+-ssop&LH_BIN=1&_sop=15&_osacat=0&_from=R40&LH_PrefLoc=2&_from=R40&_trksid=p2045573.m570.l1313.TR0.TRC0.H0.Xft232+-cp2102+-pl2303+-ssop&_nkw=ft232+-cp2102+-pl2303+-ssop&_sacat=0 FT232R converters on ebay (as low as 4$)] * [http://www.sparkfun.com/products/198 CP2102 converter at sparkfun (22$ excl. shipping costs)] * [http://www.sparkfun.com/products/718 FT232R converter at sparkfun (15$ excl. shipping costs)] * Some devices like the arduino have an on-board usb to serial chip (remove the AVR chip to use it) * A second usb development board can also be programmed as a usb to serial converter. </div> </div> <div class="mw-collapsible mw-collapsed"> === AVR USB development board === <div class="mw-collapsible-content"> Make sure it is '''working at 5V''' and that is has a chip among the following: at90usb82, at90usb162, at90usb646, at90usb647, at90usb1286, at90usb1287, atmega16u2, atmega32u2, atmega16u4, atmega32u4<br /> There is a known issue with at90usb162, at90usb1286 and at90usb1287 boards. Other chips may be impacted. The best choice is an atmega32u4 board.<br /> Examples: * [http://www.pjrc.com/store/teensy.html Teensy 2.0 board (atmega32u4, 16$ excl. shipping costs)] (to build a solderless adapter, take a board [http://www.pjrc.com/store/teensy_pins.html with header pins]) (newer Teensy 3.x and LC boards are NOT compatible as they do not have the same chip) * Boards used for the psgroove hack (check the on-board chip). * Arduino-compatible boards based on the atmega32u4 chip ** [http://arduino.cc/en/Main/ArduinoBoardLeonardo Arduino Leonardo] - [http://arduino.cc/en/Main/Buy distributors] - (cheap Chinese clones can be found on ebay for 11$ incl. shipping costs) ** [http://www.ebay.com/sch/i.html?_sop=15&_from=R40&_sacat=0&_nkw=pro+micro+atmega32u4+-atmega328&LH_PrefLoc=2&rt=nc&LH_BIN=1 Cheap atmega32u4 boards on ebay] (about 4$). Soldering required. </div> </div> ==Wiring== <div class="mw-collapsible mw-collapsed"> ===Connection table=== <div class="mw-collapsible-content"> The only thing you have to do is to connect the following pins: {| class="wikitable" | USB dev board || USB to UART board |- | GND || GND |- | RX || TX / TXO / TXD |- | TX || RX / RXI / RXD |} '''Warning: some adapters are mislabeled and have inverted RX/TX.'''<br /> With a Teensy 2.0 or Arduino Leonardo as a USB dev board: {| class="wikitable" | Arduino Leonardo || Teensy 2.0 || USB to UART board |- | GND || GND || GND |- | 0 (RX1) || D2 || TX / TXO / TXD |- | 1 (TX1) || D3 || RX / RXI / RXD |} If you use the arduino on-board USB to serial converter, Rx and Tx are inverted, i.e. Rx = TX▶ and Tx = RX◀ </div> </div> <div class="mw-collapsible mw-collapsed"> ===Examples=== <div class="mw-collapsible-content"> * mislabeled CP2102 converter (left) to a Teensy 2.0 board (right) :<div class="image200px">[https://gimx.fr/img/screenshots/PC-to-PS3-USB-controller.JPG https://gimx.fr/img/screenshots/PC-to-PS3-USB-controller.JPG]</div> * using jumper wires (these are generally provided with USB to serial TTL boards) in case your AVR USB board has header pins: :<div class="image200px">[https://gimx.fr/img/adapter/solderless.jpg https://gimx.fr/img/adapter/solderless.jpg]</div> * Bumble-b and FT232RL wired on a breadboard: :<div class="image200px">[https://gimx.fr/img/screenshots/ft232rl_bumbleb.jpg https://gimx.fr/img/screenshots/ft232rl_bumbleb.jpg]</div> * Teensy++ and CP2102 wired on a breadboard: :<div class="image200px">[https://gimx.fr/img/screenshots/cp2102_teensy++.jpg https://gimx.fr/img/screenshots/cp2102_teensy++.jpg]</div> * Teensy 2.0 and CP2102 soldered: :<div class="image200px">[https://gimx.fr/img/adapter/soldered.jpg https://gimx.fr/img/adapter/soldered.jpg]</div> </div> </div> ==Firmware loading== <div class="mw-collapsible mw-collapsed"> ===Firmwares=== <div class="mw-collapsible-content"> [http://gimx.fr/download/gimx-firmwares Download link]<br/> Available controller emulations: {{Firmwares/en}} </div></div> ===GIMX adapter or Arduino-compatible atmega32u4-based boards=== <div class="mw-collapsible mw-collapsed"> ====Using the GIMX loader tool==== <div class="mw-collapsible-content"> '''(easy method, recommended)''' * Download the [https://gimx.fr/download/gimx_loader.zip GIMX loader tool] and unzip the archive. * Right-click on the arduino.inf file and click on Install. * Replace the atmega32u4.hex file with the one you which to load (the firmware included in the archive is the EMUG29PS4 one). * Run loader.exe and follow the instructions. Upon success a "Success! Press enter to exit." message should be displayed.<br /> </div></div> <div class="mw-collapsible mw-collapsed"> ====Using Avrdude==== <div class="mw-collapsible-content"> '''(hard method, not recommended)''' * Download the [https://gimx.fr/download/arduino_drivers.zip Arduino Leonardo drivers] and unzip the archive. * Right-click on the arduino.inf file and click on Install. * Make sure that the USB to UART board (e.g. CP2102) is connected and powered, and that the wiring with the atmega32u4 board is correct (see above GND->GND, TXD->RXD, RXD->TXD). * Make sure that the atmega32u4 board is connected to your computer and powered. * You should now have the atmega32u4 board connected via the USB-to-UART ''and'' via its on-board USB port * Download the [http://sourceforge.net/projects/arduinodev/files/ArduinoBuilder/ArduinoBuilder-0.9.1.7z/download Arduino Builder tool] and extract the archive (using [http://www.7-zip.org/ 7zip]). * Open a command window (cmd) and change the current directory to the extracted ArduinoBuilder folder. e.g. cd "C:\Path\To\ArduinoBuilder\", or simply shift-right-click in windows file explorer and click "open command window here." * Type the following text but don't press enter: avrdude -p atmega32u4 -c avr109 -P COMx -D -U flash:w:<path to atmega32u4.hex>:i * Make sure to replace "<path to atmega32u4.hex>" in the command line with the location of the firmware to load (for example: C:\Users\YourUserName\Downloads\firmwares-5.0\EMUPS4\atmega32u4.hex). * Open the device manager, and expand the "Ports" item. You should see your USB-to-UART driver (e.g. CP2102) connected to a COM port and the Arduino connected to another COM port. *Neither* of these are the COM ports you're looking for, in all likelihood. * Unplug/replug the atmega32u4 on-board USB (''not'' the USB-to-UART) from your computer (doing this on the computer side rather than the Arduino side may be easier). When you replug it back in, watch the device manager, and notice which COM port is opened when the bootloader starts up. Ideally, this will be the same every time it is disconnected and reconnected. *THIS* is the COM port you want! * Change the "x" in "COMx" in the above command to the number of the COM port that the bootloader uses. * Unplug and replug the atmega32u4 USB again, and as soon the bootloader COM shows up, press enter to execute your command * The bootloader is executed very briefly. You may have to make a few attempts before the firmware gets loaded correctly! * If successful, avrdude should say "avrdude done. Thank you." In GNU/Linux, the avrdude command is: avrdude -p atmega32u4 -c avr109 -P /dev/ttyACM0 -D -U flash:w:atmega32u4.hex:i (make sure to adjust the port and the file) </div> </div> <div class="mw-collapsible mw-collapsed"> ===Teensy boards=== <div class="mw-collapsible-content"> Teensy boards can be easily flashed using the [http://www.pjrc.com/teensy/loader.html Teensy Loader].<br /> It is only compatible with '''genuine''' teensy boards. </div> </div> <div class="mw-collapsible mw-collapsed"> ===Other tools (DFU-compatible boards)=== <div class="mw-collapsible-content"> There are a few other tools that can be used to load the hex file: * [http://www.atmel.com/tools/FLIP.aspx Flip utility from Atmel] (not compatible with genuine teensy boards and with Arduino-compatible atmega32u4-based boards) * [http://dfu-programmer.sourceforge.net/ dfu-programmer command-line tool] (not compatible with genuine teensy boards and with Arduino-compatible atmega32u4-based boards) dfu-programmer example: sudo dfu-programmer at90usb162 erase sudo dfu-programmer at90usb162 flash at90usb162.hex sudo dfu-programmer at90usb162 reset </div></div> <div class="mw-collapsible mw-collapsed"> ==Serial port settings== This is needed on Windows, for USB to UART adapters based on a FTDI chip. <div class="mw-collapsible-content"> On Windows the driver for FTDI chips (e.g. FT232R, FT230X, FT231X...) provides a "Latency Timer" setting than should be set to 1ms for optimal performance.<br /> The procedure is detailed on the FTDI website: [http://www.ftdichip.com/Support/Knowledgebase/index.html?cdmcomportadvancedproperti.htm link]. </div> </div> ==Next Tutorial== Now that your adapter is ready you can follow the instructions on the [[Quick_Start|Quick Start page]].
Navigation menu
Personal tools
English
Create account
Log in
Namespaces
Special page
Variants
Views
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version