Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: garriwilson on August 02, 2007, 09:21:39 PM

Title: My photovore is spining in place! Wheels are going in opposite directions.
Post by: garriwilson on August 02, 2007, 09:21:39 PM
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.
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: hazzer123 on August 03, 2007, 01:31:20 AM
Could the signal leads for each servo be accidentally connected?

Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: airman00 on August 03, 2007, 05:16:47 AM
You might have wired the motors incorrectly. check again
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: garriwilson on August 03, 2007, 10:21:25 AM
Another problem: my LED isn't lighting up when I turn on the robot.
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: garriwilson on August 03, 2007, 10:26:14 AM
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.
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: hazzer123 on August 03, 2007, 11:01:59 AM
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.
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: garriwilson on August 03, 2007, 08:29:16 PM
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.
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: garriwilson on August 03, 2007, 08:31:07 PM
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.)
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: Admin on August 11, 2007, 09:53:48 AM
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 . . .
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: sean22 on March 09, 2009, 05:18:37 PM
im having the same problem how did you fixit
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: Hawaii00000 on March 11, 2009, 08:20:21 PM
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.
Title: Re: My photovore is spining in place! Wheels are going in opposite directions.
Post by: pomprocker on March 11, 2009, 09:47:37 PM
My photovore did that when it was in full light, like in the kitchen. It might be improper resistor values.