Skip to the content
2 layers65 × 56 mmAvr5hat, the printed circuit board in 3D

Pi Hat that can program 5 AVR's at once

Size
65 × 56 mm
Copper layers
2
Thickness
1.6 mm
Parts
21
Nets
59
Pads
152
Tracks, vias
309, 38
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
12 Mar 2023
Updated
31 Jul 2024

Overview

Avr5hat is an open-source printed circuit board by gcormier, from the gcormier/avr5hat repository on GitHub. It is a 2-layer board of 65 × 56 mm with 21 parts on 59 nets, routed with 309 tracks and 38 vias.

It is built around the TXS0108EPW. Its parts include 7 connectors, 6 capacitors and 3 ICs.

Main components

1

README

readme.md

avr5hat

A hat for the Pi that can program up to 5 AVR's at once. The port AVR1 uses the PI's hardware SPI, the rest are software (bitbang). Level-shifting from 3.3V to 5V is handled by three TXS0108E.

Heavy inspiration from https://github.com/sparkfun/SparkFun_Pi_AVR_Programmer_HAT

For sale on Tindie

I have a kit (soldering required) available on Tindie at https://www.tindie.com/products/gcormier/avr5hat

Flashing Notes

text
#program flash and lock bits
sudo avrdude -p $DEVICE -C /home/pi/avrdude_gpio.conf -c linuxspi -P /dev/spidev0.0 -b 2000000 -D -v -u -U flash:w:$firmware:i -u -U lock:w:$LOCK:m
sudo avrdude -p $DEVICE -C /home/pi/avrdude_gpio.conf -c linuxspi -P /dev/spidev0.0 -b 125000 -D -v -e -u -U hfuse:w:$HIGH_FUSE:m -u -U lfuse:w:$LOW_FUSE:m -u -U efuse:w:$EXT_FUSE:m 2>/home/pi/fuse_results.txt

Pi Setup Notes

Make sure to add dtoverlay=spi0-1cs to your /boot/config.txt

sudo apt install gpiod

Useful links

https://github.com/avrdudes/avrdude/wiki/Building-AVRDUDE-for-Linux

https://learn.adafruit.com/program-an-avr-or-arduino-using-raspberry-pi-gpio-pins/installation

text
sudo apt-get install build-essential git cmake flex bison libelf-dev libusb-dev libhidapi-dev libftdi1-dev libreadline-dev
wget https://github.com/avrdudes/avrdude/archive/refs/tags/v7.1.tar.gz
tar zxvf v7.1.tar.gz && rm v7.1.tar.gz 
cd avrdude-7.1/
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo -D HAVE_LINUXGPIO=1 -D HAVE_LINUXSPI=1 -B build_linux
cmake --build build_linux
sudo cmake --build build_linux --target install

Now when you run avrdude -c?type you should see linuxgpio and linuxspi in the list of valid programmer types.

Parts

21
QtyValueFootprintReferences
60.1uFCapacitor_SMD:C_0603_1608MetricC1, C2, C3, C4, C5, C6
4MountingHole_2.7mm_M2.5MountingHole:MountingHole_2.7mm_M2.5MH1, MH2, MH3, MH4
3TXS0108EPWPackage_SO:TSSOP-20_4.4x6.5mm_P0.65mmU1, U2, U3
1AVR1Connector_IDC:IDC-Header_2x03_P2.54mm_VerticalJ5
1AVR2Connector_IDC:IDC-Header_2x03_P2.54mm_VerticalJ3
1AVR3Connector_IDC:IDC-Header_2x03_P2.54mm_VerticalJ4
1AVR4Connector_IDC:IDC-Header_2x03_P2.54mm_VerticalJ2
1AVR5Connector_IDC:IDC-Header_2x03_P2.54mm_VerticalJ6
1AuxConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ7
1GPIOConnector_PinSocket_2.54mm:PinSocket_2x20_P2.54mm_VerticalJ1

The 20 most common of 21 parts.

Similar boards

  • 4 layers68.6 × 53.3 mmIcezum, the printed circuit board in 3D

    Icezum

    FPGAwars/icezum

    :star2: IceZUM Alhambra: an Arduino-like Open FPGA electronic board

    218 parts357GPL-3.0
  • 2 layers94.5 × 74.4 mmAx58100-stm32-ethercat, the printed circuit board in 3D

    Ax58100-stm32-ethercat

    MetalMusings/MyOwnEtherCATDevice

    Documentation accompanying the "Make My Own EtherCAT device" video serie on Youtube.

    184 parts93
  • 4 layers80 × 100 mmBaseboard, the printed circuit board in 3D

    Baseboard

    NVIDIA-AI-IOT/my-jetson-nano-baseboard

    An open source Jetson Nano baseboard and tools to design your own.

    240 parts91
  • 4 layers80 × 73.8 mmESP32-Bit Pirate Dock, the printed circuit board in 3D

    ESP32-Bit Pirate Dock

    AndreiVladescu/ESP32-Bit-Pirate-Hardware

    Carrier breaker-board for the ESP32-S3 Devkit. Works great with the ESP32-Bit-Pirate firmware.

    49 parts85CERN-OHL-W-2.0
  • 4 layers42.8 × 36.8 mmDriver board, the printed circuit board in 3D

    Driver board

    blazer82/FT81x_Arduino_Driver

    FT81x on ST7701S Arduino Driver

    49 parts59MIT
  • 2 layers81.3 × 30.9 mmISABlaster, the printed circuit board in 3D

    ISABlaster

    scrapcomputing/ISABlaster

    A software-defined ISA card powered by a Raspberry Pi Pico

    24 parts53GPL-2.0
  • 4 layers29 × 50.3 mmToshiba hvac esp32, the printed circuit board in 3D

    Toshiba hvac esp32

    florianbrede-ayet/esphome-toshiba-hvac-controller

    ESPhome component & hardware to control Toshiba & Carrier HVAC units with WIFI interface

    7 parts38MIT
  • 4 layers65 × 100 mmUBMS-2, the printed circuit board in 3D

    UBMS-2

    grokicad/grokicad

    Grok powered schematic intelligence for your kicad repositories

    246 parts28

Questions

How big is the Avr5hat PCB?

It measures 65 × 56 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Avr5hat use?

21 parts, built around the TXS0108EPW. 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 Avr5hat KiCad files?

From the gcormier/avr5hat repository on GitHub, at the commit this page was made from: the board is pcb/avr5hat.kicad_pcb and its schematic pcb/avr5hat.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Avr5hat design in my own project?

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