Society of Robots - Robot Forum

Software => Software => Topic started by: Choco_liger on April 24, 2010, 08:07:14 AM

Title: $50 Robot. Software servo signal numbers.
Post by: Choco_liger on April 24, 2010, 08:07:14 AM
Hello. I just completed the 50 dollar robot and it's pretty good.

All except for one flaw.

My servo's were turning really slow when trying to turn a certain direction. So I changed the signal number thingy to different values. I think because of some I may have done or may have not done, because now instead when the light is equal on both sides of my robot, it seems to move away from it rather than move towards it.

Apart from that it's fine as it can turn left and right towards the light.

I am pretty sure it's because I put different values for the servo's.

So basically I was just wondering how I can change this.

Sorry for bothering you...  :-\
Title: Re: $50 Robot. Software servo signal numbers.
Post by: TomDOW2 on April 24, 2010, 12:39:26 PM
(I properly know less than you)

You can swap the code round so whatever is in the while left is brighter than right has the code in the while right is brighter than left (vice versa)

I'm sorry if this is confusing: I think I have worded it badly.
Title: Re: $50 Robot. Software servo signal numbers.
Post by: corrado33 on April 24, 2010, 09:28:32 PM
Shouldn't the robot move STRAIGHT when the light is equal on both sides?
Title: Re: $50 Robot. Software servo signal numbers.
Post by: Choco_liger on April 24, 2010, 11:26:51 PM
It moves straight but backwards for me.
Title: Re: $50 Robot. Software servo signal numbers.
Post by: SmAsH on April 24, 2010, 11:56:05 PM
Swap the servos around?
Title: Re: $50 Robot. Software servo signal numbers.
Post by: Choco_liger on April 25, 2010, 12:39:13 AM
Sorry for bothering everyone.

I changed the threshold and now's it's all ok. :D

Thanks for the help and advice though.
Title: Re: $50 Robot. Software servo signal numbers.
Post by: corrado33 on April 25, 2010, 08:32:36 AM
Swap the servos around?

I like your advice! Ha ha