Random Moving Robot Arm Project

I was looking around for a sketch or instructions on how to make a robot arm move randomly. I want it to move in whatever direction it can on its own just for entertainment, like a random blinking light. Is there link to one or instructions on how to write the sketch?

Thanks

When you have your robot arm set up and you are able to make it move, you can use random function for the movement.
random(min, max)

Your robot arm has two limits on each servo you must program. See this simulation, adjust the pin numbers to your robot arm, and the min and max values, replacing "0" and "180" with angleStart[servoPin[]] and angleStop[servoPin]].

Awesome info.

Thanks

What about a random servo sketch that works with the PCA9685. I have been trying to get it to work but can't.

When you have a solution to your topic, you close the topic.

To start another subject (the multiplexer) start another topic. I understand "random servo" might be similar, but the focus will be on the multiplexer, because you have a solution to the random servos.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.