Log in

View Full Version : Reading NES controller from digital inputs


bear24rw
05-04-2007, 12:02
I wrote some code to read the buttons of the NES controller and thought I would post it here if anyone was interested..

http://s25.photobucket.com/albums/c94/bear24rw/?action=view&current=CIMG2062.jpg
http://youtube.com/watch?v=DVwo3C_YW0U

More information can be found here..
http://pinouts.ru/Game/snescontroller_pinout.shtml
http://www.diylive.net/index.php/2006/02/03/decoding-nes-controller/

EHaskins
05-04-2007, 21:59
Cool! Now all you need to do is upgrade it to use a controller that has analog inputs.:D

EricVanWyk
06-04-2007, 02:17
Next Step: Atari

Qbranch
06-04-2007, 07:25
It sucks that you cant reprogram the OI's processor.... this would prove impossible to do to on the OI the way its programmed with the 26.2ms update. :(

-q

karlcswanson
06-04-2007, 09:43
It sucks that you cant reprogram the OI's processor.... this would prove impossible to do to on the OI the way its programmed with the 26.2ms update. :(

-q

You could make a custom circuit to translate what is coming from the nes controller to the digital inputs on the OI.

bear24rw
06-04-2007, 10:17
You could make a custom circuit to translate what is coming from the nes controller to the digital inputs on the OI.

Yeah all you would need is a simple microchip like a PIC16F or something

John Gutmann
06-04-2007, 15:00
It sucks that you cant reprogram the OI's processor.... this would prove impossible to do to on the OI the way its programmed with the 26.2ms update. :(

-q

I am friends with someone who has programmed over the loop in the RC, it just sends a signal to the coprocessor ever 26.2 ms so that it thinks it is doing the right thing.

bear24rw
06-04-2007, 19:00
I am friends with someone who has programmed over the loop in the RC, it just sends a signal to the coprocessor ever 26.2 ms so that it thinks it is doing the right thing.

Can he control all the pwm's from the user processor?

Qbranch
06-04-2007, 22:28
It might keep the SPI happy... but does it would have to communicate full packets to the master micro so that the checksums and byte counts check.... what did he gain out of writing his own loop?

Also, is it legal to have custom circuits on the OI? I never went to the FIRST school of law. If it is legal.... :cool:

I wish they had a higher current capability on the +5v supply though, don't suppose you could run much of anything anyhow, but a Nanowatt series microchip micro should be ok.

-q

karlcswanson
06-04-2007, 23:35
It might keep the SPI happy... but does it would have to communicate full packets to the master micro so that the checksums and byte counts check.... what did he gain out of writing his own loop?

Also, is it legal to have custom circuits on the OI? I never went to the FIRST school of law. If it is legal.... :cool:

I wish they had a higher current capability on the +5v supply though, don't suppose you could run much of anything anyhow, but a Nanowatt series microchip micro should be ok.

-q

It is legal as long as they are powered only from the 5 volts from the joystick ports, the current limit is 10 ma though.

John Gutmann
07-04-2007, 01:17
Can he control all the pwm's from the user processor?

From what I know they had all functionality, I will talk to him and try to get more info on it.