ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

#17  

@hoolagen1 hey man, I understand what your saying, I too swear frequently when I'm around my buddies, but when I'm around, for instance, my grandma, young children, professionals, the elderly ect. (And I'm willing to bet we have members that fall into all of these categories) I don't swear and I use a respectful tone. I could care less personally (as long as you leave my momma out of it ;] ) but out of respect for the rest of the community just throw the filter on and pretend your grandma is reading your posts. Help comes quick around here from my experiences and Dj (even though he is busy running a company) is crazy helpful. Just my 2¢ to aid in your success.

#18  

Understood.

Think I said that in a previous post.

How's about some help with my problem?

Or do I have to wait for everyone to come in and wag their finger at me?

United Kingdom
#19  

First, on foul language, just check my facebook or speak to me personally, I swear like it's my first language but here it's understood that it's got to be kept in check. You need to realise that EZ-Robot has taken a huge risk with the public forum and very little moderation (personally I feel it may not be the best move to have as little moderation as it does have but so far it's proved OK 99% of the time). But with moderators comes power, power leads to abuse of power on > 95% of all forums I've ever been on and ruins the experience so it's catch 22.

Anyway, enough about that, your wrists have been slapped, you don't need me to do it too:) Just some friendly advice so everyone has a good EZ-Experience.

OK the problem... I guess I should read what that actually is/was... I thought the centre button issue was fixed with the update, I knew it was wrong previously but if it is still wrong I expect DJ wasn't aware and I am sure he will fix it in an update (if it needs fixing). Centre position will always be correct if it's (min+max)/2; I use that formula in the ping roam script to calculate the centre position for the sweep servo.

A few updates ago DJ changed how the servo reacts on initialisation. Since the servo position is unknown when you first turn on, for safety it would go to the minimum limit position on a servo control, it then knows it's position too. (DJ, correct me if I am wrong).

To counter this safety measure, run an init script on connect and also make sure your min positions are within any safe zones. Melvin sets all servo speeds and positions on connection, his head is very delicate and can break the servo/mount if it goes too far up or down. He turns on, goes to lowest of both, speed sets, the centres the servos. This is the script for resetting all servos on Melvin;


# Reset all servos
ServoSpeed(D1,0)
ServoSpeed(D2,0)
ServoSpeed(D7,0)
ServoSpeed(D10,0)
ServoSpeed(D11,0)
ServoSpeed(D12,0)
ServoSpeed(D13,0)
ServoSpeed(D14,0)
ServoSpeed(D19,0)

# Set Speeds
ServoSpeed(D1, 2)
ServoSpeed(D2, 2)
ServoSpeed(D10, 3)
ServoSpeed(D11, 3)
ServoSpeed(D12, 3)
ServoSpeed(D13, 3)
ServoSpeed(D14, 3)

# Set positions
Servo(D7,50)
Servo(D9,45)
Servo(D10,50)
Servo(D11,50)
Servo(D12,50)
Servo(D13,50)
Servo(D14,50)
Servo(D19,50)

# Release All
ReleaseAll()

# Position and hold Head
Servo(D1,50)
Servo(D2,60)
Servo(D8,45)
Sleep(500)

#20  

Mr rich thank you I know I k now. I'm lame. I swear I went link by link on you're collection of scripts and didn't see this one.

I'm still a little lost.

But I will re read what you posted. And tinker a little with it.

I've jammed 4 micro servos into a wall e head. I have the motion working and it's great.

But it all fall apart as soon as I connct the ezb to the software. Using 2 relative servo widgets to contrill all 4

#21  

My issue isn't software related. When I apply power to the ezb my servos jump. I just figured it was normal. I have no issues with the software. As far as centering goes, for me, center is always 50. I set a min and max to keep from over extending or colliding with other parts but 50 is center for me. I haven't messed with the controls much, I just have them added for now so I haven't checked the centering button on any of them.

Maybe in the future they will pull out the calculated value and let us define what we want center to be. Sorry I'm of no help but I'm still curious as to why I twitch when plugging in.

#22  

so wait.....you keep the max and min at 50 so the servo doesn't move once the board connects to the software?

how do you get motion out of the servo? example max 50 min 50

on the xbox controller if I hit a certain button I want that servo to move 20 positions (either 1 to 20 or 30 to 50 etc. etc.)....how can it? (if the max and min are both 50)

as far as the slight jerk when power is attached.....I get that too, but I can live with it, for me its very slight so no damage to the robot once I attach power

just not sure what the point of centering the servo is for, if the widget is just going to drop to the min value by default.

example min 30 max 50 center is 40

I leave the servo at center position (40) then turn off the board. and leave it. then I re-connect the board to software and the widgets drops to min value of 30 (but the servo is still at 40) so if I touch the widget of try to move the servo......it jump to 30 then to 40............whaddup?

if I add the script per Mr. Rich above. (thinking out loud)

I can change the script to make the servos.....set the center value that I want based on the widget I have assigned?

therefor bypassing the default setting of the widget dropping tot he min value?

ok brain cramp!

#23  

lol I re read the script.....Mr Rich thank you.

I will do that run some test and see how it goes....I think I see what you are saying.

United Kingdom
#24  

When you disconnect the board etc. and then reconnect it doesn't know which position it is currently in so will always jump to the min value set when you first use a control to move it. I can't be 100% sure since I seldom use servo controls but if you use a script command to move the servo to a position on initialisation (i.e. Servo(D0,50)) it will move direct to there, then the control will know where it is too avoiding that initial jump.