2019-08-10, 11:44 AM
(This post was last modified: 2019-08-10, 12:26 PM by jamos.tan@gmail.com.)
Hi,
I didn't find anyone with the same problem, so I've created a new thread.
I have uploaded the motor.ino sketch succesfully to an arduino nano (clone I think) and it is connected in openplotter on the Raspberry pi 3B+ through USB.
When opening autopilot either on opencpn or within openplotter itself, it is recognized with the 'sync' status and no error flags.
I have disabled all sensors in motor.ino because I have all the sensors on the Raspberry. I have also grounded all unused analog pins.
I receive statistics from the arduino from both pypilot on opencpn, and openplotter.
The trouble is, when I click on AP, engaging the autopilot, the status changes from 'sync' to 'no connection' instantly.
Only after restarting signalK from the Pypilot tab in openplotter, the connection is back again. Resetting the arduino with the reset button doesn't help.
I am unsure how this happens, the Arduino connection seems to freeze when engaging the autopilot and only comes back after signalk is restarted.
I feel it has something to do with either:
- pinout from the arduino to the stepper motor? (It is on h-bridge mode, tried pins 2 and 3, and tried pins 9 and 10 to the h-bridge of the stepper motor)
- motor.ino code configuration?
Hope someone can help me troubleshoot, I've included my motor.ino and screenshots of the https://pypilot.org/wiki/doku.php?id=troubleshooting results in the attachments.
I didn't find anyone with the same problem, so I've created a new thread.
I have uploaded the motor.ino sketch succesfully to an arduino nano (clone I think) and it is connected in openplotter on the Raspberry pi 3B+ through USB.
When opening autopilot either on opencpn or within openplotter itself, it is recognized with the 'sync' status and no error flags.
I have disabled all sensors in motor.ino because I have all the sensors on the Raspberry. I have also grounded all unused analog pins.
I receive statistics from the arduino from both pypilot on opencpn, and openplotter.
The trouble is, when I click on AP, engaging the autopilot, the status changes from 'sync' to 'no connection' instantly.
Only after restarting signalK from the Pypilot tab in openplotter, the connection is back again. Resetting the arduino with the reset button doesn't help.
I am unsure how this happens, the Arduino connection seems to freeze when engaging the autopilot and only comes back after signalk is restarted.
I feel it has something to do with either:
- pinout from the arduino to the stepper motor? (It is on h-bridge mode, tried pins 2 and 3, and tried pins 9 and 10 to the h-bridge of the stepper motor)
- motor.ino code configuration?
Hope someone can help me troubleshoot, I've included my motor.ino and screenshots of the https://pypilot.org/wiki/doku.php?id=troubleshooting results in the attachments.