Arduino Product Display

About: 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/17027489. I'm a tech and food enthusiast and also a Soccer Player. I lo...

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 .

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Components Required

components required are as above:

  • Arduino
  • Servo
  • Knife
  • cardboard
  • tape

Step 2: 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

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
  }
}
Makerspace Contest 2017

Participated in the
Makerspace Contest 2017

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions