Ubuntu+DYI cable(w/ arduino board)+Momo Racing Wheel+PS4
Posted: Wed Dec 30, 2015 9:02 pm
Hi guys, first a big THANK for the author of this app and DIY cable for allowing us FINALLY to play with our old but still good wheels on the new console generation at very low cost (12,50€). It was tested successfully on Driveclub and i will bought Project Cars to complete this test.
I didn't notice any lag in my experience with Drive-club and the FFB is well calibrated. I can just say that it's a REAL pleasure playing cars game with a wheel on a PS4, it is even more a pleasure when you don't have to spent 350€ to buy their f*****g new wheels. I bought an used momo 50€ many years ago and it still does a solid job.
That being said, I have an average level in programing and I’m newbie in everything related to electronics so I will tell how I get my Momo racing to work after 1 day of trial & error, it may help some of you.
Hardware:
# Computers
- 06’ Macbook running Ubuntu 15.04
- Macbook air 2015 running El Capitan
# Wheel
- Momo racing
# Console
- PS4
# DIY cable (components bought on eBay) Total cost: 12,50€
- USB/TTL converter: BS USB UART CP2102 (4,92€)
- Arduino board: Pro Micro ATmega32U4 (7,58€)
# Hub USB
- Belkin USB2.0 4 ports
I pretty much followed the tutorials on the site, used the softwares and the firmwares downloaded from here.
I just had some difficulties to get Ubuntu on my old mac as it broke the multi boot with MacOS and Windows seven but after some time I figure how to solve it (installed rEFit).
DIY cable
- Introduction
I did not find a Teensy board on a regular site so I decided to get a very cheap ATmega32u4 board on eBay. I had to solder the pins to the boards but that’s pretty easy with some tin and a basic soldering iron. You’ll find videos on youtube showing how to do it.
- Cabling:
USB/serial converter > Arduino Board : Wire color
GND > GND : Purple
RXD > TX0 : Black
TXD > RX1 : White
- Firmware upload to Arduino board
Note: You have to connect the micro USB to the computer.
The part which get me the more troubles. I tried many times on ubuntu with avrdude then with osX with the Arduino application and with avrdude in the terminal.
And every time I get a f*****g message « avrdude: error: buffered memory access not supported. Maybe it isn't a butterfly/ AVR109 but a AVR910 device? ».
And I finally i got it to work. It was because a dumb program was already flashed on the the board, some basic « Hello Word » with the 2 leds blinking alternatively. And when that program was running, there was no way to flash anything on the board! I tried to reset the board (Connect GND to RST pin twice) many many times but it wasn’t working. Each time, the 2 red lights were stoping to blink, the green light was continuing to be ON but after a moment the red leds were starting to blink again.
So the solution was to reset the arduino board (GND to RST with a wire twice) and IMMEDIATELY launch the avrdude command to flash the firmware (before the 2 leds starts blinking again). I had the following command line prepared to be executed in the macOS terminal and just pressed the enter button after having reset the board.
avrdude -p atmega32u4 -c avr109 -P /dev/tty.usbmodem1411 -D -U flash:w:/Users/Ben/Desktop/GIMx/firmwares-5.4/EMUG29PS4/atmega32u4.hex:i
You will just have to replace the following in the command:
/dev/tty.usbmodem1411 by whatever port your board is connected on.
/Users/Ben/Desktop/GIMx/firmwares-5.4/EMUG29PS4/atmega32u4.hex by the location where you put the firmware.
And now, you’re pretty done.
Getting start
Note: 3 available USB ports are necessary on the computer.
Plug :
- the Momo Racing wheel to an usb port on the computer
- the micro USB cable between the arduino board and the PS4
- the USB/TTL converter directly on the PC
- the PS4 pad (turned off) on the PC (with the standard micro usb cable)
PS4 Game Pad ---- PC
Wheel ----- PC
PS4 ---- Arduino Board - USB/TTL ---- PC
1. Launch GIMX and download the momo racing configuration.
2. Select the port and the DIY usb adapter.
3. Turn ON the PS4
4. Click on the START button in Gimx
5. THAT’S IT! Use the gamepad to navigate in the PS4 menu and launch the game, play with the wheel as you wish!!!
ENJOY!!!
I didn't notice any lag in my experience with Drive-club and the FFB is well calibrated. I can just say that it's a REAL pleasure playing cars game with a wheel on a PS4, it is even more a pleasure when you don't have to spent 350€ to buy their f*****g new wheels. I bought an used momo 50€ many years ago and it still does a solid job.
That being said, I have an average level in programing and I’m newbie in everything related to electronics so I will tell how I get my Momo racing to work after 1 day of trial & error, it may help some of you.
Hardware:
# Computers
- 06’ Macbook running Ubuntu 15.04
- Macbook air 2015 running El Capitan
# Wheel
- Momo racing
# Console
- PS4
# DIY cable (components bought on eBay) Total cost: 12,50€
- USB/TTL converter: BS USB UART CP2102 (4,92€)
- Arduino board: Pro Micro ATmega32U4 (7,58€)
# Hub USB
- Belkin USB2.0 4 ports
I pretty much followed the tutorials on the site, used the softwares and the firmwares downloaded from here.
I just had some difficulties to get Ubuntu on my old mac as it broke the multi boot with MacOS and Windows seven but after some time I figure how to solve it (installed rEFit).
DIY cable
- Introduction
I did not find a Teensy board on a regular site so I decided to get a very cheap ATmega32u4 board on eBay. I had to solder the pins to the boards but that’s pretty easy with some tin and a basic soldering iron. You’ll find videos on youtube showing how to do it.
- Cabling:
USB/serial converter > Arduino Board : Wire color
GND > GND : Purple
RXD > TX0 : Black
TXD > RX1 : White
- Firmware upload to Arduino board
Note: You have to connect the micro USB to the computer.
The part which get me the more troubles. I tried many times on ubuntu with avrdude then with osX with the Arduino application and with avrdude in the terminal.
And every time I get a f*****g message « avrdude: error: buffered memory access not supported. Maybe it isn't a butterfly/ AVR109 but a AVR910 device? ».
And I finally i got it to work. It was because a dumb program was already flashed on the the board, some basic « Hello Word » with the 2 leds blinking alternatively. And when that program was running, there was no way to flash anything on the board! I tried to reset the board (Connect GND to RST pin twice) many many times but it wasn’t working. Each time, the 2 red lights were stoping to blink, the green light was continuing to be ON but after a moment the red leds were starting to blink again.
So the solution was to reset the arduino board (GND to RST with a wire twice) and IMMEDIATELY launch the avrdude command to flash the firmware (before the 2 leds starts blinking again). I had the following command line prepared to be executed in the macOS terminal and just pressed the enter button after having reset the board.
avrdude -p atmega32u4 -c avr109 -P /dev/tty.usbmodem1411 -D -U flash:w:/Users/Ben/Desktop/GIMx/firmwares-5.4/EMUG29PS4/atmega32u4.hex:i
You will just have to replace the following in the command:
/dev/tty.usbmodem1411 by whatever port your board is connected on.
/Users/Ben/Desktop/GIMx/firmwares-5.4/EMUG29PS4/atmega32u4.hex by the location where you put the firmware.
And now, you’re pretty done.
Getting start
Note: 3 available USB ports are necessary on the computer.
Plug :
- the Momo Racing wheel to an usb port on the computer
- the micro USB cable between the arduino board and the PS4
- the USB/TTL converter directly on the PC
- the PS4 pad (turned off) on the PC (with the standard micro usb cable)
PS4 Game Pad ---- PC
Wheel ----- PC
PS4 ---- Arduino Board - USB/TTL ---- PC
1. Launch GIMX and download the momo racing configuration.
2. Select the port and the DIY usb adapter.
3. Turn ON the PS4
4. Click on the START button in Gimx
5. THAT’S IT! Use the gamepad to navigate in the PS4 menu and launch the game, play with the wheel as you wish!!!
ENJOY!!!