LIS3DH and Duet 3 Mini 5+
-
Good day!
Trying to connect Accelerometer to Duet 3 Mini 5+. All is done according to the manual - https://duet3d.dozuki.com/Wiki/Accelerometers. Different cables and resistors were checked. But I still get - No Accelerometer found.
After all that I decided to check if my LIS3DH is working at all. Took Arduino board and did the following - https://learn.adafruit.com/adafruit-lis3dh-triple-axis-accelerometer-breakout/arduinoInstead of normal reading, the serial monitor showed me random characters
I went further and found that cause of that is serial bound speed. Did a change 9600 -> 115200 and got normal readings.
Could be that the reason why the Duet does not see an accelerometer? Is there any way to set 115200 via G-code M955?
Thank you!
-
@boriss the baud rate is only relevant when using Arduino.
The usual reasons for the accelerometer not working with RRF are:
- RRF version too old to support the accelerometer
- Incorrect wiring
- Incorrect configuration
- Too much capacitance between the CS wire and another wire in the cable.
-
-
3.4.0 beta 7
-
Checked that three times.
-
It is hard to set Incorrect configuration with one line like M955 P0 C"io3.out+io3.in". Tried io1 and io4, in configuration and connection to the board.
-
tried 10cm long wires even. Maybe adding a capacitor to the line is a good idea?
-
-
Took my friend's Duet 2 WiFi. No connection issue there.
Do not know what Duet 3 needs
-
@boriss in that case, if your wiring is correct, then based on my previous investigations it's probably the capacitance between the CS wire and other wires that is causing the problem. The Mini 5+ has an output series resistor that makes the wiring more sensitive to this capacitance.