Asked — Edited

Servo Positioning Values

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


ARC Pro

Upgrade to ARC Pro

With Synthiam ARC Pro, you're not just programming a robot; you're shaping the future of automation, one innovative idea at a time.

United Kingdom
#9  

Centre will move the servo to it's centre point (that being max position - min position / 2 so centre between max and min)

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.

#10  

Ok. Just had a major incident. I'm using a external 12 volt power source and thought my grounds should be connected such as with a H-Bridge. I did that and my servo wires melted. The board seems ok but I had to peel the fused mess from all over my work bench.

Tough day :(

United Kingdom
#11  

You should have a common ground for everything. I'd be checking all wiring not just grounds if that had happened. Melted cables usually are a sign of excessive heat, which usually indicates a short from Vcc to Ground.

#12  

Dude, are you sure your servo is rated for 12V? Most servos use max 7.2 volts (but yes there are higher voltage ones)... However, it sounds like you shorted something with bad wiring...

United Kingdom
#13  

That's a point... The Servos in the EZ-Kit are not suitable for 12V. If you have applied 12V to the Vcc that could have been the cause of the problem. If they were plugged directly in to the EZ-B then you have nothing to worry about on the wiring side (12V power supply in to the EZ-B, servo hooked up to the Digital port (Ground towards the centre)

#14  

Yep. Too many bloody wires and servos connections going on. I grabbed the wrong wires and connected to a 5 volt servo instead of a 12 volt. Totally my fault.

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.

:D

#15  

Dudes drink beer, not martinis... :D ... My girlfriend drinks wine which in my opinion taste like battery acid, but that's just me...

United Kingdom
#16  

If you are switching between 2 positions you may find scripting is the way to go, which would mean using 2 scripts (as posted earlier).

Servo(D4, 100)
Servo(D4,1)

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.