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
no rudder feedback
#17
I fixed the problem just now in the servo calibration ui. Sorry about that. Try the latest git, it should be fixed. Try also updating the motor.ino sketch, although I don't think that is the problem it is better to be

If the input to rudder sense is very near 0, or near the 1.1v threshold (or above) then rudder feedback is disabled and you will see the value of False. This makes it possible to just unplug the rudder feedback and work without it rather than triggering a fault. I don't use a resistor in series to the potentiometer to drop the voltage, because the input pin would be left floating if the feedback is disconnected.

Instead I use a voltage divider from the rudder sense pin with 100k and 30k resistors. I realize this is two resistors instead of one but

1) it will keep the voltage out of range if disconnected.
2) it puts 5v across the potentiometer giving better immunity to noise on the longer wires
3) It also keeps high impedance on the input which makes it a lot less likely to fry the arduino somehow from voltage spikes or noise, and creates a RC filter.

I also put a small resistor in series with the potentiometer say 200 ohm to prevent problem from shorts, since shorting the 5v to 0v on many arduino clones destroys the linear regulator unfortunately. Another way is to put 100 ohm in series with the vin of the arduino which also saves the regulator from shorts, and helps avoid the absolute maximum rating of 15 volt input on many of these parts that use ams1115 reglators. I do both on my controllers.


The pypilot plugin you are using in opencpn is out of date. I think if you upgrade, it will also work from the plugin.

Also try the client, and look at the servo.rudder.offset, servo.rudder.range, and servo.rudder.scale values.

Let me know how it goes. I just tested everything and had good results.
Reply


Messages In This Thread
no rudder feedback - by kalle - 2018-06-05, 02:11 PM
RE: no rudder feedback - by seandepagnier - 2018-06-06, 06:30 PM
RE: no rudder feedback - by kalle - 2018-06-06, 09:55 PM
RE: no rudder feedback - by seandepagnier - 2018-06-07, 06:16 AM
RE: no rudder feedback - by kalle - 2018-06-08, 10:45 AM
RE: no rudder feedback - by xfactor99 - 2019-01-07, 12:40 AM
RE: no rudder feedback - by xfactor99 - 2019-01-07, 12:50 PM
RE: no rudder feedback - by kalle - 2019-01-07, 01:38 PM
RE: no rudder feedback - by xfactor99 - 2019-01-07, 06:01 PM
RE: no rudder feedback - by kalle - 2019-01-07, 07:23 PM
RE: no rudder feedback - by seandepagnier - 2019-01-08, 01:54 AM
RE: no rudder feedback - by xfactor99 - 2019-01-08, 08:45 AM
RE: no rudder feedback - by xfactor99 - 2019-01-09, 05:36 PM
RE: no rudder feedback - by donovanes - 2019-02-15, 04:07 AM
RE: no rudder feedback - by seandepagnier - 2019-02-15, 06:42 AM
RE: no rudder feedback - by donovanes - 2019-02-16, 10:38 PM
RE: no rudder feedback - by seandepagnier - 2019-02-16, 10:58 PM
RE: no rudder feedback - by donovanes - 2019-02-22, 06:50 AM
RE: no rudder feedback - by seandepagnier - 2019-02-22, 10:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)