Help about the Servo or pulsout

Jacobsen

New Member
Can someone please advise me of the command for SERVO code to running a RC motor.

I'm using: PICAXE Program Editor Ver.5.2.0

With the following codes I would like to make a (power steering)/controller for this Speed Controller.
Speed controller type: Brushless Motor Speed Controller HV-45A
Web-link: http://www.himodel.com/electric/HiModel_AS_Series_3-10S_Brushless_Motor_Speed_Controller_HV-45A.html

Motor show: Børsteløs motor Airbus A330.jpg

The motor is running very uneven .
Do you have a proposal for a programcode, where the motor would run smoothly and even?
Maybe the puls must be with 20ms pause and 1 to 2 ms puls
Would the command ”pulsout” be better than ”Servo”?

Codes:
init: servo 5,75
main:
servo 5,75 ' move servo to one end
pause 500 ' wait 500 mSec
servo 5,150 ' move servo to centre
pause 500 ' wait 500 mSec
servo 5,225 ' move servo to other end
pause 500 ' wait 500 mSec
goto main ' loop back to start


With all best regards to all of you
I hope that one here will help me out.

Best regards
Monie
 

Attachments

mobents

New Member
from what i have read, you should only use servo to initialize for servo use, i.e. in the first lines of code, and use "servopos" to change the servos positions

are you from norway? i see an ø...
 

nfk

Senior Member
Sorry if this is a daft question but on what page of the manual is the 'servopos' instruction described?
 

BeanieBots

Moderator
Indeed, 'servopos' on page 148 of the manual is the way to go.
However, what exactly do you mean by running uneavenly?

If it is just a 'glitch' each time you update the command, then servopos will be the cure. If it simply controls erratically even when the servo command is not updated, then it is probably a bad supply or bad wiring.

That is a 45A ESC. Do you have a suitable power supply and are the power leads passing clear of the controller?
 
Top