raphnet.net banner

Multiuse PCB-X : A small multipurpose PCB with an USB micro-controller

Buy Me a Coffee at ko-fi.com


This USB-specialized circuit board design is inspired from my previous Multiuse Tiny 1 and Multiuse PCB2 projects. This time, since a micro-controller with native USB support is used, it is possible to transfer data at 12 Mbit/s (Full speed) unlike the older designs which, due to the use of a software-only USB implementation (V-USB), were limited to 1.5 Mbit/s (Low speed).

Besides the higher transfer rate, it is also possible to have the host (the PC) poll the adapter at closer intervals, which is a great way to reduce latency. Also, since the micro-controller does not handle low level USB communication in real-time anymore, some restrictions are lifted. For instance, disabling interrupts during time critical operations, a necessity difficult to work around in many situations, is no longer prohibited.

Note: This board is not arduino compatible.

goto top


The board has a mini-USB connector, so it is a simple matter of connecting a cable. For the remaining signals, solder PADs are available.

Signal Side Label
PD0 (INT0/AIN0) Component side 0
PD1 (INT1/AIN1) Component side 2
PD2 (INT2/AIN2/RXD1) Component side 1
PD3 (INT3/TXD1) Component side 3
PB1 (SCLK) Solder side SCK
PB2 (MOSI) Solder side MOSI
PB3 (MISO) Solder side MISO
PD7 (HWB) Solder side HWB
Component side

Component side

Solder side

Solder side

Yes, the labels 2 and 1 are inverted.

goto top


Nothing complicated really, but here are a few clarifications:

goto top


Option 1 : DFU Bootloader

The Atmega32u2 micro-controller this design is based on is programmed with an USB DFU (Device Firmware Update) bootloader at the factory. This means it can be user-programmed with a PC utility without requiring an AVR programming dongle.

To install a firmware however, one must first enter bootloader mode. There are a few ways:
  1. When the chip is new, just connecting the USB cable is enough. The bootloader does nothing when no firmware has been installed.
  2. If the chip has been programmed with a firmware:
    1. Send a command that makes the firmware jump in the bootloader.
    2. While keeping the HWB signal low by connecting it to GND, perform a reset using the RESET pad.
On the PC side, a programming tool that works well is: dfu-programmer. It's what I use:
# Flashing a (new) firmware with dfu-programmer
$ dfu-programmer atmega32u2 erase                   # Step 1: Erase the current firmware
$ dfu-programmer atmega32u2 flash firmware.hex      # Step 2: Flash the new firmware
$ dfu-programmer atmega32u2 start                   # Step 3: Start the new firmware

Option 2 : AVR-ISP

This is the traditional approach to programing AVR micro-controllers using a programming dongle. Not necessary for this board, but sometimes it can be useful: All required signals are available on the PADs on the solder side of the board. It is a matter of wiring 6 wires to a 2x3 pin header matching the programmer. For more information on AVR programming using, refer to my AVR programming page.

goto top



I recommend the use of LUFA (http://www.fourwalledcubicle.com/LUFA.php), an excellent USB framework. This project is very popular so there are tons of examples for a panoply of USB peripheral types. There is also a mailing list if you need help.

Here is an example using LUFA: MouseShaker.tar.gz. This firmware, derived from the Demos/Devices/ClassDriver/Mouse example supplied with LUFA implements a mouse that continuously spins around. Almost useful as a screensaver inhibitor.

LUFA alternatives

The LUFA documentation mentions a few alternatives. I did not try any of them.
Alternative USB AVR Stacks

DIY From scratch

If is of course possible to develop your own USB framework by reading the datasheets and using the micro-controller registers directly (This is what I did for my PPUSBComm project). A great way to learn about how everything works, and necessary if you want to own the rights to use it the way you please. But be ready to spend a lot of time on it.

goto top


raphnet projects

Gamecube/N64 controller to USB adapterThe third generation of my N64/Gamecube to USB adapter uses this design.
PPUSBCOMMPPUSBComm is a tool to copy files from a Linux system with USB ports to a system running DOS with a parallel port.

User projects

If you built something using my circuit, I would be delighted to list and link to it here. Please let me know!

goto top


If you have questions, please don't hesitate to contact me.

Meanwhile, here are a few entries I anticipate:

goto top


I cannot be held responsible for any damages that could occur to you or your equipment while following the procedures present on this page. Also, I GIVE ABSOLUTELY NO WARRANTY on the correctness and usability of the informations on this page. Please note, however, that the procedures above have worked in my case without any damages or problems.

Now you cannot say that I did not warn you :)

goto top

Any trademarks used on this site are the property of their respective owners.
Copyright © 2002-2022, Raphaël Assenat
Website coded withWebsite coded with vimLast update: January 7, 2020 (Tuesday)