Shop OBEX P1 Docs P2 Docs Learn Events
NES Zapper.... — Parallax Forums

NES Zapper....

VaatiVaati Posts: 712
edited 2009-07-09 01:40 in Propeller 1
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·for your projects!· Includes an LED testing terminal!

Comments

  • parts-man73parts-man73 Posts: 830
    edited 2009-07-08 16:39
    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 - home of SpinStudio - the modular Development system for the Propeller

    PropNIC - Add ethernet ability to your Propeller! PropJoy - Plug in a joystick and play some games!

    SD card Adapter - mass storage for the masses Audio/Video adapter add composite video and sound to your Proto Board
  • parts-man73parts-man73 Posts: 830
    edited 2009-07-08 16:57
    I may be wrong upon further googling.

    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 - home of SpinStudio - the modular Development system for the Propeller

    PropNIC - Add ethernet ability to your Propeller! PropJoy - Plug in a joystick and play some games!

    SD card Adapter - mass storage for the masses Audio/Video adapter add composite video and sound to your Proto Board

    Post Edited (parts-man73) : 7/8/2009 5:03:46 PM GMT
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-07-08 17:49
    @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 @ Warranty Void.
  • VaatiVaati Posts: 712
    edited 2009-07-08 18:00
    Well, I will need to check if I saved one of the NES socket wire assemblies... At any rate, I have two zappers. 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·for your projects!· Includes an LED testing terminal!
  • BaggersBaggers Posts: 3,019
    edited 2009-07-08 19:14
    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

    ·
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2009-07-09 01:04
    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!!··


  • VaatiVaati Posts: 712
    edited 2009-07-09 01:40
    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·for your projects!· Includes an LED testing terminal!
Sign In or Register to comment.