Difference between revisions of "DIY USB adapter/fr"
(Created page with "Exemples: * Bumble-b et FT232RL connectés sur une breadboard : :<div class="image200px">[http://gimx.fr/img/screenshots/ft232rl_bumbleb.jpg http://gimx.fr/img/screenshots/ft2...") |
(Created page with "==Connexion==") |
||
Line 70: | Line 70: | ||
:<div class="image200px">[http://gimx.fr/img/adapter/soldered.jpg http://gimx.fr/img/adapter/soldered.jpg]</div> | :<div class="image200px">[http://gimx.fr/img/adapter/soldered.jpg http://gimx.fr/img/adapter/soldered.jpg]</div> | ||
− | == | + | ==Connexion== |
If you are using windows and a CP2102 usb to ttl board, install the [http://www.silabs.com/pages/DownloadDoc.aspx?FILEURL=Support%20Documents/Software/CP210x_VCP_Win_XP_S2K3_Vista_7.exe CP2102 windows drivers] first (mandatory).<br/> | If you are using windows and a CP2102 usb to ttl board, install the [http://www.silabs.com/pages/DownloadDoc.aspx?FILEURL=Support%20Documents/Software/CP210x_VCP_Win_XP_S2K3_Vista_7.exe CP2102 windows drivers] first (mandatory).<br/> |
Revision as of 17:13, 27 June 2012
Cette page explique comment fabriquer un adapteteur usb pour ps3/360.
Attention: vous êtes seul responsable du matériel que vous achetez, et de ce que vous en faites.
Matériel requis
- un adaptateur USB-série TTL qui peut fonctionner à 500kbps - examples de puces : FT232R, CP2102
- une carte de développement USB avec une puce parmi les suivantes : at90usb82, at90usb162, at90usb646, at90usb647, at90usb1286, at90usb1287, atmega16u2, atmega32u2, atmega16u4, atmega32u4
Examples:
- USB to serial TTL converter:
- CP2102 converters on ebay (as low as 4$)
- FT232R converters on ebay (as low as 15$)
- CP2102 converter at sparkfun (22$ excl. shipping costs)
- FT232R converter at sparkfun (15$ excl. shipping costs)
- Some devices like the arduino have an on-board usb to serial chip
- A second usb development board can also be programmed as a usb to serial converter.
- USB development board:
- Teensy board (atmega32u4, 16$ excl. shipping costs) (to build a solderless adapter, take a board with header pins)
- Boards used for the psgroove hack (check the on-board chip).
Testé et fonctionnel :
- Arduino duemilanove (FT232RL) + Bumble-b (plus disponible, at90usb162)
- Arduino duemilanove (FT232RL) + Teensy++ (at90usb1286)
- CP2102 board (acheté sur ebay) + Teensy 2.0 (atmega32u4)
- CP2102 board (acheté sur ebay) + Teensy++ (at90usb1286)
Recommandé : convertisseur CP2102 sur ebay (faible coût, mais délai de livraison parfois long) et carte Teensy (prix correct, bonne qualité, et livraison rapide).
Chargement du firmware
Firmwares:
There are several tools that can be used to load the hex file:
- Teensy loader (only compatible with genuine teensy boards)
- Flip utility from Atmel (not compatible with genuine teensy boards)
- dfu-programmer command-line tool (not compatible with genuine teensy boards)
exemple de ligne de commande pour dfu-programmer :
sudo dfu-programmer at90usb162 erase ; sudo dfu-programmer at90usb162 flash at90usb162.hex
Câblage
Il faut simplement connecter les pins suivants :
- GND <--> GND
- RX <--> TX
- TX <--> RX
L'exemple ci-dessous montre comment connecter un convertisseur CP2102 (à gauche) à un Teensy (à droite) :
Il est possible de souder des fils ou bien d'utiliser des "jumper wires" (fils de connexion qui sont généralement fournis avec les convertisseurs USB - série) dans le cas où la carte AVR USB a des connecteurs ("header pins").
Attention : les pins Rx et Tx peuvent être inversés sur le convertisseur USB - série.
Le convertisseur CP2102 dans l'exemple ci-dessus a des pins Rx et Tx inversés.
Si vous utilisez le convertisseur USB - série présent sur un arduino, les pins Rx et Tx sont inversés.
Exemples:
- Bumble-b et FT232RL connectés sur une breadboard :
- Teensy++ et CP2102 connectés sur une breadboard :
- Teensy et CP2102 soudés :
Connexion
If you are using windows and a CP2102 usb to ttl board, install the CP2102 windows drivers first (mandatory).
Connect the USB to serial converter to your PC, and connect the usb dev board to your ps3. Turn the PS3 on (the ps button is not working yet). The ps3 should detect a joystick (turn a sixaxis on, it should be detected as controller #2).
If it's not already done, install GIMX.
Start gimx-serial:
In Ubuntu/Linux, the USB to serial TTL converter should be detected as "ttyUSBX" (with 'X' a number).
In Windows, it should be detected as "COMX" (with 'X' a number). Check the device manager to select the right one.