Lab Structure
π Task 0
Blink built-in LED in TinkerCAD
π Task 1
In TinkerCAD, program default moves for a servo (0ΒΊ, 90ΒΊ, 180ΒΊ, 0ΒΊ, β¦)
πͺ Challenge 0
Build this simple circuit and program the Arduino with the code from Task 1
π Task 2
In TinkerCAD, use functions to make programming the servos easier.
π Task 3
In TinkerCAD, use Serial Monitor to add debug statements when the servo receives an angle.
π Task 4
In TinkerCAD, program the servo to read a potentiometer and set angle accordingly
πͺ Challenge 1
Build the circuit in Task 4 on the breadboard (donβt be put off if it doesnβt work immediately!)
π Task 5
Add a switch (either TinkerCAD/breadboard/both) to enable/disable the servo (you cannot turn off the servos power)
πͺ Challenge 2
Swap the servo for an LED + resistor in series. What happens? What happens when you flip the switch? (this depends how you completed Task 5)
πͺ Challenge 3
Write a program that when you flip a switch, you can switch between course and fine movement on servo
πͺ Challenge 4
Write a program that controls two servos with one potentiometer, using one switch to change which one is being controlled
πͺ Challenge 5
Write a program that controls the servo angle by entering in a value into the Serial Monitor (hint: Use
Serial.parseInt()).