Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Reading NES controller from digital inputs (http://www.chiefdelphi.com/forums/showthread.php?t=56594)

bear24rw 05-04-2007 12:02

Reading NES controller from digital inputs
 
2 Attachment(s)
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/c9...t=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/200...es-controller/

EHaskins 05-04-2007 21:59

Re: Reading NES controller from digital inputs
 
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

Re: Reading NES controller from digital inputs
 
Next Step: Atari

Qbranch 06-04-2007 07:25

Re: Reading NES controller from digital inputs
 
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

Re: Reading NES controller from digital inputs
 
Quote:

Originally Posted by Qbranch (Post 613061)
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

Re: Reading NES controller from digital inputs
 
Quote:

Originally Posted by karlcswanson (Post 613102)
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

Re: Reading NES controller from digital inputs
 
Quote:

Originally Posted by Qbranch (Post 613061)
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

Re: Reading NES controller from digital inputs
 
Quote:

Originally Posted by sparksandtabs (Post 613283)
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

Re: Reading NES controller from digital inputs
 
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

Re: Reading NES controller from digital inputs
 
Quote:

Originally Posted by Qbranch (Post 613531)
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

Re: Reading NES controller from digital inputs
 
Quote:

Originally Posted by bear24rw (Post 613435)
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.


All times are GMT -5. The time now is 17:55.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi