So it's clear what you need to do?
Do you need more help?
Regarding my initial query, no, but I know what I've got to do differently now and will try it all out when I get the chance to next.
Thank you and to everyone here for your replies
Say I require the motor to rotate at a constant speed, as well as to adjust its own speed so that the wheels move either forwards or backwards for position adjustment, how would I go about doing that?
Is it even possible for autonomous adjustment of motor speed in cases where correction of position is required?
Exactly what do you mean by position?
Position of what, the wheel?
This is unrelated to the original question, I will make a separate post if need be.
My query is that if a mounted robot arm is required to pick something up, but is too far away from the object, can the motor speed be adjusted through the use of the enable pins on the motor driver and analogWrite() so the robot either goes backwards or forwards, to a distance good enough for the arm to pick the object up, autonomously?
You can certainly control the direction and speed (see the tutorial) but how does the robot know that it is in the right position to pick up the object?
I think my approach is to use 2 IR sensors, and make a junction with some black tape, and place the object next to this junction. If both sensors detect black, the robot stops, and then the robot arm is prompted to extend and pick the object up
That could work.
You could use a break beam type IR sensor where the object would break the beam
PID speed control. Popular topic on this forum! You will need shaft or wheel encoders to measure the actual speed, and use Arduino analogWrite() to adjust the motor power.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.