Cruisers Forum

  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 31-12-2021, 22:47   #1
Registered User

Join Date: Dec 2021
Posts: 2
Pypilot - Motor Driver for Rudder actuator

We are using L298N motor driver to drive an actuator using Pypilot.
In Motor.ino file, We set the PWM option pwm_style = 0. When we try connecting Arduino UNO with L298N (IN1-PIN 9, IN2-PIN10), we found the motor NOT running. However, When we given +Vcc to IN1 and GND to IN2 the actuator start extending and for +Vcc to IN2 and GND to IN1 the actuator start retracting.

When we explored the motor.ino further, we found that the motor.ino file is designed such that it needs total 4 pins to connect to H-Bridge controller (2 bottom pins and 2 top pins to connect to H-Bridge motor controller)

#define hbridge_a_bottom_pin 2
#define hbridge_b_bottom_pin 3
#define hbridge_a_top_pin 9
#define hbridge_b_top_pin 10

However, L298N gives only 2 pins apart from ENA pin. (it controls 2 motors and each channel has 2 pins along with a ENA pin).

Hence, this does not match with the motor.ino program. Could you please help me to tweak the motor.ino file.

Also, i believe we should not enable the option pwm_style = 2 for this controller, as that is designed for a different motor controller (VNH2SP30)
karthikpraveen is offline   Reply With Quote

motor, rudder

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Rudder position pypilot IslandInfedel OpenCPN 15 02-06-2022 01:36
Pypilot Motor speed Control karthikpraveen OpenCPN 2 30-12-2021 04:18
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 03:10.

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.