
Mulberry
USA
Asked
— Edited
Afternoon All
I'm having trouble getting any positioning on my 180 degree servos. No matter what values I put in the unit does a complete arc. I can add speed control but that's about it. My goal is to use the servo to open a panel door. I could live with the complete ARC but would rather limit the range.
Any advice is welcome.
Thanks,
Daniel
How are you moving this servo? With a Movement Panel or script? Can you post a copy of your project? You'll find it somewhere in your EZ-Robot Inc folder and have a .EZB extension. Just use the "Attach File" tool in the lower right hand corner of your screen and upload it. I'd love to take a look and test it to see if there is anything I can see.
If your using a script this is an example:
Code:
If using a Movement Panel make sure you have your ports inserted right.
Good luck, Dave Schulpius
These Sevos not allow variations in the rotation and can only move from 0 to 180 degrees without intermediate positions.
I wonder if you're using one of those servos, to rule out other problems.
Daniel
Click on project
Add
Choose Servo
Select either Horizontal or Vertical servo depending on it's orientation
Click on options and adjust the port, min and max values
Alternatively you could use a script to open and close the door. You will need to figure out the servo positions but just adjust the positions I've used below (positions are the second part in brackets of the Servo() command)
Open Door
Code:
Close Door
Code:
Daniel
Excuse the poor framerate (I need better screen recording software) but here's an example from start to finish.
P.S. A small tip and little known fact, in the video I right click on the servo positions in the config to bring up the list of positions rather than scroll through. The same can be done when changing the position on the control.
Still no movement from the servo and I get a disconnected message when I click on center or release. I assume the center and release are how I activate, correct?
Daniel
Release will release the servo - when you move a servo to a position the control will hold it at that position (if you try to manually move it you will feel resistance, if released it will freely move).
If you drag the number part and the number goes up or down the servo should move to the position indicated.
I assume you have connected the EZ-B to the PC correctly?
If you are getting a disconnected message it may be that you have an issue with the power somewhere. Either a bad servo (possibly, but worst case scenario) or the board is browning out due to a low battery.
Tough day
I think I've figured out my blind spot. These servos are to be controlled by scrolling and not the center and release. I thought I would have a button to move the servo into one position and then a button to move it back.
Is that it?
Daniel
Gonna be two martini's tonite.
Code:
Code:
You have the choice of script manager and EZ-Script (and keyboard, joystick etc. too I guess) so depending on how you add the scripts will depend on the way to use the controls.
Here is a project with 2 EZ-Scripts, one called Door Open and one called Door Close. Download it, save it and then in your project choose Merge. Select the 2 scripts and OK it. They should be imported in to your project (on Desktop 1).
You may need to adjust the port and position but clicking on the start button of each should move the servo in to the required position.
@Daniel, Sorry your having these troubles. Looks like your rounding the learning curve though.
Nice progress