Skip to content

Instantly share code, notes, and snippets.

@bistory
Last active April 6, 2023 09:54
Show Gist options
  • Save bistory/cfd1ce0860ed82f632c546d785326386 to your computer and use it in GitHub Desktop.
Save bistory/cfd1ce0860ed82f632c546d785326386 to your computer and use it in GitHub Desktop.
Installer l'ADXL345 sur Klipper
  1. Installer le Raspberry Pi comme processus Linux
cd ~/klipper/
sudo cp ./scripts/klipper-mcu.service /etc/systemd/system/
sudo systemctl enable klipper-mcu.service
cd ~/klipper/
make menuconfig

Choisir "Linux Process".

sudo service klipper stop
make flash
sudo service klipper start
sudo usermod -a -G tty pi
  1. Installer les dépendances pour les calculs et graphiques
sudo apt update
sudo apt install python3-numpy python3-matplotlib libatlas-base-dev
~/klippy-env/bin/pip install -v numpy
  1. Redémarrer le Rpi
  2. Générer et copier les graphiques vers le dossier config
~/klipper/scripts/calibrate_shaper.py /tmp/resonances_x_*.csv -o /tmp/shaper_calibrate_x.png
~/klipper/scripts/calibrate_shaper.py /tmp/resonances_y_*.csv -o /tmp/shaper_calibrate_y.png
cp /tmp/shaper_calibrate_* printer_data/config/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment