Difference between revisions of "DIY USB adapter/fr"

From GIMX
Jump to: navigation, search
(Created page with "exemple de ligne de commande pour dfu-programmer : sudo dfu-programmer at90usb162 erase ; sudo dfu-programmer at90usb162 flash at90usb162.hex")
(Created page with "==Câblage==")
Line 43: Line 43:
 
     sudo dfu-programmer at90usb162 erase ; sudo dfu-programmer at90usb162 flash at90usb162.hex
 
     sudo dfu-programmer at90usb162 erase ; sudo dfu-programmer at90usb162 flash at90usb162.hex
  
==Wiring==
+
==Câblage==
  
 
The only thing you have to do is to connect the following pins:
 
The only thing you have to do is to connect the following pins:

Revision as of 17:07, 27 June 2012

Other languages:
English • ‎français

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

  1. un adaptateur USB-série TTL qui peut fonctionner à 500kbps - examples de puces : FT232R, CP2102
  2. une carte de développement USB avec une puce parmi les suivantes : at90usb82, at90usb162, at90usb646, at90usb647, at90usb1286, at90usb1287, atmega16u2, atmega32u2, atmega16u4, atmega32u4

Examples:

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:

exemple de ligne de commande pour dfu-programmer :

   sudo dfu-programmer at90usb162 erase ; sudo dfu-programmer at90usb162 flash at90usb162.hex

Câblage

The only thing you have to do is to connect the following pins:

  • GND <--> GND
  • RX <--> TX
  • TX <--> RX

The example below shows how to connect a CP2102 converter (left) to a Teensy board (right):

It's possible to solder wires or to use jumper wires (these are generally provided with USB to serial TTL boards) in case your AVR USB board has header pins:

Warning: Rx and Tx may be inverted on the usb to serial TTL board.
The CP2102 converter in the above example has inverted Rx and Tx.
If you use the arduino on-board USB to serial converter, Rx and Tx are inverted.

Examples:

  • Bumble-b and FT232RL wired on a breadboard:
  • Teensy++ and CP2102 wired on a breadboard:
  • Teensy and CP2102 soldered:

Connection

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.