Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Contributions
  • Articles
    • EG Blogs
    • Insight
    • Invention Stories
    • How to
  • What Is
  • Forums
    • EG Forum Archive
    • EDABoard.com
    • Electro-Tech-Online
  • 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
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Classrooms
    • Grid Infrastructure
    • Aerospace & Defense
    • Building Automation
    • Power Delivery
    • Factory Automation
    • Motor Drives
    • Medical Technology
  • Video

Turn your ProMicro into a USB Keyboard/Mouse

January 21, 2017 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 >

A Low-Cost GPS Positioning System With High Accuracy For Small Robotic Devices?
Valentine’s Day IoT Project
DIY Heated Bed for a Cetus 3D Printer
DIY Coin Sorting and Counter

Stay Up To Date

Newsletter Signup

Popular Posts

GLCD 128×64 graphical lcd(GLCD) interfacing with 8051(89c51,89c52) microcontroller
Stm32f103 microcontroller controlling stepper motor by A4988 stepper motor driver module
How to measure Current using Arduino and ACS712 Current Sensor
Basic Electronics 20 – Types of inductors

EE Training Center Classrooms

“ee
“ee

Recent Articles

  • Renesas Electronics secures Bluetooth 5 connections with 32-bit RX23W MCU
  • iBASE introduces signaturePro 12-Port video wall signage player with outstanding capabilities
  • Microcontroller Project: STM32 low power modes analysis
  • Fujitsu starts shipping supercomputer Fugaku
  • RPi Python Programming 03 – Raspberry Pi as Linux System
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 © 2019 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
  • Contributions
  • Articles
    • EG Blogs
    • Insight
    • Invention Stories
    • How to
  • What Is
  • Forums
    • EG Forum Archive
    • EDABoard.com
    • Electro-Tech-Online
  • 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
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Classrooms
    • Grid Infrastructure
    • Aerospace & Defense
    • Building Automation
    • Power Delivery
    • Factory Automation
    • Motor Drives
    • Medical Technology
  • Video