Skip to content

USB-to-Serial Firmware for the Arduino 16u2 controllers based on the LUFA project. The main goal of this project is to eliminate the 4ms extra latency added by the default firmware.

License

Notifications You must be signed in to change notification settings

KITcar-Team/kitcar-usbserial

Repository files navigation

Arduino Uno or Meag2560 firmware for Atmega16U2 (USB-Serial-Converter)

The Arduino Uno and the Arduino Mega2560 are bot using an Atmega16U2 as an USB to serial converter. The default firmware of this microcontroller causes latencies of about 4ms. This project provides a LUFA-based firmware for the Atmega16U2 which does not suffer from this latency issue.

Requirements

  • gcc-avr
  • avr-libc
  • dfu-programmer

Build Firmware

  1. Download LUFA by running ./getlufa.sh.
  2. Build firmware by running make.

Flash Firmware

An instruction for flashing the firmware can be found here.

Note: If dfu-prgrammer is not able to detect the device on Linux, you need to deactivate auto-suspension of usb-ports(link).

echo -n -1 > /sys/module/usbcore/parameters/autosuspend

About

USB-to-Serial Firmware for the Arduino 16u2 controllers based on the LUFA project. The main goal of this project is to eliminate the 4ms extra latency added by the default firmware.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published