bigtreetech / Manta-M4P

46 stars 13 forks source link

Adxl345 wiring #6

Closed Freddyb888 closed 1 year ago

Freddyb888 commented 1 year ago

How do I wire a adxl345 on the Manta-M4P with cb1?

Aizel330 commented 1 year ago

Hi dear, I managed to wired and use an adxl345 using the spi port on the m4p, I'll attach some images, hopefully they are clear enough pinout adxl345 download

then basically it's just matter of connecting these pins together and add this to your printer.cfg

[adxl345] cs_pin: PD9 spi_bus: spi1 axes_map: y,x,z

the axes_map need to be modified depending on the orientation of your particular adxl345 so some testing may be needed to correct the orientation and make sure that the compensation is on the right axes. if anyone needs more infos I'll be more than happy to help.

Freddyb888 commented 1 year ago

Thanks, but is not possible to connect to the 40 gpio pins that are present on the btt manta m4p with cb1? Thanks again

Aizel330 commented 1 year ago

https://github.com/bigtreetech/CB1/issues/14#issuecomment-1264667543 I think that could help you with that, hopefully.

Freddyb888 commented 1 year ago

Thanks a lot. I think it will work.

Aizel330 commented 1 year ago

no problem, enjoy!

ox006 commented 1 year ago

how can i connect mpu6050 with M8p/cb1