element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
  • Settings
Dev Tools
  • Products
  • More
Dev Tools
Forum Help designing a solution for this problem!
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Dev Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 10 replies
  • Subscribers 81 subscribers
  • Views 1323 views
  • Users 0 members are here
Related

Help designing a solution for this problem!

Former Member
Former Member over 13 years ago

Hi folks!

 

I am wanting to develop a chip which will do the following:

 

Take Keyboard input via USB, record something about the input - and then pass the input onto the computer. I want the recording of 'something' saved on an sdcard or some form of memory so it is persistent across runs.

 

So - i started with one of these: http://uk.farnell.com/ftdi/v2dip2-32/module-dev-32-pin-2x-usb-vnc2/dp/1825832 However I have found the chip difficult to code - being entirly c based - and do not like the platform in general, has so many bugs and no community around to support it.

 

The chip was suitable because it had 2 USB ports, meaning I could plug the keyboard into one of them, then a male to male cable in the other to connect it back to the computer. I then bought an sd card reader chip for saving state and a FT232 UART to help me debug. Problem was VOS which is the OS layer the VNC2 runs was just massively flawed and caused so many problems debugging etc

 

I am a massive Java fan - and was wondering perhaps if there is a chip out there which supports Java? Would the above be possible via a chip which runs Java? I am looking for any suggestions!

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

    Hi Latch, No this is not what I want! I want a hardware device which would play as part of a game...basically it will record mouse distance moved etc - not detect specific keys but record key press rate etc...thats what I want to do - and thats why I came here for some advice in picking the right chip etc - would somebody please just offer some relevant help.

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

    Hi Latch, No this is not what I want! I want a hardware device which would play as part of a game...basically it will record mouse distance moved etc - not detect specific keys but record key press rate etc...thats what I want to do - and thats why I came here for some advice in picking the right chip etc - would somebody please just offer some relevant help.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Catwell
    0 Catwell over 13 years ago in reply to Former Member
    What you need to collect is the USB data from the mouse.
    I am assuming you are using an optical mouse. If this mouse is connected to a PC it is easier. Start by looking at this code.
     
    If you have the mouse connected to some other type of system, then you need to collect the data as it is sent from the mouse. Most mice will store displacement (and input) values in a register in its onboard IC, where it is then read by the main system (in most cases a PC). You have to read that data from that IC. It is an image processor chip, (in some cases an ADNS2610ADNS2610). The chip takes pictures of the surface tracking the reflected dot "X" number of times per second. The displacement between frames is stored in registers on the ADNS2610ADNS2610, in this example. The uC board sends a request to the mouse and reads the registers.
     
    Go to this project to see how the process is done.
     
    I also found an old project for getting the data out of an optical mouse.
     
    Go to Microchip's USB framework page on how to handle USB data with their uCs.
     
    And if you want to go to the next level, make an 3D mouse tracker.
     
    This need has been conquered many times, so do not worry about "if it can be done." Use their work as a basis, and focus on your game.
     
    Cabe
    http://twitter.com/Cabe_e14
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to Catwell

    Thanks for your input Cable: I drew a picture of what I want / need. If you or anyone else can expand on it with more specifics that would be ACE!

     

    image

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

    Andy,

     

    Based on your design requirements your best bet would be to use an all-in-one dev kit.

    I would recommend using a board with lots of source and support: FREESCALE SEMICONDUCTOR - MCIMX23LCDFREESCALE SEMICONDUCTOR - MCIMX23LCD

     

    This dev kit has an onboard SD card port, USB host, and ARM926EJ-S core.

    Since it is an excessive processor for the task, I picked a dev kit that was a little more overboard with an onboard screen. Perhaps you can use the screen to display captured data, for development.

     

    After you are done with development, you can port the software over to a smaller footprint board. (Or build your own board as you see fit.)

     

    For the dev phase, fighting with wiring the base circuit is not advisable, since you will already have your hands full with software.

    -------------------------------------

     

    On a related note, about ARM dev. Take the XIM3 Xbox adapter; it has a ARM Cortex M3 that tracks mouse/keyboard/joystick inputs, changes the signal to deal with the Xbox's auto aim feature (for 1 to 1 movement), and has a menu system. Again, software is the real design here.

     

    ------------------------------------

     

    Cabe

    http://twitter.com/Cabe_e14
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 13 years ago in reply to Catwell

    Thanks for this Cabe, The concern I have with this board - is how much would my final design require to be put together.

     

    I need production costs for my final board to be < £10 and preferrably < £5 and I have no idea how likely that is based upon the components on the mcimx32lcd... additionally what language is compatible with this device?

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

    That happens after you design the software is:

    - Get a base ARM uC.

    - The essential support peripherals you need. In this case a USB host chip and socket.

    - Layout the chips with all the necessary component in a PCB capture program like EagleCAD, OrCAD, or Allegro.

     

    Then you will have the system you need.

     

    Cost of the parts is unavoidable. You should see if those along outstrip your budget.

     

    Cabe

    http://twitter.com/Cabe_e14
    • 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