topic_solved [Duet 3 mini 5+/6HC] Accelerometer not found on specified port
pkos last edited by
Again I am stuck. I can't figure out what I am doing wrong.
This is the accelerometer I have:
I have followed the guide here I think exactly, so I connected the accelerometer to the SPI Temp daughterboard pins on both Duets (I don't run a temp board, ports are clear).
On this board, SDI (MOSI) is SDA (double checked adafruit's documentation here.
So the connections are as follows (forgive the crappy mouse painting):
The accelerometer powers up no problem, but on trying:
M955 P0 C"io3.out+io3.in"
I get an error saying Accelerometer not found on specified port.
I tried the same on the Duet 3 6HC - same exact results.
I can't figure out what I'm doing wrong.
Things I tried:
- Checked if the accelerometer is working with an Arduino Uno - works in both SPI and I2C,
- Tried switching from 3.3V to 5V (taken from the IO_3 5V_EXT) - no change - this was needed on the arduino to get the accelerometer to work - I had to feed it with 5V),
- Switched through different IO ports - same effect,
- I verified wires were crimped properly with a multimeter,
I have also tried the SPI ports on the Duet3 6HC - same - accelerometer not found.
Is there anything else that has to be configured in addition to the one M955 line?
Not exactly the same, since I'm running a Duet2+Duex5, but I'll be following this post as well.
Quick update - I was running a rather long cable (about 11feet). I was confident in the integrity of the cable, however I trimmed 4feet off the Duet side, re terminated, and now the accelerometer is working well.
pkos last edited by pkos
@sebkritikel Interesting. My wire was about 4 foot long. And leghtwise it was the same as the one I used for the arduino (the only difference was the pins on the arduino one). But that is something to check definitely.
@pkos Of course, it might not be the cure for you - as a note, the 'finished' cable is 7ft long.
pkos last edited by
@sebkritikel I got it to work, only in my case I had to go with a 40cm wire and wrap it in aluminum foil to shield it from outside interference (thanks to @Diamondback in the other thread for leading me onto it asking about the length). Even the 40cm wouldn't work without shielding.
Possible the wire could be made longer, but I'm done crimping those damned dupont connectors