2019-08-01, 07:05 PM
Hi Sean / and the community! I’m almost successful in connecting my Autohelm ST4000 motor directly to a servo motor controller, however there are some issues I need help with.
Issues:
- The motor just keeps running full speed, doesn’t know how to stop
- Only one RX / TX connection works, so the motor only spins one direction
I have the following setup:
- Openplotter 1.2.0 Alpha
- Raspberry pi 3B+
- USB – RS485 with one RX and one TX (https://www.reichelt.nl/raspberry-pi-usb...D_BwE&&r=1)
- Joy-IT motor controller (https://www.conrad.nl/p/joy-it-1573541)
- IMU STM LSM9DS1 (magnetic comass, gyro, accellero, temperature, etc.)
What I configured in Openplotter:
- Serial tab: USB to RS485 à Pypilot
- Pypilot tab: Basic autopilot
- Upgrade Pypilot from the newest GIT source just to be sure
Symptoms:
- Directly after powering up the raspberry, while the RX TX is connected, the motor will start spinning. Pypilot program is not yet running. There are some times that the motor will stop, and pulse a few times during Raspbian boot.
- Pypilot software is connected correctly from OpenCPN, Openplotter and the webapp.
- All apps display magnetic heading properly, and I can select GPS also.
- When activating autopilot, it doesn’t make any difference in the RX TX voltage readings
What I tried:
- Serial tab: Unassigning the pypilot and change the USB RS485 to NONE
o Motor stops
o Assigning it again, motor will run full speed in only one direction
§ Changing the polarity will run full speed in the other direction
What I think:
- Faulty RS485 device?
o If so, which one do you recommend?
- Do I need to change motor.ino?
o I’ve tried searching for the file, but cannot find it. Maybe this has something to do with that I have a raspberry and not and Arduino.
o What do I need to change in the code, if this is the case?
Hope you can help!
Issues:
- The motor just keeps running full speed, doesn’t know how to stop
- Only one RX / TX connection works, so the motor only spins one direction
I have the following setup:
- Openplotter 1.2.0 Alpha
- Raspberry pi 3B+
- USB – RS485 with one RX and one TX (https://www.reichelt.nl/raspberry-pi-usb...D_BwE&&r=1)
- Joy-IT motor controller (https://www.conrad.nl/p/joy-it-1573541)
- IMU STM LSM9DS1 (magnetic comass, gyro, accellero, temperature, etc.)
What I configured in Openplotter:
- Serial tab: USB to RS485 à Pypilot
- Pypilot tab: Basic autopilot
- Upgrade Pypilot from the newest GIT source just to be sure
Symptoms:
- Directly after powering up the raspberry, while the RX TX is connected, the motor will start spinning. Pypilot program is not yet running. There are some times that the motor will stop, and pulse a few times during Raspbian boot.
- Pypilot software is connected correctly from OpenCPN, Openplotter and the webapp.
- All apps display magnetic heading properly, and I can select GPS also.
- When activating autopilot, it doesn’t make any difference in the RX TX voltage readings
What I tried:
- Serial tab: Unassigning the pypilot and change the USB RS485 to NONE
o Motor stops
o Assigning it again, motor will run full speed in only one direction
§ Changing the polarity will run full speed in the other direction
What I think:
- Faulty RS485 device?
o If so, which one do you recommend?
- Do I need to change motor.ino?
o I’ve tried searching for the file, but cannot find it. Maybe this has something to do with that I have a raspberry and not and Arduino.
o What do I need to change in the code, if this is the case?
Hope you can help!