This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pypilot and a RC boat
#5
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,
Reply


Messages In This Thread
Pypilot and a RC boat - by DvdB - 2020-04-08, 02:29 PM
RE: Pypilot and a RC boat - by xfactor99 - 2020-04-08, 04:20 PM
RE: Pypilot and a RC boat - by ironman - 2020-04-08, 10:03 PM
RE: Pypilot and a RC boat - by seandepagnier - 2020-04-08, 11:38 PM
RE: Pypilot and a RC boat - by DvdB - 2020-04-24, 12:25 PM
RE: Pypilot and a RC boat - by seandepagnier - 2020-04-24, 06:45 PM
RE: Pypilot and a RC boat - by DvdB - 2020-04-27, 01:52 PM
RE: Pypilot and a RC boat - by jonflye - 2020-10-21, 06:12 PM
RE: Pypilot and a RC boat - by DvdB - 2020-10-22, 10:52 AM
RE: Pypilot and a RC boat - by jonflye - 2020-10-22, 05:01 PM
RE: Pypilot and a RC boat - by jmj - 2020-10-22, 02:23 PM
RE: Pypilot and a RC boat - by seandepagnier - 2020-10-22, 07:01 PM
RE: Pypilot and a RC boat - by jonflye - 2020-10-22, 09:35 PM
RE: Pypilot and a RC boat - by seandepagnier - 2020-10-23, 09:09 PM
RE: Pypilot and a RC boat - by jonflye - 2020-11-07, 04:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)