Gaming controller - University project

Hi all!

I've got a university project on going where I've decided to create a gaming controller for people with MS (multiple sclerosis)

The idea is to make a customisable platform where the user can place buttons etc, where they want that best suits them and their playing style.

I'm going to be using an Arduino Mega 2560 for this project. I, myself am very new to arduino and it's coding language

I'm trying to make a start on the coding but i'm finding myself getting lost and confused. basically was I want to code a few buttons on the controller to show a very early prototype. i'm using conductive materials to simulate button presses rather than physical buttons. I want to demo a racing game so all I will need for a prototype is the: UP, DOWN, LEFT AND RIGHT arrow keys to get started (eventually i want to branch into using flex sensors like triggers on a controller)

I've looked at numerous tutorials but nothing seems to help me a great deal. I was wondering if anyone has a code where when i touch a piece of conductive material it will read it as if i'm pressing the up arrow on a keyboard? I've got a breadboard to build the circuit on but it is mainly the code which is daunting to me. Any additional information to help me like circuit step-up would be greatly appreciated

Many thanks!




Amazing Project.. the coding isnt really that hard, However i must say that you need an Arduino Due or a leonardo to emulate switch press on the computer.

After you have obtain either a Leonardo or a Due please refer to this page Native Keyboard or mouse Arduino reference

You need to get yourself an Arduino Leonardo or a Pro mini. Those can be seen as keyboards and mice to a computer.

You may need to get a few capacitive touch modules like this:

You can also make your own with a few transistors.

The MPR121 breakout boards seem a good choice since you basically make your own capacitive input and the board supports up to 12 inputs:

HazardsMind: You need to get yourself .... a Pro mini.

No, Pro Micro, not Pro Mini.

Pro Mini is atmega328 based. Pro Micro and Leonardo are atmega32u4 based, enabling use of the keyboard functions.