If you’d like to play BattleCallSpaceMarine on the Playstation 4 with a keyboard and mouse – and have an unfair advantage over everyone else playing on a console – you’d normally be out of luck. Sony implemented a fair bit of software to make sure only officially licensed controllers are able to talk to the console. It took a while, but [Frank Zhao] has figured out why keyboard and mouse doesn’t work on PS4, and created a device to enable these superior input devices.
Sony engineers decided – or were told – that the PS4 shouldn’t be able to connect to any old USB device. To that end, they made the console issue challenges to a DualShock controller to make sure the official controller is always connected over Bluetooth.
[Frank]’s device solves this problem by taking the USB output from a keyboard and mouse, doing the CRC calculations, and sending them out over Bluetooth. Because the PS4 constantly issues challenges and responses of the authentication procedure, a real DualShock controller needs to be connected to the device at all times. Still, if you want a keyboard and mouse on the PS4, this is the way to do it.
All the sources and layouts are up on [Frank]’s github where you’re free to create your own. This isn’t a finished product quite yet; [Frank] still needs to do a redesign of the circuit. Judging from the response of his earlier attempt at keyboards and mice on the PS4, though, this may be a successful product in the works.
[Frank Zhao]—an awesome guy, an inadvertent Hackaday contributor, and an Adafrut fellow—has come up with a device to use a keyboard and mouse with Playstation 4 games. He calls it the UsbXlater, and even if [Frank] can’t get it working with his PS4, it’s still going to be an awesome tool.
On the board are two USB ports and an STM32F2 microcontroller. The micro provides a USB host interface and a USB device interface, enabling it to translate mouse movements and keystrokes into something a PS4 can understand. While this project was originally designed to use a keyboard and mouse on [Frank]’s shiny new PS4, it’s not quite working just yet. He’s looking for a few gamer/dev folks to help him suss out the communication between a keyboard/mouse, the UsbXlater, and a PS4.
Of course, even if this device is never used for what it’s designed for, it’s still a very, very interesting tool. With two USB ports, the UsbXlater could act as a signal generator for USB devices and hosts, analyze USB traffic, or provide other applications that haven’t even been thought of yet.
[Frank] is hitting his head against the wall trying to figure out the PS4 protocol, so if you have some USB skills, feel free to hit him up for a blank PCB, though preference falls to people who will game with it and to those with a USB traffic analyzer. If you lack the skills for USB development, [Frank] is still looking for a better name for his device.
[Mori] wanted to use his keyboard and mouse to play his favorite games on the PS4, so he decided to modify his Dualshock4 controller to feed it custom input signals.
In the heart of this build is an STM32F407 discovery board, which is connected to a USB hub. To perform this hack, [Mori] tore open the Dualshock4 controller to find the PCB traces coming from the sticks and buttons. He then used the STM32F407 and 2 Digital to Analog Converters (DACs) to create similar signals. Unfortunately for us, [Mori] only released the schematics but not the firmware. Our guess is that he had to configure the microcontroller as a USB host, enumerate the mouse/keyboard, parse the HID reports and feed the controller the corresponding inputs.
We embedded a video of the hack in action after the break. If you own a PS4, you may also want to see how to disable the Dualshock LEDs.
Continue reading “Modifying a PS4 Dualshock4 Controller to Use a Mouse and Keyboard”
The controllers from the last generation of consoles served their purpose well. They were there for us when we wanted to experiment with an I2C bus, and they stood by when we wanted to build a quadcopter out of parts just lying around. A new generation of consoles is now upon us, and with them come new controllers. Controllers for which Arduino libraries haven’t been written yet. The horror.
Until those libraries are developed, there’s ChronusMAX, a USB dongle that allows you to use XBox One controllers on a PS4, PS4 controllers on the XBox, mice and keyboards on both systems, and both types of controllers on your PC.
The folks behind ChronusMAX put up a video demoing the XBox One controller working on the 360, PS3, and PC, with another video showing the same for the PS4 controller. As far as what we can see from the PC demos, everything on these controllers can be read, right down to the accelerometer data on the DualShock 4.
Although this is a commercial product, we’re surprised we haven’t seen a more open version by now. From the looks of it, it’s a very small device with two USB ports and a firmware upload utility. Microcontrollers with two native USB ports are usually encased in large packages, so there might be some very clever engineering in this device. Let us know when someone does a teardown of one of these.
Thanks [Josh] for sending this one in.
The new Playstation 4 Dualshock controllers are super high-tech. They have bright shiny lights on them to prove it.
But [xn0] from neograf.com had a suspicion about these new-fangled controllers. That LED light bar is awfully bright, how much power does it consume?
As it turns out, quite a bit. After dismantling one of his controllers he discovered the LEDs are connected to the main PCB with a ribbon cable — super easy to detach. He then performed some rather unscientific tests of leaving the controllers on over night. His empirical conclusion? If you leave the controller with lights on it will die within 24 hours, if you disable the lights, it will still be at approximately 66% battery capacity after the same amount of time.
Another user on the forums quickly pointed out that this test could have been as simple as using a multimeter — so he did that afterwards. The LEDs appear to draw around 40-50mA, which isn’t that much, but it is more than the controller uses while idle (30-40mA)!
We assume Sony will add a firmware option to turn these lights off in the future, but until then, if you’re really dying for an extra hour or so of gameplay, it’s a super easy modification.
3rd party console game controllers sometimes sport a “rapid-fire” button to give gamers an unfair advantage. [Connor’s] project is along the same lines, but his hack had a different goal: automate the input of GTA5 cheat codes. [Connor] admits that this is his first Arduino hack, but aside from a small hiccup, he managed to pull it off. The build connects each button on a PS3 controller via some ribbon cable to its own digital out on an Arduino Uno . After plugging in some pretty straightforward code, [Connor] can simply press one button to automate a lengthy cheat code process.
[Matt’s] hack manages to save him even more user input in this second video game hack, which automates finger clicks in an Android game. [Matt] pieced together a couple of servos plugged into a PICAXE-18M2 microcontroller, which repeats one simple action in [Matt’s] Sims Freeplay game: continuously “freshening” (flushing?) a toilet. To mimic the same capacitive response of two fingers, [Matt] built the two contact surfaces out of some anti-static foam, then grounded them out with a wire to the ground on the board.
Check out a gallery of [Connor’s] controller and a video of [Matt’s] tablet hack after the break, then check out a rapid fire controller hack that attacks an XBox360 controller.
Continue reading “Video Game Automation Hacks”
It’s not exactly a portable, but [Downing]’s PS2 advance puts all the power of a Playstation 2 in the palm of your hands, all while being more popular that the Vita.
For the audio and video, the project uses a Cross Plane, a project from a slightly unsuccessful Kickstarter [Downing] pulled the plug on last month. When the handheld is plugged in to the Cross Plane, all the audio, video, and controller wires are transferred through a pair of cables, with the possible addition of wireless transmission should [Downing] ever want to revisit this project.
In deciding on what to use for a case, [Downing] had bought a few AG cases from Polycase but found the ergonomics severely lacking. Putting two of the case backs together, he found the resulting structure was actually very comfortable, and with a few simple modifications to add some holes for acorn nuts,
It’s a great looking project that really highlights [Downing]’s talents as a console modder. He’s also thrown his hat into the Hackaday Trinket contest by engraving the Jolly Wrencher into the back of his project, which unfortunately isn’t seen in the video below.
Continue reading “Portable PS2, Courtesy of Cross Plane”