Hardware Required:
|
Schematic:
|
Project Steps:
Prepare the Arduino with the code (because pin D9 was in use by the LED in project 2):
- Connect the Arduino unit to your computer with the USB cable
- Open the Project3 sketch into the Arduino software and upload it to your module
- Disconnect the USB cable
Connect wires directly between the Arduino and the Servo Motor:
- Connect a wire between the ground and black servo wire (brown on some motors)
- Connect a wire between the +5V and the red servo wire
- Connect a wire between D9 and the white servo wire (yellow on some motors)
- Connect the USB cable to the Arduino to provide power to the servo and run your code.
Things to try:
- Change the delay while positioning the motor. What happens if the delay is too short?
- Change the maximum angle the motor can turn to 90 degrees.
- Change the maximum angle the motor can turn to 360 degrees.
Note: some servo motors can only move 180 degrees or less!
|
For more assistance contact Technical Support
here.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.