makerbase-mks / MKS-PI

As we all know, the Klipper firmware has the advantages of high printing speed, high precision, and the ability to use the web page to control the printer, etc. MKS PI is a high-end microcomputer board designed by makerbase to replace the Raspberry Pi for the convenience of 3D printing users to use the Klipper firmware. In terms of hardware, MKS PI has a powerful 4-core 64-bit SOC onboard, with 1GBytes of DDR3 memory, supports HDMI screen interface and PI-TS35 screen interface, provides Ethernet port, 3-channel USB interfaces (can be connected to a 3D printer main board, USB Wireless network card, USB camera, U disk, USB keyboard and mouse, etc.); In terms of software, Makerbase provides a complete Klipper firmware transplanted based on the Armbian desktop system, and directly supports klipperScreen. Users only need to download the image file provided by Makerbase, burn it to the TF card, without a lot of construction work, use the usb port or serial port to connect your main board, configure the parameters on the webpage, and you can use the Klipper firmware happily!
GNU General Public License v3.0
112 stars 9 forks source link

Possible to connect 2 ADXL345 sensoren? #39

Open Liriel-666 opened 1 year ago

Liriel-666 commented 1 year ago

Possible to connect 2 ADXL345 sensoren? One for the Printhead and one for the Print bed?

FabioM3 commented 1 year ago

However, you can also connect two accelerometers simultaneously, though they must be connected to different boards (say, to an RPi and printer MCU board), or to two different physical SPI interfaces on the same board (rarely available). Then they can be configured in the following manner:

[adxl345 hotend]
# Assuming `hotend` chip is connected to an RPi
cs_pin: rpi:None

[adxl345 bed]
# Assuming `bed` chip is connected to a printer MCU board
cs_pin: ...  # Printer board SPI chip select (CS) pin

[resonance_tester]
# Assuming the typical setup of the bed slinger printer
accel_chip_x: adxl345 hotend
accel_chip_y: adxl345 bed
probe_points: ...

Then the commands TEST_RESONANCES AXIS=X and TEST_RESONANCES AXIS=Y will use the correct accelerometer for each axis.

ColdBeer72 commented 1 year ago

Hey @FabioM3 ! Nice solution, the only trouble is to know how to connect the adxl345 sensor to a mcu board (specially thinking on MKS boards). Do you know how to do it?

onolox commented 1 year ago

This is the doc of klipper. In a summary, you need 2 SPI interfaces.

fbeltrao-br commented 1 year ago

Buy a RP2040 based board and use it as a secondary MCU for accelerometers, it has two SPI interfaces, I've done that when I used to have a cartesian printer