0% found this document useful (0 votes)
79 views2 pages

Servo

This document provides instructions for an experiment to control a servo motor using a potentiometer. The circuit connects a potentiometer, servo motor, and Arduino board. Turning the potentiometer knob varies the resistance, which controls the voltage to the servo and its position. Running the Arduino sketch allows controlling the servo rotation by turning the potentiometer knob clockwise or counterclockwise. The reflection questions which function could be altered so large potentiometer movement only causes small servo movement.

Uploaded by

Faris Hamzi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
79 views2 pages

Servo

This document provides instructions for an experiment to control a servo motor using a potentiometer. The circuit connects a potentiometer, servo motor, and Arduino board. Turning the potentiometer knob varies the resistance, which controls the voltage to the servo and its position. Running the Arduino sketch allows controlling the servo rotation by turning the potentiometer knob clockwise or counterclockwise. The reflection questions which function could be altered so large potentiometer movement only causes small servo movement.

Uploaded by

Faris Hamzi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Servo

Topology

Objectives
 Connect the circuits between the breadboard and RedBoard
 Load and run the sketch in the Arduino IDE
 Control the rotation of a small servo motor

Background / Scenario
This lab will make use of a potentiometer to change resistance based on the position of the knob on the
potentiometer. The varying resistance will then be used to control the voltage sent to the Servo. Varying the
voltage will cause the Servo to change positions.

© 2023 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 2
Lab – Servo

Required Resources
 SparkFun Inventors Kit (SIK) or equivalent components
 PC configured with Arduino drivers and Arduino software
 SparkFun SIK Guide Code example files

Step 1: Connect the circuits between the breadboard and RedBoard.


Refer to the Topology diagram for a visual reference of the following steps.
a. Select 1 Servo, 1 Potentiometer, 3 black wires, 3 red wires, 1 blue wire and 1 white wire from the SIK.
b. Insert the Potentiometer connecting leads to b1, b2, and b3.
c. Connect the Servo using a black, a red, and a white jumper wire with their leads matching the colors
coming out of the servo. The black lead connects to the (-) bar closest to row j, red to the (+) bar closest
to row j, and white to Digital Pin 9 (~9).
d. Connect a black wire from d3 to the (-) bar closest to row j.
e. Connect a red wire from d1 to the (+) bar closest to row j.
f. Connect a blue wire from d2 to the Analog Pin 0 (A0).
g. Connect a black wire from the breadboard (-) bar to the GND on the RedBoard.
h. Connect a red wire from the breadboard (+) bar to the 5V pin on the RedBoard.
i. Note: you may use some tape to hold the Servo motor on the table.

Step 2: Load and run the sketch in the Arduino IDE.


a. Rotate the knob on the Potentiometer clockwise. The Servo motor should turn clockwise depending on
how much the knob is rotated. Rotate the knob on the Potentiometer counterclockwise. The Servo motor
should also turn counterclockwise depending on how much the knob is rotated.

Reflection
Review the code. Which function and its parameter should be altered so that moving the potentiometer a lot
only moves the servo a little?
_______________________________________________________________________________________
_______________________________________________________________________________________

© 2023 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 2

You might also like