servo tester it's changing the width of the pulse and the servo motor's position changes to align with this signal as i increase the voltage for the power supply the height of the pulse also changes but the position of the motor remains the same if we use an arduino board we can run a program to control the position or we can even use a potentiometer to control the position manually ourselves we will learn how to build this later on in the video the signal enters the servo's circuit board and is converted to a voltage it passes through a comparator and then to a motor driver the motor driver controls the rotation of the dc motor it uses an internal h bridge circuit to control the direction of rotation either clockwise or counterclockwise to get to the required position this rotation causes the gears to rotate which causes the final gear and servo arm to also rotate connected to the final gear is the potentiometer you might recognize a potentiometer to look more like this they essentially work exactly the same the resistance increases and decreases between a minimum and a maximum value as the arm is rotated you can see here that the multimeter is measuring the resistance and when i turn the shaft the resistance changes this acts as a voltage divider if we apply a voltage across the potentiometer for example NUMBER_TOKEN volts we can then measure the change in voltage due to the varying resistance this change is proportional to its position when the arm is turned fully to the left the voltage is NUMBER_TOKEN volts at the center it is NUMBER_TOKEN volts and when turned fully to the right it is NUMBER_TOKEN volts the potentiometer is also connected to the comparator in the internal circuit board and the voltage is monitored to provide feedback we know that the resistance changes between a minimum and a maximum value as the potentiometer dial is turned so the comparator is going to compare the voltage of the potentiometer to the voltage of the controller signal if there is a difference then the motor will turn until the difference is close to zero then the server knows it is in the correct position so it will wait there until there is another change we will learn how to control a server motor in just a moment but i just want to remind you to check out our sponsor private internet access using the link below where our viewers can get a three year subscription with four extra months for free for just NUMBER_TOKEN per month with this you can enjoy safer internet access across NUMBER_TOKEN devices click the link in the video description down below we're going to learn how to program an arduino to control a servo using a potentiometer for this project you'll need an arduino a breadboard a servo motor a potentiometer some wires and a power supply first connect a wire from the NUMBER_TOKEN volt port to the positive rail of the breadboard then connect another wire from the ground port to the ground rail now connect from the NUMBER_TOKEN volt rail to the left side of the potentiometer then connect the right side to the ground rail then connect the center pin to port aNUMBER_TOKEN next connect from the NUMBER_TOKEN volt rail to the servo motor then connect the ground wire to the servo and finally connect the signal wire to port NUMBER_TOKEN of the arduino the circuit should look something like this so now we need to connect the arduino to our pc so we can write the code
START_SPONSOR_TOKEN we will learn how to control a server motor in just a moment but i just want to remind you to check out our sponsor private internet access using the link below where our viewers can get a three year subscription with four extra months for free for just NUMBER_TOKEN per month with this you can enjoy safer internet access across NUMBER_TOKEN devices click the link in the video description down below END_SPONSOR_TOKEN