element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum PC game to Arduino interface
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 6 replies
  • Subscribers 402 subscribers
  • Views 456 views
  • Users 0 members are here
Related

PC game to Arduino interface

Former Member
Former Member over 13 years ago

Help!!!

I’ve gotten in, a little over my head. Trying to help my 13 year old daughter with her school project, I find that I’m a little out of date with technology. Most of what I thought I learned and knew 15 years ago (seems like yesterday), ether does not apply or no longer exist.

 

I have done a few searches in Google, but there is so much stuff on so many different levels, that I am over whelmed. If someone could post a note for Dummies, I’d greatly appreciate it.

 

This is my scenario: I have an Arduino- UNO. I use it to count pulses from a switch. On a pc, I have a game called Game make 8.1 by Yooyoo Company. In short, we want to use the Arduino- UNO as a controller for the game. How do we do this, using the USB cable that comes with the Arduino?

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    0 Former Member over 13 years ago

    Hummm,

    Thank you for your response.

     

    I am using a reed switch to trigger an interrupt.  We want to take the pulse count, get rpms’ and feed to the PC game as a control variable.

    I’m glad that you mentioned the ability to count. I am using pin 2 (digital) for the interrupt. I was using the “RISING” command, however, the interrupt seems to be triggering on bout the rising and falling edge.

     

    As for my thinking, a button can be a switch, but a switch doesn’t have to be a button. A switch is a device, or devices, that channel or connect. At least that’s what I have come to learn.  If I am wrong, please correct me. Over the last few yours of my children being in school, I’ve learned how much I don’t know.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • billabott
    0 billabott over 13 years ago in reply to Former Member

    It is probably bouncing, so you might be getting multiple rise counts, imho. 

    How are you de-bouncing the reed switch input?

    I am out of my confort zone here because I have no idea on how to accurately count RPM and de-bounce at the same time. 

    Is there a wheel turning with a magnet attached moving past the reed switch?  

    What is the range of the RPMs?  Zero to _____ RPM?

    An interrupt is traditional,  but may be over kill in the 'Duino world. 

    I guess you are going to setup the WatchDog Timer too.  image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • billabott
    0 billabott over 13 years ago in reply to Former Member

    It is probably bouncing, so you might be getting multiple rise counts, imho. 

    How are you de-bouncing the reed switch input?

    I am out of my confort zone here because I have no idea on how to accurately count RPM and de-bounce at the same time. 

    Is there a wheel turning with a magnet attached moving past the reed switch?  

    What is the range of the RPMs?  Zero to _____ RPM?

    An interrupt is traditional,  but may be over kill in the 'Duino world. 

    I guess you are going to setup the WatchDog Timer too.  image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 13 years ago in reply to billabott

    I am going to using a 555 to denounce.  I’ve been thinking about, “how to accurately count RPM and de-bounce at the same time.”  I think that I will be able to debounce the switching, because the RPMs should not exceed 130pulses per minute.

    I have heard of watchdog, but I’ve never used one. I hope that I will not needing one.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • billabott
    0 billabott over 13 years ago in reply to Former Member

    Here is the official Arduino Switch Debounce Method.  You might use it unless you are too much like Byte Magazine's Circuit Cellar guy.  image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

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 © 2025 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

  • X
  • Facebook
  • linkedin
  • YouTube