Project showcase
Operating Servo Motor Through Arduino On Online Simulator

Operating Servo Motor Through Arduino On Online Simulator

Tinkercad is the largest community of 3D design enthusiasts of its kind! It is an online simulator on which projects can be made.

  • 11,206 views
  • 1 comment
  • 23 respects

Components and supplies

Ph a000066 iso (1) ztbmubhmho
Arduino UNO
×1
Servo Motor
×1

Necessary tools and machines

Jumper wires

Apps and online services

About this project

Tinkercad is an online simulator platform available for various 3D circuit designing and printing. In this we will run a servo motor through arduino on tinkercad which is a online simulator.

  • Step 1- open tinkercad.com and register on it to start designing circuits online.
  • Step 2- Open the Designing window and select an arduni board and a servo motor and connect it as shown in circuit diagram.
  • Step 3- open the code window, and do the selected settings like the angle at which the motor should be rotated.
  • Step4- click in simulate to run the circuit

Arduino codes is also available on tinkercad you can download it from the website and design the above circuit physically.

Code

servo_code.inoC/C++
#include <Servo.h>

int pos = 0;

Servo servo_9;

void setup()
{
  servo_9.attach(9);

}

void loop()
{
  // sweep the servo from 0 to 180 degrees in steps
  // of 1 degrees
  for (pos = 0; pos <= 180; pos += 1) {
    // tell servo to go to position in variable 'pos'
    servo_9.write(pos);
    // wait 15 ms for servo to reach the position
    delay(15); // Wait for 15 millisecond(s)
  }
  for (pos = 180; pos >= 0; pos -= 1) {
    // tell servo to go to position in variable 'pos'
    servo_9.write(pos);
    // wait 15 ms for servo to reach the position
    delay(15); // Wait for 15 millisecond(s)
  }
}

Custom parts and enclosures

Circuit Diagram Through Eagle
fabulous_amur-hillar_(1)_p0WQSoWIrP.brd

Schematics

ci_qxT9nA9Yjq.JPG
Ci qxt9na9yjq

Comments

Similar projects you might like

All About Servo Motors and Servo Motor Tester

Project tutorial by RoboCircuits

  • 5,406 views
  • 1 comment
  • 11 respects

Using Serial Monitor to Control Servo Motor

Project tutorial by Kub_Luk

  • 17,602 views
  • 9 comments
  • 39 respects

Arduino/Android - BLUETOOTH Multi Servo Motor Control

Project tutorial by Danny van den Brande

  • 21,464 views
  • 12 comments
  • 35 respects

Servo Motor Control with Remote

Project showcase by Electronic Clinic

  • 5,194 views
  • 1 comment
  • 22 respects

Controlling of Servo Motor with Arduino and MPU6050

Project tutorial by Hammad Iqbal

  • 5,268 views
  • 4 comments
  • 12 respects

Check a Stepper Motor From the DVD-ROM

by Ingo Lohs

  • 18,505 views
  • 2 comments
  • 44 respects
Add projectSign up / Login