bigtreetech / BTT-Pi

120 stars 20 forks source link

Connecting and spi configuration of SPI ADXL345 on the BTT-PI #9

Open Skappa75 opened 1 year ago

Skappa75 commented 1 year ago

Hi, there is a lot of documentation on how to connect an ADXL345 on a CB1 or CM4, and their configuration on Klipper. But I'm in trouble when I connect the BTT-ADXL345 to the BTT-PI by the supplied cable on the dedicated SPI port (page 7 of its manual). In the pin out what is the right cs_pin number?

Kimmy2000 commented 1 year ago

Hi, this is the setting you require for the BTT-ADXL345 to the BTT-PI

[mcu host] serial: /tmp/klipper_host_mcu

[adxl345] #BTT PI cs_pin: host:gpio67 spi_bus: spidev0.0 axes_map: x,y,z

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

In the boardenv.txt uncomment only overlays=spidev0_0

Skappa75 commented 1 year ago

Hi, thanks for your suggestions but unfortunately it doesn't work by connecting it via the dedicated ADXL345 port as shown in the BTT-PI manual. You wrote "cs_pin: host:gpio67" and I noticed that it is from the 40pin-GPIO PC3, you confirm that it is also the right cs.pin of the dedicated ADXL345 port? Thanks for your help Skappa

Il giorno gio 29 giu 2023 alle ore 10:59 Kimmy2000 @.***> ha scritto:

Hi, this is the setting you require for the BTT-ADXL345 to the BTT-PI

[mcu host] serial: /tmp/klipper_host_mcu

[adxl345] #BTT PI cs_pin: host:gpio67 spi_bus: spidev0.0 axes_map: x,y,z

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

In the boardenv.txt uncomment only overlays=spidev0_0

— Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BTT-Pi/issues/9#issuecomment-1612665046, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAOZSQMTOE23FKW4UVFYEK3XNU7W5ANCNFSM6AAAAAAZBRJFCU . You are receiving this because you authored the thread.Message ID: @.***>

Skappa75 commented 1 year ago

I allways recive that error: "adxl345: spi pins must be on same mcu"

Il giorno gio 29 giu 2023 alle ore 10:59 Kimmy2000 @.***> ha scritto:

Hi, this is the setting you require for the BTT-ADXL345 to the BTT-PI

[mcu host] serial: /tmp/klipper_host_mcu

[adxl345] #BTT PI cs_pin: host:gpio67 spi_bus: spidev0.0 axes_map: x,y,z

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

In the boardenv.txt uncomment only overlays=spidev0_0

— Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BTT-Pi/issues/9#issuecomment-1612665046, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAOZSQMTOE23FKW4UVFYEK3XNU7W5ANCNFSM6AAAAAAZBRJFCU . You are receiving this because you authored the thread.Message ID: @.***>

Kimmy2000 commented 1 year ago

have you uncommented the SPI like i said here?

In the boardenv.txt uncomment only overlays=spidev0_0

it is working for me, i have it connected to the dedicated ADXL345 port on the BTT PI board

HYK-HideYourKey commented 11 months ago

not working for me either... commented spidev0_0 already

UmitBaba commented 10 months ago

[mcu rpi] serial: /tmp/klipper_host_mcu

[adxl345] cs_pin: rpi:gpio67 # I m using fluidd, host:gpio67 doesn't allowed me to write so I tried rpi:gpio67 and just worked. spi_bus: spidev0.0

[resonance_tester] accel_chip: adxl345 probe_points: 155, 155, 20

I m using btt pi v1.2 and this script worked for me. There is one important step, the sd card which plug in to btt pi, you need to plug it your pc and ın the boardenv.txt uncommend overlays=spidev0_0 (remove "#" sign) then dedicated adxl345 port on btt pi works.

Skappa75 commented 10 months ago

Very thanks, I'll try as soon is possible.

Il sab 19 ago 2023, 14:32 UmitBaba @.***> ha scritto:

[mcu rpi] serial: /tmp/klipper_host_mcu

[adxl345] cs_pin: rpi:gpio67 # I m using fluidd, host:gpio67 doesn't allowed me to write so I tried rpi:gpio67 and just worked. spi_bus: spidev0.0

[resonance_tester] accel_chip: adxl345 probe_points: 155, 155, 20

I m using btt pi v1.2 and this script worked for me. There is one important step, the sd card which plug in to btt pi, you need to plug it your pc and ın the boardenv.txt uncommend overlays=spidev0_0 (remove "#" sign) then dedicated adxl345 port on btt pi works.

— Reply to this email directly, view it on GitHub https://github.com/bigtreetech/BTT-Pi/issues/9#issuecomment-1684923516, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAOZSQPJJYHVIX3ASPH27BDXWCP4FANCNFSM6AAAAAAZBRJFCU . You are receiving this because you authored the thread.Message ID: @.***>

tiagomaricate commented 5 months ago

What is the name/model of connector in the BTT Pi for the ADXL?