Author Topic: n00b question about gaming project  (Read 1100 times)

0 Members and 1 Guest are viewing this topic.

Offline vivi-dTopic starter

  • Contributor
  • Posts: 32
  • Country: us
n00b question about gaming project
« on: June 02, 2023, 11:30:05 pm »
Quick question... I'm thinking of developing a small device that could be an "adaptor" between gaming controllers. The idea would be to (thru USB?) make it possible to use a PS4 controller on xbox. Or vice versa.

About how many lines of VHDL programming would a project like this need? Would it be a good beginner project?
The nastier the flux, the shinier the solder!
 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11236
  • Country: us
    • Personal site
Re: n00b question about gaming project
« Reply #1 on: June 02, 2023, 11:38:11 pm »
This is more of a microcontroller project than an FPGA project. USB on FPGA is likely to require an MCU core anyway.

First order of business would be to figure out what protocols they are using and if they are documented anywhere.
Alex
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14445
  • Country: fr
Re: n00b question about gaming project
« Reply #2 on: June 03, 2023, 12:27:30 am »
First, I would suppose both are HID devices.
I don't have a Xbox but I do have a PS4, and I just checked connecting one controller via USB to a PC. The controller shows up as "Sony Corp. DualShock 4" and can be used as a regular joystick.

Not sure about the Xbox, but I suspect this is the same. So if that's the case (which is likely), it will mostly be a matter of matching controls from one controller to the other.
This could be done with a MCU of course, but you'd need one with two USB OTG controllers, one programmed as host and the other as device.

IIRC (although i've never tested myself), RPi's can be used as USB devices on one of their USB ports. If that's indeed the case (someone here may have more info/already done that), then this would probably be the easiest path for what you want to achieve.
 

Offline asmi

  • Super Contributor
  • ***
  • Posts: 2730
  • Country: ca
Re: n00b question about gaming project
« Reply #3 on: June 03, 2023, 04:12:40 am »
Yeah, USB is a very "software-heavy" protocol as it heavily relies on a software driver stack, which is what made it so successful because adding/changing software is always easier than modifying hardware, especially when it comes to adding support for new features to existing hardware.
But the flip side is that basically requires some sort of CPU to actually run that software stack, unlike some other protocols which can be implemented in pure hardware, or mostly in hardware.

Offline dobsonr741

  • Frequent Contributor
  • **
  • Posts: 672
  • Country: us
Re: n00b question about gaming project
« Reply #4 on: June 03, 2023, 04:20:22 am »
 
The following users thanked this post: paf, Someone, vivi-d, DarkMode


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf