XIM Community

Tut: USB -> DualShock 4 adapter mod (W11cE Device)  (Read 104635 times)

Offline W11cE

  • MVP
  • *
  • Posts: 1532
    • View Profile
Table of contents
1. Introduction
2. Required equipment
   2.1 Tools
   2.2 Components

3. Hardware part
   3.1 Wiring schematic
   3.2 Host shield modification
   3.3 Disabling joysticks
   3.4 Case modifications
   3.5 Wiring digital potentiometers
   3.6 Soldering wires to controller pcb
   3.7 The rest of the wiring

4. Software part
   4.1 Installation
   4.2 Calibration

5. Advanced version modifications
   5.1 Buttons
   5.2 Joysticks
   5.3 Battery


1. Introduction

BE CAREFUL WHEN DRILLING OR SOLDERING OR DOING OTHER THINGS. EVERYTHING YOU DO, YOU DO ON YOUR OWN RESPONSIBILITY. THAT INCLUDES EVERYTHING DETAILED IN THIS TUTORIAL AND USAGE OF THIS DEVICE.

This tutorial will quide you how to install Teensy 3.0 and USB host shield to DS4. The code is made to work with xbox 360 controllers, but can be modified to work with any USB device the host shield supports.

Shortly: The purpose of this device is to use XIM2 / XIM3 / XIM EDGE on PS4.

The version detailed here makes original joysticks and buttons on flexboard not working. It is possbile to make a version that has all original joysticks and buttons working, but is harder to do. How to do that is detailed in "5. Advanced version modifications"
This is what the finished mod should look like:





2. Required equipment

2.1 Tools

You will need following tools for this mod:
- Dremel-like drill
- Tools for it
- Soldering iron (and all regular stuff that is needed for soldering)
- Screwdriver set
- Hot glue gun
- Pair of working brain halfs with some intelligence inside

2.2 Components

You will need following components for this mod:
- DualShock 4 controller (color does not matter)
- Teensy 3.0 (without header pins) (Teensy 3.1 will probably work, but not yet tested)
- mini USB host shield (from circuitsathome.com)
- 8x MCP4131 or MCP4151 digital potentiometers (MCP4151 recommended)
- AWG 30 wire (multiple colors recommended!)
- A little thicker wire for 5V and ground
- 4,7kohm resistor
- 2x 8,2kohm resistors


3. Hardware part

3.1 Wiring schematic

General rule in these connection pics: Same color with same name connect together. (Does not apply 100% in digital pots).


Turquoise RX,RY,LX and LY and brown AREF can be ignored if you are not going to make original joysticks work again.







3.2 Host shield modification

The shield needs to be modificated so that 5v is connected to VBUS.

You need to cut this trace:


Be carefull when soldering wire from VIN to VBUS.
It is recommended to solder this wire to bottom side of the shield.



3.3 Disabling joysticks

The wiper pins from the pots of joystics need to be disconnected.

Basically easiest is to just brutally rip those off, if desoldering seems like too much work.


3.4 Case modifications

You need to remove parts from "battery holder" plastic part, that is on the backside of the pcb.


This is from the upper left corner:


And this is from the upper right corner:


Sorry for not having those in the same picture. I added those upper cuts later.


Bottom parts need to be modificated too. This is where you need the drill.
Make room for both teensy and host shield usb connectors. Make also hole for teensy reset button.


Modify also the other parts:



When teensy and usb host shield fit there nicely put those parts back.

But leave this out:


Finally mount teensy and host shield with hot glue:


Remember to connect that ribbon cable before glueing. Also it is recommended to solder 5V wire to the backside of the host shield before glueing.

I would recommend removing rumble pads completely. You wont be needing those anyway.


3.5 Wiring digital potentiometers

First you need to make 2 "double potentimeters" for RX and RY:

Notice that all pins except chip select (pin 1) are connected together.

You can solder A, B and wiper pins directly to the controller pcb.

The ones on the center are L2 and R2. Those are upside down here, but that is not necessary. Use hot glue to mount those 2. You dont need to glue LX, LY, RX and RY.

SDI/SDO, ground and 3,3V wired. NOTE: L2 and R2 are not connected correctly in these pics!


SCK wired:


And finally CS wires:



3.6 Soldering wires to controller pcb

Flexboard connection solder spots:

Remove the carbon paint with something sharp (for example, screwdriver).
Grind solder spots a little with sand paper.
Add solder to solder spots.
Result:


Now you can solder wires. Cut wires to about same length. About 10cm should be ok.

Sorry for unsharp pic.

Finally glue wires with hot glue:



3.7 The rest of the wiring

Now that all wires are connected to controller pcb, you can put it all together.


I would recommend wiring host shield connections first. Then start soldering wires to front pins first and from there move to the back. That way you dont need to fight wires with soldering iron.


When you have connected everything it is recommended to try the code before assembling case together.

You need to leave something (for example piece of tape) between flexboard and controller pcb. This will prevent it from making any contact with solder spots.

Leave battery out too. It will not fit there anymore.



4. Software part

4.1 Installation

The final package.


4.2 Calibration

Calibration will work as easily as connecting DS4 to USB host shield with usb cable and waiting 5 seconds. Make sure Teensy is connected to pc first.


5. Advanced version modifications

These modifications require more skills that the "basic" version. Dont try these unless you have skills, patience and tools to make these.

5.1 Buttons

This part will focus on how to make this mod while leaving flexboard buttons working. For this there are 2 possible ways to do this.

1: Soldering to front and using carbon paint.


You will make the contacts higher with carbon paint. The soldering should be done well. You also need to solder dummy wires to those "empty" contacts.

2: Soldering to backside vias.


This is probably easier, but only if you have good soldering skills and tools. You need to realize that the size of these vias is smaller than 1mm !

In addition to these, L2 and R2 digital potentiometers need to be wired differently in both.



5.2 and 5.3 were supposed to be written, but it never happened. Sorry about that...
« Last Edit: 01:00 PM - 11/20/14 by W11cE »

Offline W11cE

  • MVP
  • *
  • Posts: 1532
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #1 on: 08:30 PM - 12/14/13 »
Some gameplay and photos of other peoples WDs:

« Last Edit: 03:24 PM - 03/03/14 by Od1n »

Offline W11cE

  • MVP
  • *
  • Posts: 1532
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #2 on: 08:31 PM - 12/14/13 »
EXTRA:
15 march 2014: ( DL )
Main thing in this is that in config 2, X axes are swapped between left and right stick. This is so that you can aim "SUAV" (BF4 Recon gadget) completely with mouse (or right stick). Now it is usable device ;)
« Last Edit: 06:41 PM - 03/14/14 by W11cE »

Offline W11cE

  • MVP
  • *
  • Posts: 1532
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #3 on: 08:31 PM - 12/14/13 »
reserved

Offline THE-MARAVINGY

  • MVP
  • *
  • Posts: 760
    • View Profile
  • PSN ID: ApocalypticWesal
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #4 on: 05:00 AM - 12/15/13 »
I like this thumbs W11cE fantastic tutorial no expense spared.

I especially liked the Tools 2.1  Pair of working brain halfs with some intelligence inside that made me chuckle nice.

Offline W11cE

  • MVP
  • *
  • Posts: 1532
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #5 on: 01:18 PM - 12/15/13 »
Thanks :)

btw: Shouldnt it be halves and not halfs ??? And also it should be "A pair" not "Pair".
Well im only non native english speaking human and this is only internet soo.. Good enough.

Offline Od1n

  • Global Moderator
  • MVP
  • *
  • Posts: 32960
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #6 on: 01:27 PM - 12/15/13 »
there it is!
thanks :)
PS4 & X1 | C: MS | XIM4 | FW: the latest ofc! :) | Mon: BenQ XL2420Z | Pad: Zowie G-SR | KB: Ducky DK1008L Cherry Red O-Rings| A: AKG K701 Creative X7 Antlion Modmic | M: Zowie EC1-A | D: 3200 | P: 1000hz | BF4 4 HIP: 35 ADS: 20

My Fortnite Creator Code: beamimpact
Check out my Youtube Channel: XIM Central

Offline Dannytk

  • Member
  • *
  • Posts: 14
    • View Profile
  • PSN ID: Danny_tk
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #7 on: 04:10 PM - 12/16/13 »
Hi,

Can i set this up without Xim?
The thing is i want to buy a xim.. but only if it fully supports ps4.. And by the look of it .. will take a long time.

Cheers!

Offline W11cE

  • MVP
  • *
  • Posts: 1532
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #8 on: 07:40 PM - 12/16/13 »
Yes, you can use this without XIM, but you still need some existing kb&m xbox 360 adapter.

With this PS4 will never be officially supported. Official support comes when XIM4 beta or XIM4 officially works with PS4 without adapters.

Offline RuaAD

  • Member
  • *
  • Posts: 60
  • Spaniard
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #9 on: 10:22 AM - 12/17/13 »
Hello!

First, sorry because it's maybe already explained in your previous post "plan B"

My question is:
This mod was created to use xim edge onto PS4 then use mouse keyboard, like in PS3?
or, the intention is to use DS4 controller over other's consoles like Xbone?

If so i do not understand how did you wire xim edge over this DS4 mod

Thank's in advance for your assistance  :)


Offline W11cE

  • MVP
  • *
  • Posts: 1532
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #10 on: 03:07 PM - 12/17/13 »
Hi.
This mod was created to use xim edge onto PS4 then use mouse keyboard, like in PS3?
this. Except we use edge in xbox 360 mode.

If so i do not understand how did you wire xim edge over this DS4 mod
Edge is connected to USB host shield. Host shield is connected to teensy 3.0 which controls buttons with simply pulling pins HIGH or LOW. Analog axes are controlled with digital potentiometers.

Its quite simple setup. The amount of wires makes this look complicated.

Offline RuaAD

  • Member
  • *
  • Posts: 60
  • Spaniard
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #11 on: 03:39 PM - 12/17/13 »
Except we use edge in xbox 360 mode.

Ok ! that's what i miss

Many thank's!!

Offline xxgmon3yxx

  • Member
  • *
  • Posts: 36
    • View Profile
  • PSN ID: Memo214
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #12 on: 06:00 PM - 12/17/13 »
Can I use the XIM 1 with this?

Offline W11cE

  • MVP
  • *
  • Posts: 1532
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #13 on: 06:06 PM - 12/17/13 »
Can I use the XIM 1 with this?
Yes. I see no reason why it wouldnt work.

Offline Delpan

  • Member
  • *
  • Posts: 7
    • View Profile
Re: Tut: USB -> DualShock 4 adapter mod (WIP)
« Reply #14 on: 09:11 PM - 12/17/13 »
How responsive will this solution be, if i bought the best cables, MCP4161s, and stuff money can buy...

Money aint an issue for me, so obviously im lookin at trying to solve this puzzle :)

And W11cE? how fluently will the keyboard/mouse respond on the PS4 with this idea?

I must say im quite impressed with your work...