전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

DFR0331 데이터시트(PDF) 18 Page - DFROBOT

부품명 DFR0331
상세설명  Romeo for Edison Controller SKU: DFR0331
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  DFROBOT [DFROBOT]
홈페이지  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0331 데이터시트(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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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