Accelerometer question, because no data is recorded
-
Hello! Trying to get the accelerometer working on a Duet2 Wifi v3.4.6 (PanelDue v3.4.1 and Duet Web Control v3.4.5).
I followed step by step this page: https://docs.duet3d.com/en/User_manual/Connecting_hardware/Sensors_Accelerometer
And made this cable here (pins are soldered).
I used the wiring table of the link above, and the connection are as follows:
Wire# Accelerometer signal Duet 2 WiFi Comment 1 CS SPI.CS2 Red wire 2 GND GND 3 INT1 SPI.CS1 4 SCL SPI_SCK 5 SDA SPI_MOSI 6 SDO SPI_MISO 7 - - 8 VCC VCC
With a multimeter I located the VCC and GND respectively on pins 8 and 2 of the Temp. Daughterboard.
This: https://docs.duet3d.com/duet_boards/duet_2_wifi_ethernet_maestro/duet_2_we_wiring_latest.png
After that:
- I connected this cable to the Mainboard (mb_1) and to the LIS3DSH sensor (sensor_2)
- Turned the printer ON
- Sent
M955 P0 C"spi.cs2+spi.cs1"
using the web console - Installed the Input Shaping Plugin and configured it
- Started the procedure / repeated / reboot / repeat [...]
The printer homes all axes first and then starts. I select to calibrate X only. It moves once left and then right and then stops with dialog box that won't update anymore. All I can do is
Cancel
.Can anybody help please me? I checked the cable multiple times. VCC and GND have signal (multimetere'd). And when I was making the cable I used a lab PSU to test each wire.
Would be nice to know how to test if the accelerometer works, or if it doesn't (faulty / broken).
-
@yetanotherusername said in Accelerometer question, because no data is recorded:
Duet Web Control v3.4.5
Update your DWC to match the firmware version. (unless that was a typo?)
Also make sure your plugin is up to date.
How long is the cable? People have better results generally when using a USB3 cable instead of a ribbon cable because of the shielding.
-
@Phaedrux Hi, about the DWC, no that was not a typo, but I missed that there was an updated version and I downloaded it from zip and installed. Now it runs on DWC 3.4.6, thanks for the hint!
About the issue itself, it is solved. It looks like to be a visual bug. The data is recorded, but that window in the screenshot, in very rare cases only (so far, only once) it shows the "Finish" button when the procedure is done.
I have to click outside of it and when I move to the tab "Motion Analysis", there I have my recorded data.The wizard tells me nothing, I hjave to click on the "grey backdrop".
About the cable, it's a 30cm flat cable and it works. Yes I read about the USB3 linked in the doc but it seems the cable is fine!
Thanks however for your answer! I literally got it working yesterday evening.
-
@yetanotherusername
same problem on my duet2wifi running 3.5rc, duet detects accelerometer fine, but DWC freezes when recording data, had to click the gray background or cancel.What's different in my case is that i got the recorded file(in csv format) but when i open it, it says: failed to record data...
-
@Alex_ZHANG said in Accelerometer question, because no data is recorded:
@yetanotherusername
same problem on my duet2wifi running 3.5rc, duet detects accelerometer fine, but DWC freezes when recording data, had to click the gray background or cancel.What's different in my case is that i got the recorded file(in csv format) but when i open it, it says: failed to record data...
Switched to hdmi cable with shield grounded, problem solved
-
@Alex_ZHANG After I got it working, and updated this post, it only took 1 day for the cable to break! I was recording data and then when going to open the graph file (from DWC) it said "no data".
Pins are extremely fragile, and some of them just broke. I noticed it broke when the M955 couldn't find any accelerometer.How did you create your cable from HDMI? Isn't the HDMI cable pretty thick to use? Or did you just cut it open and took the wires inside out?
I'm in the process of finding a better cable. I have plenty of HDMI but no sacrificable usb 3.
-
@yetanotherusername
UPDATE: Solved. I restore to factory default.
I had some ETH cables around. I made a cable out of those wires, and it works! But..
Where's my graph?
Does anybody know why graphs are not shown? -
@yetanotherusername
cable problem. duet can see the accelerometer, but when recording data, you get too much interference, so accelerometer stopped transmitting. I've been through this. if you open the csv files manually, you will see a line: failed to collect data.you need proper shileded wiring on cs and int pin, just like those in hdmi or usb3
-
@yetanotherusername
i just stripped them out, used five pairs of them with the foil shield grounded. A dedicated pair with shield is used on cs pin, another on int pin. others for the rest pins.