Bukit Mertajam, Penang

Autogate

A servo motor is one of the motor that can be controlled with different angle. This made a servo motor a special device especially when we want to use a precise angle in our project. For today, I’ll show you a simple project using a servo. Scroll down for more info.

Hardware Preparation

This tutorial use :

  1. Maker UNO
  2. TowerPro SG90 Micro Servo
  3. Micro B USB

You can make the hardware connection based on the diagram and table below.

Connection
Servo : VCCMaker UNO: 5V
Servo : GNDMaker UNO: GND
Servo : A0Maker UNO: Pin 11
Figure 1 : The hardware connection.
Figure 2 : The Autogate

Sample Code

This is the sample code used for this tutorial. Try it!

Thank you

Thank you for reading this tutorial and we hope it helps your project development. If you have any technical inquiry, please post at Cytron Technical Forum.

Leave a comment

Loading...