Asked — Edited

Sevomovementpanel Vs. Horiz &Amp; Vert Servos?

I can control my servos, forward and reverse with the SMP. However, I can only drive them forward with the Horiz servo or Vert Servo.

Any ideas?

Thanks again


ARC Pro

Upgrade to ARC Pro

ARC Pro is your gateway to a community of like-minded robot enthusiasts and professionals, all united by a passion for advanced robot programming.

#9  

Thanks Gunner, lots of good ideas as usual.

Just to be clear, that trick of switching to PWM worked for the Fergelli, since it has a built in motor controller withe 5 different modes of operation. The servos do not have that luxury. I ran them from a horizontal, and vertical servo script. That works. It is just from the Modified servo mode that I had no success.

We'll get there

Canada
#10  

@Troop thanks for that little feedback... you know, I never thought of running a modified servo with a H/V servo control, but after your comment I tried and not only does it work fine, but I can now get smooth speed control:) the modified servo control just goes all out and adding a servo speed controller just made the transition from forward to reverse a delayed and gradual ramp up to full speed. Guess I need to experiment more with unusual control combinations:)

Thanks!

#11  

The PWM Script Command PWM(port#,position) does not appear to work.

I test things using the sliders and when they work, I write script commands to execute them.

I used the PWM slider to drive my linear actuators. I monitored the waveform from the EZ-B and the dc voltage that was delivered to the linear actuator. All was in order.

Then I wrote script commands to do the same thing. PWM(D2, 0) for example. I saw a constant high, 100% duty, from port D2. It did not modulate the duty cycle, like the PWM slider did. So, of course it would drive the linear actuator to its stop and not come back. I can still control it properly from the PWM slider.

Any ideas?

Canada
#12  

I went to test PWM(D2, 0) to see if it was supposed to be all ON instead of all OFF... but I discovered my EZ-B Bluetooth module is dead:( so I can't assist much more, aside from theoretical guesses:P

I am sure you know this, but just in case... the script setting you used would lock the PWM at a single setting (like leaving the slider stationary in one spot)... you would need to change the position value to a variable and have some input adjusting that variable in a loop to act like a slider does.

Stop me now if you already know all that:P