Failed to collect data from accelerometer
vwegert last edited by
I'm trying to collect data from an accelerometer I connected via SPI to my Duet 2 Wifi. I've registered the accelerometer as described in the documentation, and as far as I can tell, it is recognized. However, when I try to capture some data using the procedure described in the documentation, I get unusable results. Some CSV files only contain
Sample,X,Y,Z Failed to collect data from accelerometer
Others contain a few (max. 124 so far) samples, then the same error message. It appears that it's usually the first measurement taken after powering on the printer that contains some samples, the ones taken after that are completely blank.
I've already checked the physical connections and don't believe there's an issue with them. What would be the next steps to troubleshoot this?
Egon.Net last edited by
I also connected an accelerometer to my Duet 2 Wifi, and the first attempts with a so-so cable mostly worked with low speeds, but had dropouts when reading data. Try to add the Q parameter with a slower speed (less than 2MHz which is the default) or use a better cable. I finally used a USB3 cable and now I'm able to use it without a problem.