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 23-12-2023, 06:26   #1
Registered User

Join Date: Jul 2022
Posts: 8
Rudder Position Feedback

I have a question about rudder feedback and end stops for the pyPilot:
  1. I am reading the voltage related to my rudder position with a separate Pi Zero and an analog-to-digital converter and using that voltage along with the related rudder position to create a software rudder angle indicator through a Python program. It works well.
  2. The motor board on the pyPilot has three pins: one for +5VDC and two for the rudder position stops.
  3. Normally, a Hall effect sensor and magnets connected to the rudder position sensor would close when the rudder is at the stop position port or starboard.
  4. It occurs to me that I can also use my rudder angle indicator software to set my port and starboard rudder position stops, then drive the voltage at the two rudder position pins on the motor board through the Pi's GPIO.
  5. It appears that the voltage at either pin is 5VDC when the Hall effect sensor and magnet meet at the desired end stop.
  6. All the Hall effect sensor is doing is acting as a switch and closing a circuit.
  7. My Question: Can someone tell me if all I need to do is drive one of the two rudder end stop pins on the pyPilot motor board to +5VDC in order to accomplish the same thing as having a Hall effect sensor and magnet meet, and thereby indicating an end stop?

Thank you,

Clyde Ford
"Mystic Voyager"
Willard 30 PH
cwford is offline   Reply With Quote
Old 23-12-2023, 19:26   #2
Registered User

Join Date: Jul 2022
Posts: 8
Re: Rudder Position Feedback

Answered my own question:

1. RPi GPIO only goes hi to 3.3V not 5V
2. So simply going with a 3.3V relay to simulate a magnet next to Hall effect sensor
3. Driving the relay from 3.3V off a Pi GPIO pin

Thanks
cwford is offline   Reply With Quote
Old 25-12-2023, 02:04   #3
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,151
Re: Rudder Position Feedback

cwford..
Just be careful to find a relay small enough:

The operating voltage of the GPIO pins is 3.3v with a maximum current draw of 16mA (<50 mW for the coil).
Hakan is offline   Reply With Quote
Old 25-12-2023, 11:36   #4
Registered User

Join Date: Jul 2022
Posts: 8
Re: Rudder Position Feedback

Thanks so much, Hakan,


I'm actually thinking going to a transistor switch might be better. Here's the circuit I've designed:






Have I overlooked anything big?


If you celebrate the holidays, Happy Holidays!


Clyde
Aboard "Mystic Voyager"
30' Willard PH
cwford is offline   Reply With Quote
Old 25-12-2023, 15:17   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Rudder Position Feedback

What are you exactly trying to do? If pull the "Rudder endpoints" to ground than you would be probably creating a low-side switch (NPN transistor, no R2)

For example https://www.baldengineer.com/low-sid...or-switch.html has a nice explanation how to do this kind of stuff.
nohal is offline   Reply With Quote
Old 25-12-2023, 16:42   #6
Registered User

Join Date: Jul 2022
Posts: 8
Re: Rudder Position Feedback

Thanks, Nohal,


That's exactly what I'm trying to do, pull the "Rudder endpoints" to ground. Very much appreciate the Bald Engineer reference. Everything I'd seen on the RPi used a PNP BJT but an NPN BJT seems much more like the way to go.




Clyde Ford
Aboard "Mystic Voyager"
30' Willard PH
cwford 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
Navman Rudder Feedback Unit Pacey16 Marine Electronics 10 05-07-2019 06:47
Simrad Rudder Feedback Unit RF 300 HELP! islandfeverJim Marine Electronics 1 06-08-2015 05:15
Jefa Rudder Bearings Feedback Wanted Highland Fling Monohull Sailboats 10 22-06-2013 09:45
Replacing Simrad RF300 Rudder Feedback Unit Uncle Buck Marine Electronics 3 24-08-2011 18:41
How to Install a Rudder Feedback on a Tiller Boat bazzer Marine Electronics 7 25-05-2011 18:13

Advertise Here


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


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.