

Christmas tree barrier
An AVR program for ATTiny85 to transmit a virtual wall signal for an iRobot Roomba
- Size
- 31 × 30.5 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 17
- Nets
- 17
- Pads
- 59
- Tracks, vias
- 106, 4
- Pours
- 4
- Routed
- Yes
- KiCad
- KiCad 4
- Created
- 12 May 2016
- Updated
- 12 Dec 2020
Overview
Christmas tree barrier is an open-source printed circuit board by Petezah, from the Petezah/roomba_wall_v2 repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 31 × 30.5 mm with 17 parts on 17 nets, routed with 106 tracks and 4 vias.
It is built around the ATTINY45-20SU and MIC5225-3.3YM5. Its parts include 4 connectors, 3 resistors, 2 capacitors, 2 ICs and 2 diodes. It belongs with the AVR (ATmega, ATtiny) boards of this library.
Main components
2ATTINY45-20SU
SOIC-8-208mil-40℃~+85℃ 10bit 2.7V~5.5V 20MHz 256Byte 256Byte 4KB 6 8 Bit AVR Built-in FLASH SOIC-8-208mil Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)MIC5225-3.3YM5
SOT23-53.3V 150mA Ultra-Low Current uCap Low Dropout RegulatorMicrochip TechnologyUncategorised
README
README.mdroomba_wall_v2
An AVR device, based on ATTiny85, to transmit a virtual wall signal for an iRobot Roomba
Folder layout
- /firmware
- Source for the ATTiny85 firmware
- /hardware
- Files describing the board layout, etc
- /christmas_tree_barrier
- Files describing the board layout for the Christmas tree barrier variation
Building
Prerequisites for "happy path":
- Raspberry Pi configured with BCM SPI enabled
- AVR-GCC installed
- Easiest way to get this is 'sudo apt-get install arduino'
- Either:
- A 6-position, dual-row IDC cable (recommended)
- Or jumpers to wire SPI bus of Raspberry Pi to the ISP pads on the finished board
Steps
hardware
- Order a board based on the files in https://github.com/Petezah/roomba_wall_v2/tree/master/hardware
- Alternately, order one directly from OSH Park here: https://oshpark.com/shared_projects/yCviCn7Z
- Purchase parts from Mouser electronics using the current BOM
- Use the ones with "mouser" in their filenames
- Assemble the board--parts are all marked on the silkscreen
- NB: The ISP header should not be soldered to the board--merely insert the header pins into the IDC cable and wedge the pins into the vias during programming
firmware
There are two methods to wire the board for programming:
-
Recommended way:
- Order my Raspberry Pi ISP board here: https://oshpark.com/shared_projects/iYtnPahC
- Assemble, and use an IDC cable as described above
-
Alternate way:
- Hook up the ISP pins on the assembled board to your Raspberry PI as follows:
- ISP Pin 1 --> Raspberry Pi Pin 21 (MISO)
- ISP Pin 2 --> Raspberry Pi Pin 17 (3.3V)
- ISP Pin 3 --> Raspberry Pi Pin 23 (SCK)
- ISP Pin 4 --> Raspberry Pi Pin 19 (MOSI)
- ISP Pin 5 --> Raspberry Pi Pin 15 (GPIO22)
- ISP Pin 6 --> Raspberry Pi Pin 25 (GND)
- Hook up the ISP pins on the assembled board to your Raspberry PI as follows:
Once wiring is accomplished:
- Execute the following on the Raspberry Pi command line
- cd firmware
- make fuse
- make install
Parts
17| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | 10uF | lib_fp:C_1206 | C1, C2 |
| 2 | 560 | lib_fp:R_1206 | R1, R2 |
| 2 | JSTPH | lib_fp:JST_PH_B2B-PH-SM4-TB_02x2.00mm_Straight | J2, J3 |
| 1 | 51 | lib_fp:R_1206 | R3 |
| 1 | 8Mhz | lib_fp:Resonator_SMD_muRata_CSTCE_G-3pin_3.0x0.7mm | Y1 |
| 1 | ATTINY45-20SU | lib_fp:SOIC-8_5.35x5.40mm_Pitch1.27mm | U1 |
| 1 | AVR-ISP-6 | lib_fp:Pin_Header_Straight_2x03_Pitch2.54mm | CON1 |
| 1 | IR_LED | lib_fp:LED_0603_HandSoldering | D2 |
| 1 | LED | lib_fp:LED_1206 | D1 |
| 1 | LOGO | kicad-libs:petezah-logo-tiny | G*** |
| 1 | MIC5225-3.3 | lib_fp:SOT-23-5_HandSoldering | IC1 |
| 1 | Q_NPN_BEC | lib_fp:SOT-23_Handsoldering | Q1 |
| 1 | USB_OTG | lib_fp:USB_Micro-B_10103594-0001LF | J1 |
The 16 most common of 17 parts.
Similar boards
- 2 layers76.3 × 105.1 mm

- 2 layers28 × 20 mm

TMF882xBreakout
generationmake/TMF882xBreakout
Breakout board for the ams TMF8820, TMF8821 and TMF8828 multi-zone time-of-flight sensors
27 parts1 - 2 layers28 × 20 mm

TMF8801Breakout
generationmake/TMF8801Breakout
Breakout board for the ams TMF8801 1D time-of-flight sensor
27 parts1 - 4 layers165 × 160 mm

- 2 layers133 × 60 mm

Max31856
FirstLinkConsutlingService/UniversalKilnController
A Hardware/Software project to control devices of the KILN persuasion ( temperature and cooking time manager)
23 partsMIT - 2 layers31.8 × 27.8 mm

Adafruit 0.96in 160x80 TFT Display
ihmnelson/Turn-Timer
Turn timer file repo for Tabletop Gaming Club collab as part of Electronics Club @ UWB 2026.
29 parts - 2 layers25.4 × 34.3 mm

Adafruit Ultimate GPS
johnscovell/ARIS
Click here to purchase one from the Adafruit shop Other versions: Adafruit Ultimate GPS Breakout Adafruit Ultimate GPS FeatherWing Adafruit Ultimate GPS Logger Shield Adafruit Ultimate GPS HAT for Raspberry Pi Flora…
22 parts - 2 layers141.6 × 59.1 mm

Questions
How big is the Christmas tree barrier PCB?
It measures 31 × 30.5 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Christmas tree barrier use?
17 parts, built around the ATTINY45-20SU and MIC5225-3.3YM5. 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 Christmas tree barrier KiCad files?
From the Petezah/roomba_wall_v2 repository on GitHub, at the commit this page was made from: the board is christmas_tree_barrier/christmas_tree_barrier.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Christmas tree barrier design in my own project?
Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).