Jpe230 / SonicPad-Debian

Port of Debian for the SonicPad (Allwinner R818)
GNU General Public License v3.0
122 stars 18 forks source link

How to Configure ADXL? #12

Closed beroliv closed 1 year ago

beroliv commented 1 year ago

is there a Manual how to configure the ADXL with your image? would be nice i could still use it.

nofuturekid commented 1 year ago

Just connect it and put the correct / same config as for the Sonic Pad with Creality OS into your "printer.cfg"

beroliv commented 1 year ago

i upload my backup from the sonic pad to the new flashed debian. i get also a unknown command measure_axes_noise in the screen

nofuturekid commented 1 year ago

[mcu sonicpad] serial: /tmp/klipper_host_mcu

[adxl345] cs_pin: sonicpad:None spi_speed: 2000000 spi_bus: spidev2.0

[resonance_tester] accel_chip: adxl345 accel_per_hz: 70 probe_points: 117.5, 117.5, 10

nofuturekid commented 1 year ago

Just follow the official Klipper documentation, as this is nothing different than any installation installation of Klipper with Kiauh.

beroliv commented 1 year ago

there is also a locale problem.. because make menuconfig are not working also, in the Printer CFG the adxl was outcommentet with # so i remove them but now i have no connection to the printer

make menuconfig Loaded configuration '/home/sonic/klipper/.config' Traceback (most recent call last): File "/home/sonic/klipper/lib/kconfiglib/menuconfig.py", line 3281, in _main() File "/home/sonic/klipper/lib/kconfiglib/menuconfig.py", line 661, in _main menuconfig(standard_kconfig(doc)) File "/home/sonic/klipper/lib/kconfiglib/menuconfig.py", line 705, in menuconfig locale.setlocale(locale.LC_ALL, "") File "/usr/lib/python3.9/locale.py", line 610, in setlocale return _setlocale(category, locale) locale.Error: unsupported locale setting make: *** [Makefile:116: menuconfig] Error 1

nofuturekid commented 1 year ago

That's not usual and should not happen. Not sure what you have done.

Usually flash the OS, expand the filesystem to full size and be happy.

beroliv commented 1 year ago

i work on a mac but this fix dont work for me https://github.com/Klipper3d/klipper/issues/3669

nofuturekid commented 1 year ago

That has nothing to do with Mac.

Flash the Sonic Pad again with the Debian OS, expand the filesystem as explained on the Download/Releases Page and from there on follow official Klipper documentation.

This is basically like any Klipper installation on a Raspberry Pi with Kiauh.

Edit: Ahh, I see now...

use

export LC_ALL=en_US.UTF-8 make menuconfig

or use a better terminal program like putty.

beroliv commented 1 year ago

make menuconfig is working now. i had to set the locales because i loggin first with a Macos

sudo dpkg-reconfigure locales i check en_GB.UTF-8... and en_US.UTF-8...

sudo locale-gen

beroliv commented 1 year ago

klipper MCU are not starting ?

klipper-mcu.service - Starts the MCU Linux firmware for klipper on startup Loaded: loaded (/etc/systemd/system/klipper-mcu.service; enabled; vendor preset: enabled) Active: inactive (dead) Condition: start condition failed at Fri 2023-07-28 22:06:46 CEST; 2min 55s ago └─ ConditionFileIsExecutable=/usr/local/bin/klipper_mcu was not met Docs: https://www.klipper3d.org/RPi_microcontroller.html

beroliv commented 1 year ago

i do the steps in the manual again and now it works.. that was a bit sketchy with the locales..

thank you for you effort making this image and help!!

nofuturekid commented 1 year ago

Ohh, no, no... it's not mine. I'm just a random guy who knows a bit about Linux, Klipper and accidentally was the first one trying this thing besides the originator.

beroliv commented 1 year ago

im als knowing a bit about linux otherwise you are very lost with problems like that. i try to calibrate now my printer and after that a test print. happy to get i work. i was a bit annoyed about the pad after i find the bad things out.

beroliv commented 1 year ago

i have to hit retry until it connects to the printer.. need longer then the timeout time..