Jump to content
Arduino.lk Community Sri Lanka
  • Announcements

    • Team Arduino.lk

      Arduino Stater Kit 2 එකක් දිනාගන්න.   11/13/2017

      arduino.lk community වෙත ඔබව සාදරයෙන් පිළිගනිමු. ඔබගේ ගැටළු අදහස් මෙහි පළකර Rs 3650.00 වටිනා Arduino Stater Kit 2 එකක් දිනාගන්න. ඔබ කල යුත්තේ Arduino, හා සම්බන්ධ අදහස්, ලිපි, කමෙන්ට් මෙහි පල කර මෙහි ඇති LeaderBoard එකේ පළමු තැනට පැමිණීමයි. සැම මාසකම අවසාන දින 11.55 PM හොදම Contributor තෝරනු ලැබේ
    • Team Arduino.lk

      Arduino Uno r3 දැන් Rs 950.00 යි.   11/13/2017

      Arduino Uno r3 දැන් Rs 950.00 යි. ගෙදරටම ගෙන්වා ගන්න දැන්ම පිවිසෙන්න https://shop.arduino.lk

Search the Community

Showing results for tags 'servo'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Genaral
    • Welcome
    • News
  • Arduino
    • Installation & Troubleshooting
    • Programming in Arduino
    • General electronics
    • Microcontrollers
    • LEDs and Multiplexing
    • Displays
    • Motors, Mechanics and Power
    • Sensors
    • Network Protocols and Devices
    • Storage
    • Construction
    • Documentation
  • Other
    • Tutorials
    • Arduino Projects
    • Off-Topic
    • Jobs / Job offers
  • NSBM Arduino Club's Topics
  • STEM education of srilanka's Stem srilanka
  • CSNE Ardunio (Atmel Studio)'s Atmel Studio

Calendars

  • Community Calendar

Blogs

There are no results to display.

There are no results to display.

Categories

  • Files
  • eBooks
  • Datasheets
  • Library
    • Sensor
    • Modules
    • Shields

Categories

  • Articles

Categories

  • Lessons
  • Tutorials

Found 1 result

  1. දැන් අපි බලන්න යන්නේ servo motor එකක් වැඩ කරන්නේ මොකොමද කියලා. servo motor එකක් අංශක 180 කරකවන්න පුළුවන් අපිට ඕන විදියට. ඉතින් අපි මේකට උදහනයකින් තේරුම් ගන්න බලමු. මේකට අපිට මෙන්න මේ දේවල් ඕන වෙනවා Hardware Required • Arduino Board • Servo Motor • Jumper wire Circuit Servomotors have three wires: power, ground, and signal. The power wire is typically red, and should be connected to the six-volt power supply. The ground wire is typically black or brown and should be connected to a ground pin on the Arduino board AND the 6V power supply. It is essential that there is a common ground. The signal pin is typically yellow, orange or white and should be connected to pin 9 on the Arduino board. Code // Sweep // by Hasarinda <http://arduino.lk> // this example code is in the public domain. #include <Servo.h> Servo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created int pos = 0; // variable to store the servo position void setup() { myservo.attach(9); // 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>=1; 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 } }
×