PDA

View Full Version : NES Zapper....



Vaati
07-09-2009, 12:28 AM
I want to use one of my NES zapper guns....· I read in the Propeller Cookbook that it uses pins 4 & 6, but which pin does what...?

Also, has anyone built some code for the zapper?


Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply (http://www.gadgetgangster.com/130)·for your projects!· Includes an LED testing terminal!

parts-man73
07-09-2009, 12:39 AM
pinouts.ru/Game/snescontroller_pinout.shtml (http://pinouts.ru/Game/snescontroller_pinout.shtml)

there's a description of a standard NES controller pinout. It actually uses 3 pins, Clock, Latch and Data.

But concerning what data comes out of a Zapper..... hmm.. dunno

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian

uController.com (http://uController.com) - home of SpinStudio - the modular Development system for the Propeller

PropNIC (http://uController.com) - Add ethernet ability to your Propeller! PropJoy (http://uController.com) - Plug in a joystick and play some games!

SD card Adapter (http://uController.com) - mass storage for the masses Audio/Video adapter (http://uController.com) add composite video and sound to your Proto Board

parts-man73
07-09-2009, 12:57 AM
I may be wrong upon further googling.

racketboy.com/forum/viewtopic.php?f=25&t=10645 (http://racketboy.com/forum/viewtopic.php?f=25&t=10645)

says the pinout for the Zapper is different

here's an excerpt


NES Zapper
1. Brown Wire = GND
2. NC Blank = Open No Conductor
3. NC Blank = Open No Conductor
4. NC Blank = Open No Conductor
5. White Wire = VCC +5V
6. Blue Wire = Zapper
7. Purple Wire = Zapper



Yet a different website explained how it works. When the trigger is pulled, the NES blanks the screen for a split second, except for a small square. If the Zapper is pointed at the square, it registers a "hit"

I imagine that pins 6 and 7 are used for this, 1 is the trigger, the other for the light sensor.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian

uController.com (http://uController.com) - home of SpinStudio - the modular Development system for the Propeller

PropNIC (http://uController.com) - Add ethernet ability to your Propeller! PropJoy (http://uController.com) - Plug in a joystick and play some games!

SD card Adapter (http://uController.com) - mass storage for the masses Audio/Video adapter (http://uController.com) add composite video and sound to your Proto Board

Post Edited (parts-man73) : 7/8/2009 5:03:46 PM GMT

Oldbitcollector (Jeff)
07-09-2009, 01:49 AM
@Vaati

Glad to see someone jumping on this project!

The bad news is that I don't think any of the current NES interfaced hardware supports
the use of the two lines you need to communicate with the Zapper so you'll need to
create a new interface for the lines you need. No big deal.

Do you have the NES plug you need to do this project? I probably have a spare I could
mail your direction. We'll keep you from hacking the end off your Zapper this way.

OBC

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
New to the Propeller?

Visit the: The Propeller Pages (http://www.warrantyvoid.us/tiki-index.php?page=Propeller) @ Warranty Void.

Vaati
07-09-2009, 02:00 AM
Well, I will need to check if I saved one of the NES socket wire assemblies... At any rate, I have two zappers. http://forums.parallax.com/images/smilies/smile.gif

One more thing--I took apart my NES, and the chips are thru-hole! It also looks like the pcb layout was drawn by hand (LOL)... Well, I was wondering whether it is possible to use the nintendo chips along with a propeller to make a nicely funtional NES...

What do you think...?



Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply (http://www.gadgetgangster.com/130)·for your projects!· Includes an LED testing terminal!

Baggers
07-09-2009, 03:14 AM
Vaati, you will also have to tie this into the TV display,

maybe use CNT, eg wait for VSync, get CNT value, set screen to white, and wait for the light sensor to be set ( or clear depending on it's values ) then get CNT again, and then subtract your start CNT value, you then have an indication of how far into the screen your gun was pointing at. divide it by how ever many cycles for one scan line ( iirc NTSC is 62.5us, and PAL is 64us ) then the remainder value is the X position divided by another value ie ( pixel clock )

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite

·

Microcontrolled
07-09-2009, 09:04 AM
This has been discused before and I am suprised that someone has taken on the challenge.

Good Work!!!!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Toys are microcontroled.
Robots are microcontroled.
I am microcontroled.


If it's not Parallax then don't even bother. :-)
·

Mini-Din/PS2 connectors are for sale! 5 for $1! PM me if you wish to make an order.
Cheap·shipping unless specified!··········150 left!!··

Vaati
07-09-2009, 09:40 AM
One quick quesiton--How in the WORLD do those zappers work!?!? Is it some sort of primitive color detection device? I just can't see how...

Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply (http://www.gadgetgangster.com/130)·for your projects!· Includes an LED testing terminal!