Accelerometer on toolboard 1.1
-
Hi, i have a custom made toolboard based on toolboard v1.1, where INT1 from accelerometer is connected to PA19. When trying to run input shaping plugin i got a "Failed to start accelerometer data collection : INT1 error". I have noticed that this pin changed from PA19 to PA00 in the newest toolboard, and so changed the Duet3Expansion firmware. Adding a diode as suggested in other topics is not that easy because it is a custom board, so i wanted to change this pin in firmware.
I have changed "Lis3dhInt1Pin" Pin to PortAPin(19) in config/TOOL1Lc.h, and the error went away, but a data acquisition is still not working. Im sending a M956 P20.0 S1000 A1 X and the code executes with no errors. Then i move X axis and check for results. The data file looks like this:
Now if i want to send same code again i get an error saying: M956: Accelerometer is already collecting data.
My guess is that a interrupt is not properly set up, and toolboard cant detect it resulting in never ending measurement. I will be very thankful if someone could help with this problem.
Same thing happens when i use input shaping plugin.
Hardware: Duet6XD and custom Toolboard based on v1.1
Software: RRF 3.4.6 and DSF 3.4.6 -
@ketirange have you enabled the pullup resistor on PA19?
-
@dc42 Yes, i have following line in StartCollecting method: