Download presentation
Presentation is loading. Please wait.
1
Chapter 5 Servomotor
2
Table of content Motor Motor/Generator Servomotor Example 1 and 2
Challenge 1 and 2
3
Motor There’s many different types: -DC -Brushless -Servomotor
-Continuous servomotor -Gear motor…
4
Motor / Generator A motor can also be call a generator
A motor uses electricity to create movement A generator uses movement to create electricity
5
Servomotor Can rotate from 0° to 180° Easy to control it’s position
6
Example 1 Move 90° position
#include<servo.h> Servo myservo; Void setup(){ myservo.attach(9); } Void loop(){ Myservo.write(90);
7
Example 2 sweep left and right
8
Challenge 1 Push button with Servomotor
Use two push buttons to control the servomotor. When one button is press the motor will turn to the right and when the other button is press the motor will rotate the left.
9
Challenge 1
10
Challenge 2 servomotor and potentiometer
Let’s control the servomotor using a potentiometer. When you turn the potentiometer de motor will also turn.
11
Challenge 2
12
Next Chapter 6 Dc Motor
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.