Skip to the content
2 layers30 × 17.8 mmAVR ISPMKII, the printed circuit board in 3D

This repo contains the PCB and firmware configuration files for a compact USB-C programming board designed for LUFA's AVRISP-MKII firmware based on an ATMega16u2.

Size
30 × 17.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
32
Nets
44
Pads
140
Tracks, vias
314, 49
Pours
1
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
29 Aug 2021
Updated
13 Nov 2022

Overview

AVR ISPMKII is an open-source printed circuit board by bhatasaka, from the bhatasaka/LUFA_AVRISP-MKII repository on GitHub. It is a 2-layer board of 30 × 17.8 mm with 32 parts on 44 nets, routed with 314 tracks and 49 vias.

It is built around the ATMEGA16U2-MU and CPDER5V0U. Its parts include 10 capacitors, 9 resistors, 4 diodes, 3 ICs and 3 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

Readme.md

LUFA AVRISP-MKII

Custom PCB designed for the LUFA AVRISP-MKII Project https://github.com/abcminiuser/lufa

This repo contains the PCB and firmware configuration files for a compact USB-C programming board designed for LUFA's AVRISP-MKII firmware based on an ATMega16u2. Major thanks to the LUFA project for making this possible!

PCB 3D View

About


This PCB is designed only for ISP. However, the PCB could be expanded to break out the PDI and TPI pins as well! It has a level shifter that allows programming of targets other than 5V. Adding a 2-pin jumper to V Targ allows the target device to be powered from this board as well. 2 voltages are available - 5v and 3.3v. If you wish to program the 16u2 from the ISP header, the RST pin must be shorted to the 16u2's RST pin, this can be done with a jumper on the Self Prog pin header.

File Structure


  • Firmware
    • Contains configuration files for the LUFA AVRISP-MKII project.
  • KiCad
    • Contains the KiCad files for the PCB.
  • images
    • Contains images of the PCB and schematic.

Firmware Setup and Programming


Setup

  1. Clone the repository from https://github.com/abcminiuser/lufa.
  2. From this repo's Firmware folder, copy and replace the Config folder and makefile into Projects/AVRISP-MKII/ in the LUFA repo.
  3. From this repo's Firmware folder, copy BHATASAKA folder intoLUFA/Divers/Board/AVR8 in the LUFA repo.
  4. In the LUFA repo, modify LUFA/Drivers/Board/Board.h and copy the last #elif, then modify it to use BHATASAKA as the board name.
  5. In the LUFA repo, modify LUFA/Drivers/Board/LEDs.h and copy the last #elif, then modify it to use BHATASAKA as the board name.

Compiling

Go to Projects/AVRISP-MKII/ and type make. Make sure Make and avr-gcc are installed and in your path.

Programming

  1. The hex file generated in the Projects/AVRISP-MKII/ folder can be flashed through DFU. Plug the board into your computer. If it is blank it will show up as ATMega 16u2. If it doesn't, reset the chip after it's plugged in.
  2. Download Zadig (https://zadig.akeo.ie/) and Atmel Flip (https://www.microchip.com/en-us/development-tool/flip) - make sure you Java SE JRE installed and in your path. Install Flip.
  3. Open Zadig and select the 16u2. Install the libusb-win32 driver for the chip.
  4. Open Atmel Flip, select the 16u2, connect to it, load the hex file, and program the chip. It should now show up as an AVRISP-MKII (may need to unplug and replug).

Usage


Install AVRISP-MKII drivers with Zadig (https://zadig.akeo.ie/). Choose libusb-win32. To use with Arduino, select the AVRISP mkii programmer. To use with AVRDude, use -c avrispmkII.


Major thanks to LUFA, KiCad, and Zadig!

Parts

32
QtyValueFootprintReferences
31uFCapacitor_SMD:C_0603_1608MetricC6, C7, C8
210kResistor_SMD:R_0603_1608MetricR1, R7
218pFCapacitor_SMD:C_0402_1005MetricC2, C3
222Resistor_SMD:R_0603_1608MetricR2, R3
25.1kResistor_SMD:R_0603_1608MetricR4, R5
1100nFCapacitor_SMD:C_0603_1608MetricC5
110nFCapacitor_SMD:C_0603_1608MetricC12
110uFCapacitor_SMD:C_0805_2012MetricC9
116MHzAVR-ISPMKII:Crystal_SMD_2520-4Pin_2.5x2.0mmY1
11MResistor_SMD:R_0603_1608MetricR6
12.2kResistor_SMD:R_0603_1608MetricR12
122kResistor_SMD:R_0603_1608MetricR11
14.7nFCapacitor_SMD:C_0603_1608MetricC1
14.7uFCapacitor_SMD:C_0805_2012MetricC4
1AP7365-33WG-7Package_TO_SOT_SMD:TSOT-23-5U2
1ATmega16U2-MUPackage_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.1x3.1mmU1
1CPDER5V0UAVR-ISPMKII:D_0402_1005MetricD1
1EGUARD0502BTRPackage_TO_SOT_SMD:SOT-523D2
1G_LEDLED_SMD:LED_0603_1608MetricD3
1ISP_HeaderConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ4
1NLSX4373DMR2GAVR-ISPMKII:TSSOP8U3
1R_LEDLED_SMD:LED_0603_1608MetricD4
1SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mmJP1
1TestPointTestPoint:TestPoint_Pad_D2.0mmTP1
1USB_C_Receptacle_USB2.0Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12J1
1V_TargetConnector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ3

Similar boards

  • 2 layers101.6 × 53.3 mmArduino MEGA 2560-Rev3, the printed circuit board in 3D

    Arduino MEGA 2560-Rev3

    bobc/Arduino_KiCad

    KiCad versions of Arduino projects

    123 parts22
  • 2 layers20 × 108.5 mmOTBreakOut, the printed circuit board in 3D

    OTBreakOut

    GaudiLabs/OpenThereminV4_EurorackBreakout

    Break-Out-Modules for the OpenTheremin V45

    43 parts6GPL-3.0
  • 2 layers158 × 34 mmTaggerMainboard, the printed circuit board in 3D

    TaggerMainboard

    Infinitag/Hardware

    Files for the INFINITAG hardware

    75 parts6
  • 2 layers50.2 × 95.6 mmTempmonitor, the printed circuit board in 3D

    Tempmonitor

    Tempmonitor/Tempmonitor

    Hardware and software for Temp monitor - An open source external system monitor.

    43 parts3
  • 2 layers76 × 106 mmSnack Machine, the printed circuit board in 3D

    Snack Machine

    Jnesselr/Vending-Machine

    105 parts2MIT
  • 2 layers95 × 90.5 mmTeensy ver, the printed circuit board in 3D

    Teensy ver

    MUNAKATA-EPC/Artemis_2023

    アルテミス2023シーズンのリポジトリです。詳しくはwikiで。

    151 parts2
  • 2 layers68.6 × 53.3 mmArduino Mega 2560, the printed circuit board in 3D

    Arduino Mega 2560

    ded811/Mega-Uno-2560

    An Arduino-compatible ATmega2560 development board in the Arduino Uno form factor

    62 parts1

Questions

How big is the AVR ISPMKII PCB?

It measures 30 × 17.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the AVR ISPMKII use?

32 parts, built around the ATMEGA16U2-MU and CPDER5V0U. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the AVR ISPMKII KiCad files?

From the bhatasaka/LUFA_AVRISP-MKII repository on GitHub, at the commit this page was made from: the board is KiCad/AVR-ISPMKII.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the AVR ISPMKII design in my own project?

Its repository states no licence, so its author keeps all rights: ask bhatasaka before reusing the design.