element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Episode 380: NES Zapper on RetroPie
  • Blog
  • Forum
  • Documents
  • Events
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Project Videos requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Engagement
Author: mcollinge
Date Created: 19 Dec 2018 4:36 AM
Last Updated: 16 Mar 2022 9:01 AM
Views: 522
Likes: 4
Comments: 8
Related
Recommended

Episode 380: NES Zapper on RetroPie

NES Zapper on RetroPie

element14 presents  |  AirborneSurfer's VCP Profile |  Project Videos

 

You don't have permission to edit metadata of this video.
Edit media
x
Upload Preview

Matt used to hold the high score for every light gun game at the local arcade, but he's a little out of practice since the switch to modern, flat-screen, high-definition displays. Longing for a new challenge, he decides to build a gesture-controlled variation of the classic NES Zapper that will work on modern screens through emulators such as RetroPie and MAME. It's a new take on retro hardware based around an LSM9DS1 and ATmega32u4 that not only breathes life into otherwise forgotten games, but also provides an entirely new hand-eye coordination challenge!

 

Supplemental Content:

  • Weller WE1010 Soldering Station Unboxing & Initial Thoughts
  • Weller WE1010 Soldering Station Teardown
  • NES Zapper Teardown
  • How To Use LSM9DS1 With Arduino
  • Soldering Supercut: Project QuickShot
  • Project QuickShot Arduino Sketch

Bill of Material:

 

PartManufacturerQuantityBuy Kit

Development Board, AdaFruit Feather, ATmega32u4, Prototyping Area

Adafruit1Buy Now

USB Cable, USB Type A Plug, Micro USB Type B Plug, 2 m, 6.5 ft, USB 2.0, Black

L-COM1Buy Now

 

Additional Parts:

 

Product Name

Adafruit 9-DOF Accel/Mag/Gyro+Temp Breakout Board - LSM9DS1

  • project quickshot
  • how to use light gun on mame
  • nintendo zapper
  • e14presents_airbornesurfer
  • lsm9ds1
  • how to use a light gun on hdtv
  • nes zapper
  • atmega32u4
  • how to use zapper on retropie
  • how to use zapper on hdtv
  • adafruit
  • arduino
  • friday_release
  • Share
  • History
  • More
  • Cancel
Anonymous
  • airbornesurfer
    airbornesurfer over 2 years ago in reply to mx3

    Line 30 defines the refresh rate (set 1ms). If you want coarser movement, you can raise that value.

     

    You can also change the multiplier in lines 104 and 107 (set at 10) to fine-tune the cursor movement.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • mx3
    mx3 over 2 years ago in reply to airbornesurfer

    What about the input parameters where you were talking about the refresh rates and stuff I didn't see any numeric values in the sketch

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • airbornesurfer
    airbornesurfer over 2 years ago in reply to mx3

    Imitation is the sincerest form of flattery. I'll take it

     

    Check the links above (copied below) for more info on using the IMU with Arduino. I've got a few videos that go into more depth than what we have time for in the main build overview. Also, the sketch that I wrote for this application is included for your reference.

     

    How To Use LSM9DS1 With Arduino

    Project QuickShot Arduino Sketch

     

    Let me know if you have other questions!

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • mx3
    mx3 over 2 years ago

    Mx3 here

    Atari there

    And I need your help...

    Couldn't help but play off your intro

    I am hoping to build this project myself I have an Arduino Leonardo micro and an mpu6050 but I know nothing about coding the Arduino and didn't know if you had a copy and paste script I could input for my sketch for the Arduino I know I'll need the libraries for the mpu6050 but after that I'm lost on how to get the accelerometer data to translate into mouse cursor movements also any thoughts on adding a right click button to the project to set as a reload for games like house of the dead where you have to aim off screen to reload

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • airbornesurfer
    airbornesurfer over 3 years ago in reply to baldengineer

    Thanks, James! It's an interesting twist on the old light gun paradigm, and a welcome new challenge!

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • airbornesurfer
    airbornesurfer over 3 years ago in reply to DAB

    Thanks, bud! That was the idea--kinda proof-of-concept for more elaborate gesture control devices. I'm thinking I might explore this further one day by rebuilding the (in)famous Power Glove  

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 3 years ago

    Love the idea Matt!

     

    Going with an IMU approach is a solid way to address a variety of screens.

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • DAB
    DAB over 3 years ago

    Nice build.

    Your basic design could be used for all kinds of virtual reality games and training scenario's.

     

    Very interesting capability there.

     

    DAB

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
Element14

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2022 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube