Don't ad-block us - support your favorite websites. We have safe, unobstrusive, robotics related ads that you actually want to see - see here for more.
0 Members and 1 Guest are viewing this topic.
IR_value = analogRead(0);//use pin 0 for analog
digitalWrite(13, HIGH); // turns port 13 ondelay(120); // delay determines servo speed/positiondigitalWrite(13, LOW); // turns port 13 off
why cant it just work??? can anyone help me diagnose this thing? i dont have time to do a uart thing with a serial port adapter or anything like that
IR_value = analogRead(1);//use pin 0 for analog
okay,so ive never used an arduino board, but i checked a tutorial just for you.....QuoteIR_value = analogRead(1);//use pin 0 for analogin this url http://www.arduino.cc/en/Tutorial/Knockit uses analogRead(0) for pin 0 and not analogRead(1).Could this be your problem?
OK tjpark11 I GOT IT , IT JUST POPPED INTO MY HEAD!!! CheesyBUY THE SAME SERVOS ( regular clockwise for both)then when you get the servos , open one of them up and reverse the wires going to the motor . There you got one going clockwise and one going anticlockwise on the same pulse!I just thought of this now and I'm going to be doing this for all my servos in the future. After I modify them , ill switch the wires of one of them so I have one universal pulse for forward and one for backward.ADMIN PUT THIS IN YOUR SERVO MODIFYING TUTORIAL!!!