Skip to content

rcarmo/openscad-pico-adxl345

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openscad-pico-adxl345

A simple snap-on case for an RP2040-based accelerometer module for Klipper, using an ADXL345 and a Pimoroni Tiny 2040.

The models folder includes a little soldering jig to hold both boards together in approximately the same position as the case.

Configuration Notes

This was first outlined in this Klipper forum post.

cd ~/klipper/
make menuconfig # select RP2040 as target
make
# Connect the Pico via USB while holding down BOOT
sudo mount /dev/sda1 /mnt
sudo cp out/klipper.uf2 /mnt
sudo umount /mnt
# This should trigger a reboot and you should see a new serial port
ls -al /dev/serial/by-id/*

Add this configuration to your printer.cfg (I use an include directive, so I can comment it out when not having the accelerometer plugged in)

[mcu pico]
serial: /dev/serial/by-id/usb-Klipper_rp2040_mySerial

[adxl345]
spi_bus: spi0a
cs_pin: pico:gpio1

[resonance_tester]
accel_chip: adxl345
probe_points:
    100,100,20 # an example

About

A case for a Klipper accelerometer using an RP2040

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published