Two LIS3DH Three-Axis Accelerometer on a cartesian 3d printer
-
Is it possible to connect two Adafruit LIS3DH Three-Axis Accelerometer on a Duet 2 wifi with duex 5 expansion board?
Will it work in RRF v3.4?
I have voron switchwire ( slinging bed),
Plan is to mount one on tool head and other one to bed, for input shaping.
Thanks! -
@voronswcroatia yes you can do that by giving them separate CS and INT pins, but you will only be able to activate one of them at a time. Use the M955 command to switch between them.
-
@voronswcroatia
I also have two accelerometers for my printer.
My plan is to permanently install them in the printer.
At the moment only one is permanently connected, which I then change / reconnect from the print head to the print bed.
It is currently held to the print head with magnets or clamped between the magnetic printing plate.
The solution is also very simple and quick, but it doesn't look that nice.In a subsequent total conversion (possibly next year) from linear rails to steel rods as guides and toothed belts instead of spindles, the acceleration sensors and USB3 sockets will be integrated into the new construction.
One should be under the print bed and the other on the print head... just normal.Then each sensor should have its own USB3 socket.
A short piece of cable is routed from the Duet board to a USB3 socket on the printer housing.If I want to carry out an IS measurement, I simply connect the acceleration sensors with a standard USB3 cable, which I then simply reconnect depending on which axis I want to read out.
I find it more comfortable than changing the config.g every time.
Since the Duet can only read one acceleration sensor at a time, you should try to install the two acceleration sensors with the same orientation, then you don't have to set a second axis later in the IS plug-in.
I think it's the most comfortable solution for a Cartesian 3D printer.
Google Translate
-- Original Text --Ich habe auch zwei Beschleunigungssensoren für meinen Drucker.
Mein Vorhaben ist, sie fest im Drucker zu verbauen.
Momentan ist nur einer fest angeschlossen den ich dann vom Druckkopf zum Druckbett wechsel / umstecke.
Zur Zeit wird er mit Magneten am Druckkopf gehalten oder zwischen der magnetischen Druckplatte eingeklemmt.
Die Lösung ist auch sehr einfach und schnell, sieht aber nicht so schön aus.Bei einem späteren Totalumbau (eventuell nächstes Jahr) von Linearschienen auf Stahl-Rundstäbe als Führungen und Zahnriemen statt Spindeln, werden die Beschleunigungssensoren und USB3-Buchsen mit in die neue Konstruktion eingebunden.
Einer soll unter das Druckbett und der andere an den Druckkopf... Normal eben.Dann soll jeder Sensor seine eigene USB3-Buchse bekommen.
Vom Duet-Board wird ein kurzes Stück Kabel zu einer USB3-Buchse am Druckergehäuse geführt.Wenn ich eine IS-Messung durchführen möchte, verbinde ich die Beschleunigungssensoren einfach mit einem handelsüblichen USB3 Kabel welches ich dann einfach umstecke je nachdem welche Achse ich auslesen lassen möchte.
Ich finde es ist komfortabler als jedes mal die config.g zu ändern.
Da das Duet immer nur einen Beschleunigungssensor auslesen kann, sollte man versuchen die beiden Beschleunigungssensoren mit der gleichen Ausrichtung zu verbauen, dann braucht später im IS-PlugIn auch keine zweite Achse einstellen.
Ich denke es ist die komfortabelste Lösung für einen kartesischen 3D-Drucker.
-
@dc42
Thanks!!
can you make some example code, and I assume that other accelerometer goes on duex5 expansion board?
Can RRF v3.4 combine data from both in input shape plugin? -
@Norder Thanx for sharing your solution, at this stage of RRF v3.4 I think that you solve the problem
️
-
This post is deleted! -
@voronswcroatia said in Two LIS3DH Three-Axis Accelerometer on a cartesian 3d printer:
@dc42
Thanks!!
can you make some example code, and I assume that other accelerometer goes on duex5 expansion board?
Can RRF v3.4 combine data from both in input shape plugin?You can only have one accelerometer configured on a Duet 2 system at a time (even if you have ore than one connected); and the IS plugin is not designed to support more than one accelerometer at a time.