Introduction: Arduino Product Display

Picture of Arduino Product Display

Have you ever seen product rotating on its own ???Yes, today we are creating the same product displayed using simple item i.e a servo motor and Arduino.I forgot to introduce myself, I'm Gokul.I have said you initially what's today project we are about to deal now.Let's now get Components required to make this ibles .

Step 1: Components Required

Picture of Components Required

components required are as above:

  • Arduino
  • Servo
  • Knife
  • cardboard
  • tape

Step 2: Servo Connection

Picture of Servo Connection

servo connection is a type of motor that is used to control the angular rotation and speed of the rotating shaft.

Here Servo is connected is as follow:

  • The VCC pin or red wire is connected to the 5v pin on the Arduino Uno.
  • The GND pin or the maroon wire is connected to the GND pin of the Arduino Uno.
  • The signal wire or the orange wire is connected to the digital pin of 3 of Arduino Uno.

Step 3: Cutting and Fixing

Picture of Cutting and Fixing

cut a cardboard into circle or any of shape as you wish to.Then place your horn on the cardboard,Then stick the horn on the cardboard using a tape or hot glue.

Step 4: Coding

#include "Servo.h"
Servo myservo;  // create servo object to control a servo
// twelve servo objects can be created on most boards
int pos = 0;    // variable to store the servo position
void setup() {
  myservo.attach(7);  // attaches the servo on pin 9 to the servo object
}
void loop() {
  for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
    // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }
  for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    delay(15);                       // waits 15ms for the servo to reach the position
  }
}

Comments

About This Instructable

74views

1favorite

License:

Bio: My team has developed a new product. PLEASE CHECK IT OUT ON INDIEGOGO AND SHOW YOUR SUPPORT. CAMPAIGN LINK: https://igg.me/p/2165733/x ... More »
More by goks_lf:Double Cheese Corn WrapChoco-Cheese ToastFancy Hand Band
Add instructable to: