go_away

Author Topic: $50 Robot. Software servo signal numbers.  (Read 1268 times)

0 Members and 1 Guest are viewing this topic.

Offline Choco_ligerTopic starter

  • Full Member
  • ***
  • Posts: 81
  • Helpful? 3
$50 Robot. Software servo signal numbers.
« 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...  :-\

Offline TomDOW2

  • Jr. Member
  • **
  • Posts: 7
  • Helpful? 0
Re: $50 Robot. Software servo signal numbers.
« Reply #1 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.

Offline corrado33

  • Supreme Robot
  • *****
  • Posts: 611
  • Helpful? 11
Re: $50 Robot. Software servo signal numbers.
« Reply #2 on: April 24, 2010, 09:28:32 PM »
Shouldn't the robot move STRAIGHT when the light is equal on both sides?

Offline Choco_ligerTopic starter

  • Full Member
  • ***
  • Posts: 81
  • Helpful? 3
Re: $50 Robot. Software servo signal numbers.
« Reply #3 on: April 24, 2010, 11:26:51 PM »
It moves straight but backwards for me.

Offline SmAsH

  • Supreme Robot
  • *****
  • Posts: 3,959
  • Helpful? 75
  • SoR's Locale Electronics Nut.
Re: $50 Robot. Software servo signal numbers.
« Reply #4 on: April 24, 2010, 11:56:05 PM »
Swap the servos around?
Howdy

Offline Choco_ligerTopic starter

  • Full Member
  • ***
  • Posts: 81
  • Helpful? 3
Re: $50 Robot. Software servo signal numbers.
« Reply #5 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.

Offline corrado33

  • Supreme Robot
  • *****
  • Posts: 611
  • Helpful? 11
Re: $50 Robot. Software servo signal numbers.
« Reply #6 on: April 25, 2010, 08:32:36 AM »
Swap the servos around?

I like your advice! Ha ha

 


Get Your Ad Here