
22 Make: Robotic Arms
STEP 4
This time, thanks to our conditional statement, we are starting to see code
we can interact with. Now that we have a method of input, with a push-
button, and a method of output, with our motor code, we can put the two
together and make our motor move based on our push-button presses.
To do this, we’ll need to add a second push-button, and our servo from the
previous example.
STEP 5
Our circuits are starting to get more complicated, but that’s a good thing!
The more complicated the circuit, the more our circuit can accomplish.
In (Figure
1-30
), we have wired in a second push-button and connected the
input of the push-button ...