Writing the code
For this build, we are going to focus on the remote app coding only. This will be a program that will allow you to control the robot using the remote-control feature of the app to move the claw right, left, up, and down, and to open and close the claw.
Overall, this program is fairly simple to develop and is created to be easily adaptable for you to remix to meet your needs. Use this sample code to make sure everything works, and then begin to tweak the code to make it work to your needs. Make sure you have the proper ports plugged in, and then move into the code.
Identifying the ports
If you have not plugged in your motors yet, then let's get them plugged in to the proper ports. You will plug the motor that moves the claw to the right and left to motor port C. The motor that controls the opening and closing of the claw will plug into port D. The two motors that control the arm of the claw to go up and down will use ports B and F. Once you have the motors...