2020-04-24, 12:25 PM
Thank you all for the replies. I have tried some things and did some research and now I want to give an update. Some things are solved but I have some new problems too.
I have checked the lights and RX was blinking and TX was not. So it wasn't communicating but this problem is solved now by setting DIV_BOARD in motor.ino to 1
The digital pin D6 should be high to activate RC style (pwm_style=1). So I have connected D6 to the 5V. Maybe this is not ok?
I have connected the pwm input from the servo to D9.
It looks like pypilot only reacts on the movement of the compass, because if I turn the compass the servo receives a pulse and the servo reacts with a short movement to the left or right and goes back to the middle position.
The signal does not look the same as the signal like in the video from ironman. I have only short pulses of +1 and -1 (saw that in the scope). So it looks like PWM style is not activated.
How can I make sure that the RC PWM is activated?
Other problem:
In compass mode it says sync, in GPS mode it says no connection. (There is an error in signal k if I put the gps mode on or activate a route in opencpn: connect ECONNREFUSED 127.0.0.1:20220) Pypilot switches automatically back to compass mode and the signal k connection reconnects after a few seconds.
I have the localhost 10.10.10.1 connection in opencpn and a localhost 20220 connection with “output on this port (as autopilot or NMEA repeater)” checked.
In signal k I have two connections: the GPS as a serial connection inputtype NMEA0183 and TCP Client localhost 20220 inputtype NMEA0183
Last problem I get the message port_fault after the servo has moved in compass mode. But maybe this problem has something to do with the PWM mode.
I hope we can get some help again.
Thank you in advance.
Regards,
I have checked the lights and RX was blinking and TX was not. So it wasn't communicating but this problem is solved now by setting DIV_BOARD in motor.ino to 1
The digital pin D6 should be high to activate RC style (pwm_style=1). So I have connected D6 to the 5V. Maybe this is not ok?
I have connected the pwm input from the servo to D9.
It looks like pypilot only reacts on the movement of the compass, because if I turn the compass the servo receives a pulse and the servo reacts with a short movement to the left or right and goes back to the middle position.
The signal does not look the same as the signal like in the video from ironman. I have only short pulses of +1 and -1 (saw that in the scope). So it looks like PWM style is not activated.
How can I make sure that the RC PWM is activated?
Other problem:
In compass mode it says sync, in GPS mode it says no connection. (There is an error in signal k if I put the gps mode on or activate a route in opencpn: connect ECONNREFUSED 127.0.0.1:20220) Pypilot switches automatically back to compass mode and the signal k connection reconnects after a few seconds.
I have the localhost 10.10.10.1 connection in opencpn and a localhost 20220 connection with “output on this port (as autopilot or NMEA repeater)” checked.
In signal k I have two connections: the GPS as a serial connection inputtype NMEA0183 and TCP Client localhost 20220 inputtype NMEA0183
Last problem I get the message port_fault after the servo has moved in compass mode. But maybe this problem has something to do with the PWM mode.
I hope we can get some help again.
Thank you in advance.
Regards,