| Electronic Components Datasheet Search |
|
DFR0331 Datasheet(PDF) 18 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0331 Datasheet(HTML) 18 Page - DFROBOT |
|
18 / 24 page ![]() #include <Servo.h> Servo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created intpos=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 pos ition } 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 pos ition } } NOTE: Only PWM interface could control the Servo. D.Motor Control Note: We made a lot of update for "Romeo for Edison main board", to manage them e asily we have moved it on github. NG.ino is ATmega8 firmware; DFRobotEdison is Romeo motor and analog driver librar y. New Romeo for Edison library (https://github.com/ouki-wang/remeo4edison) Old Romeo for Edison library (https://github.com/Arduinolibrary/DFRobot_Intel_Edison/raw/master/DFRobotEdison%20V1.1.zip) Note: The product manufactured after Sep. 2015 have burned the newest firmware. Please use the corresponding library to avoid bugs. For the older product, you could update ATmega8 firmware to use the newest librar y. Page 18 of 24 |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |