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 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
Experimenting with Gesture Sensors
  • Challenges & Projects
  • Design Challenges
  • Experimenting with Gesture Sensors
  • More
  • Cancel
Experimenting with Gesture Sensors
Challenge Blog Experiment #1: Gesture Mouse USB Driver Test
  • Challenge Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experimenting with Gesture Sensors to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: BigG
  • Date Created: 8 Oct 2022 6:18 PM Date Created
  • Views 775 views
  • Likes 9 likes
  • Comments 2 comments
  • USBmouse
  • experimenting with gesture sensors
  • mbedos
  • MAX25405EVKIT
  • max32620fthr
  • gesture mouse
Related
Recommended

Experiment #1: Gesture Mouse USB Driver Test

BigG
BigG
8 Oct 2022

Now that I have my MAX25405 Optical IR Sensor Evaluation Kit (EV kit), I just had to jump straight in and test a fundamental assumption about my project. Namely, will my computer recognise the MAX32620FTHR dev board as an emulated mouse over the USB port?

Using ARM MbedOS

To get the MAX32620FTHR dev board to emulate a USB mouse I had planned to use the latest version of ARM MbedOS, which is version 6.16.0. This version was released on 20 Jun 2022 and according to the MbedOS release notes, this release adds some new targets, from Maxim Integrated, ST and Toshiba, and provides fixes for a number of issues raised over the past few months. So hopefully this all works smoothly.

For those who want to learn more there is an MbedOS hardware reference for the MAX32620FTHR board, which can be found here.

Now, unlike the Arduino IDE where you can flash firmware using USB, here you need to use a separate programmer in order to flash firmware onto the MAX32620FTHR board from Mbed Studio (Mbed’s desktop IDE). This is done via a separate MAX32625PICO board, which I happen to have.

image

Testing the USB Driver API’s

As many of you will know, ARM MbedOS includes a number of drivers, which provide access to a microcontroller's hardware peripherals.

This includes driver API’s for the USB device stack.

image

To make sense of it all, I was rather thankful that the Mbed website provided excellent documentation of how the USB driver works and its architecture. This made it easier to grasp the fundamentals.

Then the specifics for the USB Mouse Driver API can be found here: https://os.mbed.com/docs/mbed-os/v6.15/apis/usbmouse.html

This reference provides an explanation of all the functions available and provides three simple examples to work from.

So I decided to try out one of these examples on my MAX32620FTHR dev board and here is a video capturing the results…

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

Next steps

Phew, at least this worry is out the way. My next step for the following few weeks will be to embark on testing the MAX25405 gesture firmware. My initial compile of the available project files failed on Mbed Studio, so I have a bit of work to do.

  • Sign in to reply
  • BigG
    BigG over 2 years ago in reply to rsjawale24

    Thanks for the comment. Sorry I'm a little late in replying (I keep forgetting to manually switch on the "notify me of comments" option).

    Yes you can. In fact you can do this using the Arduino IDE once you've flashed the Arduino bootloader onto the board, which you can do through the Arduino IDE using the max32625PICO programmer.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • rsjawale24
    rsjawale24 over 2 years ago

    Hi!
    Nice experimentation! 

    I was reading through the datasheet of the MAX32620FTHR board, and it seems that the board can be programmed over USB as well. 

    MAX32620FTHR Rapid Development Platform - Evaluates: MAX32620, (maximintegrated.com) Page no. 2

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • 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