Hi Forum Folke,
I'm new to the Raspberry Pi family of products, so bear with a newbie!
I'm setting up a 3D printer with a Raspberry Pi 4 2GB running Klipper/Mainsail as the control system. That's working so far.
Now, I'm adding a Nitehawk 36 toolhead / breakout board that connects to the Raspberry Pi 4 via a USB cable (instead of using CAN, which is more complicated.) This toolhead has a built-in ADXL345 accelerometer which will read the X-axis only, and the Raspberry Pi 4 will get the output from the toolheaad via the USB umbilical. I'm okay with all this so far.
This being a cartesian ("bed-slinger") printer, I also need an ADXL345 for the bed (Y-axis) as well. The simplest solution seemed to be to connect this second ADXL to a Raspberry Pi PICO, and then connect the PICO to the Raspberry Pi 4. My aim is to permanently install the ADXL on the bed, and use the input whenever I make any changes to the printer, necessitating a resonance measurement and compensation.
My question here is this: am I better off connecting the PICO to the Pi 4 via another USB cable (given that the signal from the ADXL on the toolhead is already coming into the Raspberry Pi 4 via USB), or am I better off utilizing the GPIO pins on the PICO and Pi 4 to route the signal from the ADXL to the Pi 4? I imagine it's better practice to put two ADXL's measuring two different axes on two different 'channels' on the Pi 4, rather than funnel both into the USB bus and hope the Pi 4 can keep the two signals separate.
I appreciate any thoughts you may have.
I'm new to the Raspberry Pi family of products, so bear with a newbie!

I'm setting up a 3D printer with a Raspberry Pi 4 2GB running Klipper/Mainsail as the control system. That's working so far.
Now, I'm adding a Nitehawk 36 toolhead / breakout board that connects to the Raspberry Pi 4 via a USB cable (instead of using CAN, which is more complicated.) This toolhead has a built-in ADXL345 accelerometer which will read the X-axis only, and the Raspberry Pi 4 will get the output from the toolheaad via the USB umbilical. I'm okay with all this so far.
This being a cartesian ("bed-slinger") printer, I also need an ADXL345 for the bed (Y-axis) as well. The simplest solution seemed to be to connect this second ADXL to a Raspberry Pi PICO, and then connect the PICO to the Raspberry Pi 4. My aim is to permanently install the ADXL on the bed, and use the input whenever I make any changes to the printer, necessitating a resonance measurement and compensation.
My question here is this: am I better off connecting the PICO to the Pi 4 via another USB cable (given that the signal from the ADXL on the toolhead is already coming into the Raspberry Pi 4 via USB), or am I better off utilizing the GPIO pins on the PICO and Pi 4 to route the signal from the ADXL to the Pi 4? I imagine it's better practice to put two ADXL's measuring two different axes on two different 'channels' on the Pi 4, rather than funnel both into the USB bus and hope the Pi 4 can keep the two signals separate.
I appreciate any thoughts you may have.
Statistics: Posted by kharrisma — Sat Aug 31, 2024 7:01 pm — Replies 0 — Views 10