

Klipper nano expander
Klipper Nano Expander, an Arduino Nano Shield to be used as an auxiliary Klipper MCU
- Size
- 65.3 × 18.3 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 39
- Nets
- 38
- Pads
- 112
- Tracks, vias
- 102, 14
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 6 (file 20211014)
- Created
- 19 Jun 2022
- Updated
- 12 Apr 2023
Overview
Klipper nano expander is an open-source printed circuit board by orobardet, from the orobardet/klipper_nano_expander repository on GitHub, published under the MIT licence. It is a 2-layer board of 65.3 × 18.3 mm with 39 parts on 38 nets, routed with 102 tracks and 14 vias.
It is built around the RC0805JR-07100RL, RC0805JR-074K7L and CC0805KKX5R8BB475, with the IRLML6344TRPBF, CC0805KRX7R9BB104 and CL21A106KPFNNNE among its other parts. Its parts include 12 resistors, 8 capacitors, 3 transistors, 2 connectors and 1 diode. It belongs with the robots and motor control boards and the AVR (ATmega, ATtiny) boards of this library.
Main components
8RC0805JR-07100RL
UncategorisedUnknown makerRC0805JR-074K7L
UncategorisedUnknown makerCC0805KKX5R8BB475
080525V 4.7uF X5R ±10% 0805 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSYAGEOMultilayer Ceramic Capacitors MLCC - SMD/SMTIRLML6344TRPBF
SOT-23-55℃~+150℃ 1 N-channel 1.1V 1.3W 29mΩ@4.5V 30V 46pF 5A 6.8nC 650pF SOT-23 MOSFETs ROHSInfineon TechnologiesMOSFETsCC0805KRX7R9BB104
0805100nF 50V X7R ±10% 0805 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSYAGEOMultilayer Ceramic Capacitors MLCC - SMD/SMTCL21A106KPFNNNE
080510V 10uF X5R ±10% 0805 Multilayer Ceramic Capacitors MLCC - SMD/SMT ROHSSamsung Electro-MechanicsMultilayer Ceramic Capacitors MLCC - SMD/SMTRC0805JR-071KL
UncategorisedUnknown maker17-215SURC/S530-A2/TR8
0805-40℃~+85℃ 130° 13mcd~32mcd 2V~2.4V 624nm 632nm Red Water Clear 0805 LED Indication - Discrete ROHSEverlight ElectronicsLED Indication - Discrete
README
README.mdKlipper Nano Expander
An Arduino Nano Shield to use with Klipper 3D printer firmware, as a auxiliary MCU.

Features
- Only require an Arduino Nano
- +5V optional external power supply with fuse
- Connected to the Arduino Nano 5V
- Only required if you need more than 500mA power, else the Nano power supply should be enough
- x4 temperature sensors (or any analog device as input)
- x3 PWM mosfet driven port (or any PWM controlled device as output)
- x1 Neopixel (external 5V power supply needed)


Source files:
- Kicad 6 project, schematic, PCB and library
- CAD files, including .STEP and Fusion 360 source
Why
- Adds more temperature sensors and fan controllers
- Drives 5V fans
- Drives a 5V Neopixel without a level shifter
- Arduino nano are cheap
- Arduino nano are easy to source
- A lot of people (including me) have some in their drawers
- This board only have simple components easy to find
- Small footprint
- Does not need any hardware interaction to flash (no boot jumper or boot button to press)
How to build
production directory contains Gerber file and BOM + Position file for JLCPCB assembly.
If you use JLC PCB to produce and assemble your board, configure PCBA for the bottom side, where most of the SMD
component are placed.
You'll have to solder by yourself the power indicator LED on the front of the board. It's a 0805, that can be soldered by hand.
However this LED is not mandatory for the board to work, you can skip soldering it if you want.
You'll also have to source and solder all the other non-SMD components:
- x2 15 pins female dupont header for the Arduino Nano (or directly the male pin of the Nano, which is not recommended)
- x1 Keystone 3544-2 mini fuse holder
- x7 2 pins JST connector (FANx and THx headers)
- x1 3 pins JST connector (Neopixel headers)
- x1 screw terminal pitch 5.08mm for power in
BOM
- Interactive BOM
- CSV or XLSX BOM
| Ref | Qty | Value | Description | Soldering | Footprint | LCSC Ref |
|---|---|---|---|---|---|---|
| C1, C8 | 2 | 10uF | Unpolarized ceramic capacitor | PCBA | 0805 | C17024 |
| C2, C3 | 2 | 0.1uF | Unpolarized ceramic capacitor | PCBA | 0805 | C49678 |
| C4, C5, C6, C7 | 4 | 4.7uF | Unpolarized ceramic capacitor | PCBA | 0805 | C1779 |
| Q1, Q2, Q3 | 3 | IRLML6344TRPBF | MOSFET N-CH 30V 5A SOT23 | PCBA | SOT-23 | C20917 |
| R1 | 1 | 1K | Resistor | PCBA | 0805 | C17513 |
| R3, R6, R9, R15 | 4 | 100 | Resistor | PCBA | 0805 | C17408 |
| R4, R7, R10 | 3 | 10K | Resistor | PCBA | 0805 | C17414 |
| R11, R12, R13, R14 | 4 | 4.7K | Resistor | PCBA | 0805 | C17673 |
| D3 | 1 | Any color | LED | PCBA | 0805 | C84256 |
| A1 | 1 | Arduino Nano v3.x | Hand-soldered | |||
| A1-a, A1-b | 2 | 15 pins female dupont header + 15 mins mal dupont header | Hand-soldered | P2.54 | ||
| F1 | 1 | Fuse | Mini fuse holder + 2A or 5A mini fuse | Hand-soldered | 3544-2_FuseHolder | |
| J1 | 1 | Screw terminal 2 pins P5.08mm | Hand-soldered | P5.08mm | ||
| FAN0, FAN1, FAN2 | 3 | JST 2 pins P2.54mm | Hand-soldered | P2.54 | ||
| T0, T1, T2, T3 | 4 | JST 2 pins P2.54mm | Hand-soldered | P2.54 | ||
| Neopixel | 1 | JST 3 pins P2.54mm | Hand-soldered | P2.54 |
How to use
ONLY use 5V power supply! The Vin of the bord is connected to the 5V of the Arduino Nano, with no protection:
any power >5V may fry your Nano, and any power <5V may fry you power supply.
Powering on Vin with an external 5V power supply is only necessary if you device draw more current than the Nano can provide (800mA theorically, but with so many Nano clone out there it's safer to stick to 500mA max).
- If you only plug temperature sensors, the Nano power supply should be enough
- If you drive a fan, I'd better power the board with external power supply (most fan draws more then 500mA when they start)
- If you drive an neopixel, powering the board with external power supply is highly recommended
In doubt, power the board. You should already have a 5V power source if you use Klipper, to power the Pi.
FANx header are mosfet PWM output, driving the ground:
- You can use them for anything else than FAN, like LED, heater, etc. Just stick to 1A per output max.
- If the fan or whatever you drive is not 5V, just connect its ground to the Klipper Nano Expander, and its +V to any compatible power source, but ensure that other PSU's ground is connected to the board ground!.
Software configuration
Once built and connected to your Klipper host, use the provided Klipper config file.
You need at least to set the serial path in the [mcu ...] of the provided klipper configuration file.
To find the serial of your Arduino Nano:
- BEFORE connecting the Nano with USB on the Raspberry Pi, connect to the Pi using SSH and run the command
ls /dev/serial/by-id/. Note the result. - Connect the Nano with USB on the Pi, wait a few seconds for the Pi to detect the USB device, and re-run the same command as before.
- A new "file" should be there, looking like
usb-1a86_USB2.0-Serial-if00-port0: it represents your Arduino Nano - Change the
serialsetting value in the Klipper configuration using the full path to the serial file. e.g.:serial: /dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0
Here is the pin mapping for reference:
- TH0: PC0
- TH1: PC1
- TH2: PC2
- TH3: PC3
- FAN0: PB1
- FAN1: PD5
- FAN2: PD3
- Neopixel Data: PD6
The configuration file must be included in some way into the main printer.cfg config filr of Klipper.
Flashing firmware
To flash the firmware, you do not need to have the configuration file ready, but you need:
- The Nano connected to the Raspberry Pi
- The path of the serial representing the Nano on the Pi (see previous section)
- Klipper installed on the Pi
- AVR compilation package installed on the Rapsberry Pi hosting Klipper:
sudo apt install gcc-avr avr-libc avrdude binutils-avr
To flash the Nano with Klipper:
- Connect to the Pi using SSH.
- Create a
klipper_configdirectory in you home directory, if it not exists already:mkdir -p ~/klipper_config. - Go the the directory containing klipper (usually:
cd ~/klipper). - Run
make clean KCONFIG_CONFIG=~/klipper_config/config.arduinonano. - Run
make menuconfig KCONFIG_CONFIG=~/klipper_config/config.arduinonanoand configure as followed, and then save'n'quit:- Enable extra low-level configuration options: NOT checked
- Micro-controller Architecture:
Atmega AVR - Processor model:
atmega328p

- Run
make KCONFIG_CONFIG=~/klipper_config/config.arduinonanoto build the firmware.
Note: If the firmware compilation fails with errors like'.data' is not within region 'data', you may sufffer a known bug with AVR toolchain on Debian Bullseye (check your linux distribution codename withlsb_release -a). If so, you can try a workaround describe here to install a previous and non-buggy AVR toolchain. Once installed, re-roll the current procedure from themake cleanstep (a reboot of the Pi may be usefull between new toolchain installation and the retry). - Stop Klipper if it's running (usually:
sudo systemctl stop klipper) - Run
make flash KCONFIG_CONFIG=~/klipper_config/config.arduinonano FLASH_DEVICE=/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0, replacing theFLASH_DEVICE=value with the full path of you Nano on your Pi! This will flash the firmware to the Arduino Nano. - Start Klipper (usually:
sudo systemctl start klipper)
If no error occurs, Klipper's firmware is now loaded into the Arduino Nano.
You can now configure Klipper to use the Nano Expander.
Mounting
x2 3D printable mounts are provided (STL files):
- without mounting holes: lower footprint, but require some tape (like VHB tape) to secure the mount on a flat surface.
- with mounting holes: a wider mount with 4 mounting holes, to secure the mount with M3 screws. Screws position and distance can be found in dimension drawing.
Both mounts require x4 M2x3mm screw to secure the board to the mount.
Compatibility
Aside from Arduino Nano and its clone, this board may be compatible with other MCU boards using the same form factor than the Arduino Nano, and a compatible pinout.
- Cytron Maker Nano RP2040: flashing the firmware is a bit different, as it is based on the Raspberry Pi RP2040 MCU rather than an ATMega MCU.
Credit
Inspired by STM32-Klipper-Expander by Voron Design Team.
Temperature sensors and FAN output of Klipper Nano Expander are a copy of those of STM32-Klipper-Expander.
The Cytron Maker Nano RP2040 config is a contribution of tehmaze (#2).
Parts
39| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | Conn_01x02 | Connector_JST:JST_XH_B2B-XH-A_1x02_P2.50mm_Vertical | FAN0, FAN1, FAN2, T0, T1, T2, T3 |
| 4 | 100 | Resistor_SMD:R_0805_2012Metric | R3, R6, R9, R15 |
| 4 | 4.7K | Resistor_SMD:R_0805_2012Metric | R11, R12, R13, R14 |
| 4 | 4.7uF | Capacitor_SMD:C_0805_2012Metric | C4, C5, C6, C7 |
| 4 | MountingHole | MountingHole:MountingHole_2mm | H1, H2, H3, H4 |
| 3 | 10K | Resistor_SMD:R_0805_2012Metric | R4, R7, R10 |
| 3 | IRLML6344TRPBF | Package_TO_SOT_SMD:SOT-23 | Q1, Q2, Q3 |
| 2 | 0.1uF | Capacitor_SMD:C_0805_2012Metric | C2, C3 |
| 2 | 10uF | Capacitor_SMD:C_0805_2012Metric | C1, C8 |
| 1 | +5Vin | TerminalBlock_Phoenix:TerminalBlock_Phoenix_MKDS-1,5-2-5.08_1x02_P5.08mm_Horizontal | J1 |
| 1 | 1K | Resistor_SMD:R_0805_2012Metric | R1 |
| 1 | Arduino_Nano_v3.x | Module:Arduino_Nano_WithMountingHoles | A1 |
| 1 | Conn_01x03 | Connector_JST:JST_XH_B3B-XH-A_1x03_P2.50mm_Vertical | J2 |
| 1 | Fuse | local:3544-2_FuseHolder | F1 |
| 1 | LED | LED_SMD:LED_0805_2012Metric | D3 |
Similar boards
- 2 layers130.6 × 138.2 mm

- 2 layers347.7 × 123.8 mm

- 4 layers152.4 × 76.2 mm

Motherboard
mikegoelzer/Homebrew-ECP5-SBC
Kicad files for homebrew hobbyist computer with custom RISC-V CPU
160 parts - 2 layers344.7 × 123.1 mm

- 2 layers72.8 × 38 mm

- 2 layers41.2 × 80 mm

XIAO ePaper Display Board EE04 V1.2
doug-harriman/E-Display
Electronic display for calendars, weather, etc.
176 partsMIT - 4 layers41.2 × 80 mm

- 4 layers100 × 39.8 mm

Questions
How big is the Klipper nano expander PCB?
It measures 65.3 × 18.3 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Klipper nano expander use?
39 parts, built around the RC0805JR-07100RL, RC0805JR-074K7L, CC0805KKX5R8BB475 and IRLML6344TRPBF. 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 Klipper nano expander KiCad files?
From the orobardet/klipper_nano_expander repository on GitHub, at the commit this page was made from: the board is Klipper nano expander.kicad_pcb and its schematic Klipper nano expander.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the Klipper nano expander design in my own project?
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).