Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 12-08-2020, 12:08   #1
Registered User

Join Date: Jul 2020
Location: Depends on the month
Boat: 32’ Sloop
Posts: 264
Rudder position pypilot

Would this be the correct way to hook this rudder position sensor to my pypilot (which is going to opencpn)?








“Rudder Feedback

3 wires are used for optional rudder feedback.

Black - GND

Yellow - voltage angle, from GND to Vcc

Red - +5v
A potentiometer with 3 wires can be connected to these 3 wires. The potentiomter should range from 1k ohms to 100k ohms. Recommend 10k.

A potentiometer with only 2 wires can connect to yellow and black pins. A resistor should be added from red to yellow of 1k ohms.

A hall effect sensor with analog output can be connected to these 3 wires.”

https://pypilot.org/schematics/hbridge_datasheet.htm





This is the sensor

VDO Single Station Rudder Angle Sensor - 12/24V - 10-180 OHM [A2C1102950001

https://www.amazon.com/VDO-Single-St.../dp/B07J2VMJ1S
IslandInfedel is offline   Reply With Quote
Old 12-08-2020, 13:13   #2
Registered User
 
Bill O's Avatar

Join Date: Jul 2015
Boat: Bruce Bingham Christina 49
Posts: 3,328
Re: Rudder position pypilot

This looks similar to my 2 wire set up on the prototype hydraulic controller Sean made for us and we hooked it up straight to the controller (no resistor).
Phoenix's Flight: Pypilot Open-Source Marine Autopilot for Hydraulic Steering

Last time, we saw Sean he had a new hydraulic controller and told us most rudder indicators were running 3 wires. He did say to use a 1k resistor if we were going to stick w/the 2 wire set up with the new controller (spare).

Would contact Sean on the pypilot forum to make sure your drawing is correct.
__________________
Bill O.
KB3YMH
https://phoenixketch.blogspot.com/
Bill O is offline   Reply With Quote
Old 13-08-2020, 07:15   #3
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 248
Images: 3
Re: Rudder position pypilot

Some informations here... :

https://www.schnaps.fr/articles.php?...=881&tconfig=4

If this could help...
Schnapsy is offline   Reply With Quote
Old 13-08-2020, 08:32   #4
Registered User
 
Bill O's Avatar

Join Date: Jul 2015
Boat: Bruce Bingham Christina 49
Posts: 3,328
Re: Rudder position pypilot

Thanks for the info Schnapsy
Very rusty on my French these days and thanks to the internet came away w/this from Schnapsy's link.

The Raymarine 5V (red wire) connects to the + terminal of the sensor, just as the ground (black wire) connects to the - terminal.
Then insert a 180 ohm resistor on the third Raymarine wire (green wire) which is also connected to the positive terminal of the sensor and the 5V supply.
And There you go !

It is for a Raymarine, but should work similarly for the pypilot w/different color connector wires.

As Sean suggested, would go w/the 1k resistor on the red instead of the 180 ohm resistor on the green as explained above.
__________________
Bill O.
KB3YMH
https://phoenixketch.blogspot.com/
Bill O is offline   Reply With Quote
Old 13-08-2020, 19:01   #5
Registered User

Join Date: Aug 2020
Location: Back in Penang after 792 days away
Posts: 49
Images: 10
Re: Rudder position pypilot

Hi, I'll have a crack at this one.
Short answer, probably OK, It may not be optimal but it should work if you accept two limitations.

  • Firstly, because your potentiometer is quite low resistance it will draw more current and run hotter, OK as it is rated for 12/24v but your resistor needs to be of an appropriate power rating to dissipate heat safely.
  • Secondly, if you reduce the current draw to an acceptable level then the voltage range for your rudder angle is reduced. This may be acceptable as calibration will allow you to setup the high and low voltage corresponding to hard over rudder angles, but it will be less precise. In practice the ADC will be at least 8 bits so the angle measuring software probably smooths the value anyway.


Recommended configuration ( 10 KOhm potentiometer & 1 KOhm resistor ) you will have:
current from 4.5 microA - 4.5mA and voltage from 0.05-4.55V. Your ADC range 4.5V


Using your vdo ( 10-180 Ohm potentiometer & 1 KOhm resistor ) you will have:
current from 4.24mA-4.29mA but a voltage of only 0.762-0.05V, a range of only 0.7ish V.
You loose precision as you are only using a small proportion of the available input voltage range.

Other extreme, 10-180 Ohm potentiometer and 180 Ohm resistor:
current from 13.9mA-26.3mA and a voltage range of 2.5-0.26V
Much higher current draw but a healthier voltage range of 2V

It all comes down to deciding the minimum voltage range you need to determine rudder angle at the precision you require and choosing a resistor to give you that range.



Really you want your potentiometer to be much higher resistance, and your current limiting resistor keeps everything cool. I think if you want to use the VDO 1 KOhm will not give you an acceptable input range, perhaps 500 Ohm will be good enough.

I would definitely use larger than 180 Ohm, as that pulls 5x the current of the recommended configuration.
tanngrisnir is offline   Reply With Quote
Old 31-05-2022, 05:03   #6
Registered User

Join Date: May 2022
Posts: 15
Unhappy Re: Rudder position pypilot

I installed like described here: 500ohm between Red and Yellow. When I connect the pypilot I get the message portpin/starboardpin fault. Do you have any idea what could be the reason? I use the potentiometer 2 pins, 10-190 ohm. Thanks.
Bronno Mulder is offline   Reply With Quote
Old 31-05-2022, 13:52   #7
Registered User

Join Date: Feb 2019
Location: Cartagena, Spain
Boat: Furia 372 - 11.20m
Posts: 348
Re: Rudder position pypilot

Quote:
Originally Posted by IslandInfedel View Post
Would this be the correct way to hook this rudder position sensor to my pypilot (which is going to opencpn)?




“Rudder Feedback

3 wires are used for optional rudder feedback.

Black - GND

Yellow - voltage angle, from GND to Vcc

Red - +5v
A potentiometer with 3 wires can be connected to these 3 wires. The potentiomter should range from 1k ohms to 100k ohms. Recommend 10k.

A potentiometer with only 2 wires can connect to yellow and black pins. A resistor should be added from red to yellow of 1k ohms.

A hall effect sensor with analog output can be connected to these 3 wires.”

https://pypilot.org/schematics/hbridge_datasheet.htm

This is the sensor

VDO Single Station Rudder Angle Sensor - 12/24V - 10-180 OHM [A2C1102950001

https://www.amazon.com/VDO-Single-St.../dp/B07J2VMJ1S

Using a 2-pin adjustable resistor (this is not a potentiometer) doesn't sound like a good idea to me.

A potentiometer is a voltage divider, in such a way that the output voltage of the central connection corresponds linearly with the movement of the cursor:
Vo = Vi * Rc / Rt
Vo is output voltage.
Vi is input voltage.
Rc is the resistance from the cursor terminal to the 0v terminal.
Rt is the total resistance of the potentiometer from end to end, and is constant.
Thus, the output voltage covers the entire range from 0v to Vi, proportional to the angle of rotation of the cursor.

Let's see the case of a 2-terminal variable resistor:
Vo = Vi * Rv / (Rv + Rs)
Rv is the value of the variable resistor.
Rs is the value of the current limiting resistor.
Here we see that Rv is multiplying and also in the denominator added to Rs.
The result is not linear at all. It would only be approximately so if Rs were much larger than Rv, constituting what we call a constant current source, but then the maximum value of Vo would be very low in all cases.

To try to achieve a linear effect, while also limiting the maximum current, a cheap voltage regulator (7805, better 7803) could be used configured as a current source. (Attached image).
You just have to be careful with the Rs and Rv values ​​so that the whole range of Rv is useful.
Attached Thumbnails
Click image for larger version

Name:	Current_reg.jpg
Views:	94
Size:	24.8 KB
ID:	258712  
Tehani is offline   Reply With Quote
Old 31-05-2022, 21:21   #8
Registered User
 
AKA-None's Avatar

Join Date: Oct 2013
Location: Lake City MN
Boat: C&C 27 Mk III
Posts: 2,647
Re: Rudder position pypilot

Also remember that pots come in linear and logarithmic
__________________
Special knowledge can be a terrible disadvantage if it leads you too far along a path that you cannot explain anymore.
Frank Herbert 'Dune'
AKA-None is offline   Reply With Quote
Old 31-05-2022, 21:38   #9
Registered User

Join Date: Feb 2019
Location: Cartagena, Spain
Boat: Furia 372 - 11.20m
Posts: 348
Re: Rudder position pypilot

Quote:
Originally Posted by AKA-None View Post
Also remember that pots come in linear and logarithmic
It is evident that we are not going to put an audio pot here...
Tehani is offline   Reply With Quote
Old 01-06-2022, 21:41   #10
Registered User
 
AKA-None's Avatar

Join Date: Oct 2013
Location: Lake City MN
Boat: C&C 27 Mk III
Posts: 2,647
Re: Rudder position pypilot

Quote:
Originally Posted by Tehani View Post
It is evident that we are not going to put an audio pot here...


Not everyone who will read this in the future may be aware of the distinction
__________________
Special knowledge can be a terrible disadvantage if it leads you too far along a path that you cannot explain anymore.
Frank Herbert 'Dune'
AKA-None is offline   Reply With Quote
Reply

Tags
rudder


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PyPilot rgleason OpenCPN 123 31-10-2023 18:34
OpenCPN constantly crashing with pypilot plugin racer_99 OpenCPN 6 01-06-2020 23:39
New OpenPlotter/PyPilot build FluffyLittleSki OpenCPN 1 26-03-2020 16:44
Octopus auto helm with Pypilot control? motthediesel Marine Electronics 1 03-12-2019 11:54
OpenCPN / PyPilot build scruff OpenCPN 1 16-08-2019 06:00

Advertise Here


All times are GMT -7. The time now is 19:04.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.