Go Down

Topic: NEED HELP ASAP - FINAL YEAR PROJECT DUE ! MAME (Read 1 time) previous topic - next topic

MichaelMeissner


There's also debouncing, which is probably important for an arcade system. Well, I'm assuming arcade, because the MAME I know about is the Multi Aracade Machine Emulator. Really cool thing for playing Galaga on my Linux box. :)

Yes, once the OP can read digital and analog signals, then he/she needs to think about debounce (particularly for the joysticks), but it sounded like he/she was at a more basic level.  Of course the problem with doing debounce for 8 analog joysticks, is you don't want to do read, dobounce, read serially on each value, but instead you want do all of the initial reads, then the delay, and then the 2nd reads.  And when you are dealing with 24 buttons, you need to start thinking of using things like arrays.

justjed


I suspect you need to start at the beginning.  Follow the tutorial for ReadDigitalSerial (http://arduino.cc/en/Tutorial/DigitalReadSerial) to get 1 button working.  Then add 2, 3, etc.  Don't immediately try doing all 16 at once.


There's also debouncing, which is probably important for an arcade system. Well, I'm assuming arcade, because the MAME I know about is the Multi Aracade Machine Emulator. Really cool thing for playing Galaga on my Linux box. :)
... it is poor civic hygiene to install technologies that could someday
facilitate a police state. -- Bruce Schneier

James C4S


a keywiz PCB was used.. but didnt work.

Define "didn't work"? 

You went from a solution designed specifically for what you are doing (keywiz) to a general purpose device (Arduino).  That seems like a strange change.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com

MichaelMeissner

I suspect you need to start at the beginning.  Follow the tutorial for ReadDigitalSerial (http://arduino.cc/en/Tutorial/DigitalReadSerial) to get 1 button working.  Then add 2, 3, etc.  Don't immediately try doing all 16 at once.

As a hint, you don't want to daisy chain all of the buttons connected to both 5v and ground.  Instead you want to connect all of the buttons to ground each with their own resistor, and then connect each button to a separate digital pin on the Mega.

Similarly for AnalogReadSerial (http://arduino.cc/en/Tutorial/AnalogReadSerial) to read from the joysticks.

I suspect you are going to be burning a lot of the midnight oil on this project.

jackrae

1 provide the circuit diagram of what you've already built
2 provide the code that you've already written

then someone might just try to guide you so that YOU can do what's necessary to avoid being tagged as a cheat.

Go Up