

AVR ISPMKII
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
2ATMEGA16U2-MU
QFN-32-EP(5x5)-40℃~+85℃ 16KB 16MHz 2.7V~5.5V 22 512Byte 512Byte 8 Bit AVR Built-in FLASH QFN-32-EP(5x5) Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)CPDER5V0U
SOD-723F-40℃~+125℃ 1 12.5V 130pF 15A@8/20us 180W@8/20us 200nA 5V 6V ESD IEC 61000-4-2 Unidirectional SOD-723F ESD and Surge Protection (TVS/ESD) ROHSComchipESD And Surge Protection (TVS/ESD)
README
Readme.mdLUFA 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!
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
- Clone the repository from https://github.com/abcminiuser/lufa.
- From this repo's
Firmwarefolder, copy and replace theConfigfolder andmakefileintoProjects/AVRISP-MKII/in the LUFA repo. - From this repo's
Firmwarefolder, copyBHATASAKAfolder intoLUFA/Divers/Board/AVR8in the LUFA repo. - In the LUFA repo, modify
LUFA/Drivers/Board/Board.hand copy the last#elif, then modify it to useBHATASAKAas the board name. - In the LUFA repo, modify
LUFA/Drivers/Board/LEDs.hand copy the last#elif, then modify it to useBHATASAKAas 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
- 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. - 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.
- Open Zadig and select the 16u2. Install the
libusb-win32driver for the chip. - 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| Qty | Value | Footprint | References |
|---|---|---|---|
| 3 | 1uF | Capacitor_SMD:C_0603_1608Metric | C6, C7, C8 |
| 2 | 10k | Resistor_SMD:R_0603_1608Metric | R1, R7 |
| 2 | 18pF | Capacitor_SMD:C_0402_1005Metric | C2, C3 |
| 2 | 22 | Resistor_SMD:R_0603_1608Metric | R2, R3 |
| 2 | 5.1k | Resistor_SMD:R_0603_1608Metric | R4, R5 |
| 1 | 100nF | Capacitor_SMD:C_0603_1608Metric | C5 |
| 1 | 10nF | Capacitor_SMD:C_0603_1608Metric | C12 |
| 1 | 10uF | Capacitor_SMD:C_0805_2012Metric | C9 |
| 1 | 16MHz | AVR-ISPMKII:Crystal_SMD_2520-4Pin_2.5x2.0mm | Y1 |
| 1 | 1M | Resistor_SMD:R_0603_1608Metric | R6 |
| 1 | 2.2k | Resistor_SMD:R_0603_1608Metric | R12 |
| 1 | 22k | Resistor_SMD:R_0603_1608Metric | R11 |
| 1 | 4.7nF | Capacitor_SMD:C_0603_1608Metric | C1 |
| 1 | 4.7uF | Capacitor_SMD:C_0805_2012Metric | C4 |
| 1 | AP7365-33WG-7 | Package_TO_SOT_SMD:TSOT-23-5 | U2 |
| 1 | ATmega16U2-MU | Package_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.1x3.1mm | U1 |
| 1 | CPDER5V0U | AVR-ISPMKII:D_0402_1005Metric | D1 |
| 1 | EGUARD0502BTR | Package_TO_SOT_SMD:SOT-523 | D2 |
| 1 | G_LED | LED_SMD:LED_0603_1608Metric | D3 |
| 1 | ISP_Header | Connector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_Vertical | J4 |
| 1 | NLSX4373DMR2G | AVR-ISPMKII:TSSOP8 | U3 |
| 1 | R_LED | LED_SMD:LED_0603_1608Metric | D4 |
| 1 | SolderJumper_2_Open | Jumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mm | JP1 |
| 1 | TestPoint | TestPoint:TestPoint_Pad_D2.0mm | TP1 |
| 1 | USB_C_Receptacle_USB2.0 | Connector_USB:USB_C_Receptacle_HRO_TYPE-C-31-M-12 | J1 |
| 1 | V_Target | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J3 |
Similar boards
- 2 layers101.6 × 53.3 mm

- 2 layers20 × 108.5 mm

OTBreakOut
GaudiLabs/OpenThereminV4_EurorackBreakout
Break-Out-Modules for the OpenTheremin V45
43 parts6GPL-3.0 - 2 layers158 × 34 mm

- 2 layers50.2 × 95.6 mm

Tempmonitor
Tempmonitor/Tempmonitor
Hardware and software for Temp monitor - An open source external system monitor.
43 parts3 - 2 layers76 × 106 mm

- 2 layers95 × 90.5 mm

- 2 layers68.6 × 53.3 mm

Arduino Mega 2560
ded811/Mega-Uno-2560
An Arduino-compatible ATmega2560 development board in the Arduino Uno form factor
62 parts1 - 2 layers101.6 × 53.3 mm

Ebenezer Boadi Boateng 01230884B (1)
EbenezerBoadiBoateng/Arduino-Mega-260-R3-Ebenezer-Boadi-01230884b-
Recreating an Arduino mega on a kicad
84 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.