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

Join Date: Dec 2021
Posts: 2
Pypilot Motor speed Control


I am working on the below Proof of concept for Pypilot motor Control.

Raspberry pi 4 (Having Pypilot, Open Plotter) connected with Arduino UNO that connects with Motor controller.

I have procured the BLDC Motor controller and BLDC motor from Aliexpress and the details given below. I am unclear to how customize the motor.ino file for this configuration. Also, I could not understand the correct pwm style from the given Motor Controller specification.

However, when i connected Arduino UNO (Standlone - without Pypilot) with Motor Controller, i am able to control the Motor using Analog Pot (Arduino UNO pin 9 - Motor Controller signal Pin, Arduino UNO ADC pin A0 - Analog POT) with the following sketch.

Please give some input to customize the motor.ino to control the motor per this configuration.

Arduino sketch (Standlone Arduino- without Pypilot):

int motorPin = 9; // Motor connected to digital pin 9
//int val = 0; // variable to store the read value

void setup() {
pinMode(motorPin, OUTPUT); // sets the pin as output

void loop() {
val = analogRead(A0); // read the input pin
analogWrite(motorPin, (val/4)); // (val/4)analogRead values go from 0 to 1023, analogWrite values from 0 to 255

Motor Controller:

Motor Details

12v24v1200w brushless propeller|DC Motor| - AliExpress
Cheap DC Motor, Buy Quality Home Improvement Directly from China Suppliers:12v24v1200w brushless propeller Enjoy Free Shipping Worldwide! Limited Time Sale Easy Return.
karthikpraveen is offline   Reply With Quote
Old 29-12-2021, 11:06   #2
Registered User

Join Date: Jan 2011
Posts: 35
Re: Pypilot Motor speed Control

I have worked with arduinos and esp 's for quite some time trying to perfect an autopilot for my 38ft ketch
1. Dont waste your time with a UNO it will run out of memory and does not have sufficient pins if you start doing anything fancy

2. Dont consider the new or older ESP's -they are more powerfull etc but software/hardware is poorly suppported in comparison to arduino
3 Do buy and spend your efforts on an Arduino Mega 2560. Buy the cheaper chinese clone because the Ch 340 chip on it is more stable if you want to use older windows machines. It has 4 ports and a huge number of pins

I am updating my system to integrate a RP4 with openplotter to get over inherent arduino limitations with data - PI as HMI/wifi/ etc in display/supervisory role while leaving Mega as I/O - motors, sensors, logic software. I have had enormous issues with getting the PI working on openplotter/system K

SV Zolanda
burgoynebc is offline   Reply With Quote
Old 30-12-2021, 04:18   #3
Senior Cruiser
GordMay's Avatar

Cruisers Forum Supporter

Join Date: Mar 2003
Location: Thunder Bay, Ontario - 48-29N x 89-20W
Boat: (Cruiser Living On Dirt)
Posts: 49,857
Images: 241
Re: Pypilot Motor speed Control

Greetings and welcome aboard the CF, karthikpraveen.
Gord May
"If you didn't have the time or money to do it right in the first place, when will you get the time/$ to fix it?"

GordMay is offline   Reply With Quote


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
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 23:14.

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.