Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

Turn your ProMicro into a USB Keyboard/Mouse

June 14, 2020 By Samidha Verma

It would be a fun ride to metamorphose any switch, joystick, sensor or other electrical gadgets into a USB keyboard and/or mouse. To begin with, you can convert any input device into a controller for your computer programs or games. And the most fascinating portion of this tutorial is yet to be explored as you can do every conversion with one line of code, inside the relaxing margins of Arduino. This interesting tutorial by Jimb0 of Sparkfun is dependent to this micro friend: the SparkFun Pro Micro!

Turn your ProMicro into a USB Keyboard/Mouse

Turning ProMicro into a USB Keyboard/Mouse 

(Image Courtesy: sparkfun)

The Pro Micro is a small, Arduino-compatible microcontroller positioned around an ATmega32U4 – an 8-bit AVR akin to the ATmega328 with one colossal limitation: The 32U4 comes fitted out with a full-speed USB transceiver. So currently, when you link the Arduino to your computer, they’re attached directly to the USB bus (excuse my RAS). The Pro Micro can be lined up to emulate any USB device you could envisage. You can program it to act just like a mouse, keyboard or other HID-class USB devices.

The HID that can be asked is the distinct USB device classes. Every USB device is allocated a device class, which describes what accurately its universal purpose is. There are tons of classes — printers, hubs, speakers, and webcams but this lesson is going to focus in HID: Human Interface Device.

Turn your ProMicro into a USB Keyboard/Mouse

ProMicro into a USB Keyboard/Mouse Circuit Board

(Image Courtesy: sparkfun)

So the ATmega32U4 is responsible for the USB-hardware hurdle, but do not escape to clear the firmware one. Providentially, the existence of Arduino with the release of 1.0 that comes with built-in support for the ATmega32U4 and its USB core. That USB support comprises HID functionality. Unluckily, that HID has rather tucked away from us. The objective of this tutorial is to elucidate how to use the Arduino HID library, so you can get the most out of your Pro Micro.

Related Articles Read More >

EMI Detector using Arduino
Building of An Iot Gauge with Arduino, Yaler and IFTTT
DIY Arduino based mini CNC plotter using old DVD drives
A Low-Cost GPS Positioning System With High Accuracy For Small Robotic Devices?

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • Getting Started with the ESPlorer IDE
  • SENDING TEXT MESSAGE USING ESP8266
  • CONNECTION BETWEEN TWO ESP8266
  • ESP8266 WIFI HOTSPOT
  • HOME AUTOMATION USING ESP8266
  • Open WiFi Scanner using Esp8266

Stay Up To Date

Newsletter Signup

EE Training Center Classrooms

“ee

“ee

“ee

“ee

“ee

Recent Articles

  • TV remote hack using Arduino and IR sensor
  • Gesture sensor using Arduino
  • Diodes adds to its family of voltage-level shifters
  • Xilinx expands UltraScale+ portfolio to include compact, intelligent edge solutions
  • New Armv9 architecture designed to increase security and AI capabilities

RSS EDABOARD.com Discussions

  • WiringPi SPI without Chip Select/Enable?
  • Need help in optimizing RF antenna balun on two port network analyzer
  • Different types of screened cable, which is best?
  • Radiated immunity testing for product that has an antenna and receiver?
  • ealtek RTL8722DM_mini Arduino Compatible WiFi + BLE IoT development board

RSS Electro-Tech-Online.com Discussions

  • Help with circuit design
  • Adjustable 0-5v ground switch
  • Multiple UART Hub to USB?
  • Need to add a question to a thread.
  • Weird switching transformer noise, Audio attached
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2021 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering