• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 … 24 25 26 27 28 … 117 Next »

Custom GC controller with Arduino
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Custom GC controller with Arduino
02-17-2017, 02:06 AM
#1
tidalwave41
Unregistered
 
First of all I'd like to say I apologize for my lack of experience and understanding in this subject, this is the first time I'm undertaking a project like this and I appreciate anyone and everyone who takes a minute to help me out here.
I'm building a custom GameCube Controller using similar parts to the actual controller (2 axis potentiometers, buttons, etc) which is the fairly straightforward part. The thing I'm having the most trouble understanding mostly from my lack of knowledge is how to get the components from the Arduino to communicate with my machine and, more importantly, how to get Dolphin to receive the values and read them correctly as controller inputs. I'm not trying for a super professional level of finish on this project, I just had the idea one day and thought I'd like to investigate more into the coding aspect of building a controller to run on an emulator. Again, thanks to anyone ahead of time for helping out.
Reply
02-17-2017, 02:28 AM
#2
ExtremeDude2 Offline
Gotta post fast
*******
Posts: 9,342
Threads: 273
Joined: Dec 2010
Are you trying to get it recognized as an actual GC controller or a generic one?
Check out my videos (dead)
[Image: sig-22354.png]
Website Find
Reply
02-17-2017, 07:19 AM
#3
tidalwave41
Unregistered
 
(02-17-2017, 02:28 AM)ExtremeDude2 Wrote: Are you trying to get it recognized as an actual GC controller or a generic one?

Probably just a generic one. My plan now is to simulate keyboard presses with the controller because I figured that would be a little more easy programming wise than making the Arduino appear like a legit GC controller. Does that sound like a possible way to do this project?
Reply
02-17-2017, 08:46 AM
#4
tecfreak Offline
Junior Member
**
Posts: 28
Threads: 1
Joined: Jun 2014
It's possible, but how do you want to handle the analog sticks when the arduino acts as a generic keyboard?

https://github.com/MHeironimus/ArduinoJoystickLibrary
Find
Reply
02-17-2017, 09:05 AM
#5
tidalwave41
Unregistered
 
(02-17-2017, 08:46 AM)tecfreak Wrote: It's possible, but how do you want to handle the analog sticks when the arduino acts as a generic keyboard?

https://github.com/MHeironimus/ArduinoJoystickLibrary

Is there any way to enable the left joystick (not C-stick) to press the corresponding Up, Down, Left, and Right keys on the keyboard? Or are those not included on a generic keyboard? I know that won't be the most accurate application but its just an idea to get working. Also just to make sure, does the keyboard.press() command work on the Arduino UNO? I read somewhere that it doesn't and I wanted to make sure before I switch to a Leonardo for this project.
Reply
02-17-2017, 09:53 AM
#6
tecfreak Offline
Junior Member
**
Posts: 28
Threads: 1
Joined: Jun 2014
(02-17-2017, 09:05 AM)tidalwave41 Wrote: Is there any way to enable the left joystick (not C-stick) to press the corresponding Up, Down, Left, and Right keys on the keyboard?
As you probably will use ADCs for the analog sticks, all you have to do is to specify a threshold at which a keypress should be triggerd.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma