Setting up Accelerometer and wiring
-
@dc42 said in Setting up Accelerometer and wiring:
You can also try using the TWC0 and TWD0 pins instead of EXP0 and EXP1.
I re-wired the whole thing with the shortest CAT6 cable I can manage. I kept the 1k resistor inline with SDO... same error.
I moved CS and INT as follows:
CS > TWD0
INT > TWCK0M955 P0 C"exp.pa3+exp.pa4"
...same error. Accelerometer not found. Green light is lit on the accelerometer.
What else can I do to troubleshoot?
-
-
-
@ccs86 have you already tried the SPI Pins on the Temp Board? The SPI Pins on the EXP are bufferd
-
@pcr said in Setting up Accelerometer and wiring:
@ccs86 have you already tried the SPI Pins on the Temp Board? The SPI Pins on the EXP are bufferd
I can try that. Can't seem to find the correct pin names for those, though. I have tried:
M955 P0 C"spi.PB2+spi.PC18"
M955 P0 C"PB2+PC18"
M955 P0 C"spi0_cs1+spi0_cs2"
M955 P0 C"spi0.cs1+spi0.cs2"
M955 P0 C"spi.cs1+spi.cs2"
M955 P0 C"spi.cs3+spi.cs4"
M955 P0 C"exp.cs1+exp.cs2"
M955 P0 C"exp.cs3+exp.cs4"This page seems incomplete for pin names: https://duet3d.dozuki.com/Wiki/Duet_2_Maestro_Wiring_Diagram
And I'm not sure this is applicable: https://duet3d.dozuki.com/Wiki/Duet_2_Pinout_table
-
@ccs86 yes that page is missing the SPI CS pin names. They are "spi.cs1" and "spi.cs2".
-
@dc42 said in Setting up Accelerometer and wiring:
@ccs86 yes that page is missing the SPI CS pin names. They are "spi.cs1" and "spi.cs2".
Are these pins used by the daughterboard itself? I get the following error:
M955 P0 C"spi.cs1+spi.cs2" Error: M955: Pin 'spi.cs1' is not free
Any other ideas?
-
@ccs86 yes you are already using those pins for the daughter board.
-
@dc42 said in Setting up Accelerometer and wiring:
@ccs86 yes you are already using those pins for the daughter board.
Any ideas on what to try next?
-
@ccs86 I'll try hooking up an accelerometer to a Maestro when I get a chance.