go_away

Author Topic: My photovore is spining in place! Wheels are going in opposite directions.  (Read 2803 times)

0 Members and 1 Guest are viewing this topic.

Offline garriwilsonTopic starter

  • Supreme Robot
  • *****
  • Posts: 345
  • Helpful? 0
I just finished my photovore 50$ robot. When I turn on the switch on my battery holder, the wheels start going in opposite directions which causes the robot to spin in one place. If anyone knows what the problem is, I need help.

Offline hazzer123

  • Supreme Robot
  • *****
  • Posts: 460
  • Helpful? 3
Could the signal leads for each servo be accidentally connected?

Imperial College Robotics Society
www.icrobotics.co.uk

Offline airman00

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 3,653
  • Helpful? 21
  • narobo.com
You might have wired the motors incorrectly. check again
Check out the Roboduino, Arduino-compatible board!


Link: http://curiousinventor.com/kits/roboduino

www.Narobo.com

Offline garriwilsonTopic starter

  • Supreme Robot
  • *****
  • Posts: 345
  • Helpful? 0
Another problem: my LED isn't lighting up when I turn on the robot.

Offline garriwilsonTopic starter

  • Supreme Robot
  • *****
  • Posts: 345
  • Helpful? 0
I just noticed something. When it spins in place, the left wheel goes backwards. And that's not the only thing: it goes faster than the right wheel.

Offline hazzer123

  • Supreme Robot
  • *****
  • Posts: 460
  • Helpful? 3
Did you make sure that the servo's internal potentiometers were centred after modifying them. That is pretty important. Otherwise they will act like you say.

To ensure that they are centred, i send out a dead centre PWM signal, and adjust the potentioneter until the servo stops moving.
Imperial College Robotics Society
www.icrobotics.co.uk

Offline garriwilsonTopic starter

  • Supreme Robot
  • *****
  • Posts: 345
  • Helpful? 0
I already superglued the pots. When I program my microcontroller to set them to 0 degrees, they keep spinning in opposite directions. And I think that's right.

Offline garriwilsonTopic starter

  • Supreme Robot
  • *****
  • Posts: 345
  • Helpful? 0
Another problem. It seems that my photoresistors are badly damaged because when I turn on the robot and point a flashlight on each resistor, it doesn't react at all. It just keeps going and going and going. (Stupid duracell bunny I bet it's his fault.)

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,666
  • Helpful? 169
    • Society of Robots
Did you ever get it to work?

If the pots arent centered properly, and you dont want to redo them, change it in code instead.

When you see servo_left(30), change that number to alter the speed of the wheels.

There is also a chance you got some wiring messed up . . .

Offline sean22

  • Jr. Member
  • **
  • Posts: 45
  • Helpful? 0
im having the same problem how did you fixit
First Robotics - 2009
Canada Skills Robotics - 2009

Offline Hawaii00000

  • Contest Winner
  • Supreme Robot
  • ****
  • Posts: 347
  • Helpful? 2
Make sure you send a signal for the servos to spin in OPPOSITE directions, because when you put them on two different sides of the robot one of them is going to be reversed. It kind of hard to explain, but basically send a signal for one motor to spin forward and the other to spin backward and see if it works.
"God chose to make the world according to very beautiful mathematics."
-Paul Dirac
**************************************************************
Its Hawaii Five-O. Get it?

Offline pomprocker

  • Supreme Robot
  • *****
  • Posts: 1,430
  • Helpful? 16
  • Sorry miss, I was giving myself an oil-job.
My photovore did that when it was in full light, like in the kitchen. It might be improper resistor values.

 


Get Your Ad Here

data_list