Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

DFR0331 Datasheet(PDF) 18 Page - DFROBOT

Part # DFR0331
Description  Romeo for Edison Controller SKU: DFR0331
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  DFROBOT [DFROBOT]
Direct Link  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0331 Datasheet(HTML) 18 Page - DFROBOT

Back Button DFR0331 Datasheet HTML 14Page - DFROBOT DFR0331 Datasheet HTML 15Page - DFROBOT DFR0331 Datasheet HTML 16Page - DFROBOT DFR0331 Datasheet HTML 17Page - DFROBOT DFR0331 Datasheet HTML 18Page - DFROBOT DFR0331 Datasheet HTML 19Page - DFROBOT DFR0331 Datasheet HTML 20Page - DFROBOT DFR0331 Datasheet HTML 21Page - DFROBOT DFR0331 Datasheet HTML 22Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 18 / 24 page
background image
#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



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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