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

X  

DFR0502 데이터시트(PDF) 5 Page - DFROBOT

부품명 DFR0502
상세설명  Gravity:IO Expansion & Motor Driver Shield V1.1 SKU: DFR0502
PDF  7 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  DFROBOT [DFROBOT]
홈페이지  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0502 데이터시트(HTML) 5 Page - DFROBOT

  DFR0502 Datasheet HTML 1Page - DFROBOT DFR0502 Datasheet HTML 2Page - DFROBOT DFR0502 Datasheet HTML 3Page - DFROBOT DFR0502 Datasheet HTML 4Page - DFROBOT DFR0502 Datasheet HTML 5Page - DFROBOT DFR0502 Datasheet HTML 6Page - DFROBOT DFR0502 Datasheet HTML 7Page - DFROBOT  
Zoom Inzoom in Zoom Outzoom out
 5 / 7 page
background image
Sample Code
/*!
* file motor.ino
* brief Show Show The motor turns clockwise or counterclockwise.
* Copyright
[DFRobot](http://www.dfrobot.com)
* Copyright GNU Lesser General Public License
*
* @author [DongZi](dongzi.liu@dfrobot.com)
* version
V1.0
* date
2017-07-05
*/
void setup() {
pinMode(4,OUTPUT);
/* define
pin (4,5,6,7) out*/
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
}
void motor_c(char motor_n,char direction_m,int speed_m ) /* motor_n: the moto
r number to drive(0 stands for M1;1 stands for M2)*/
/* direction_m : the motor rotary direction(0 is clockwise and 1 is counter-c
lockwise).*/
/* speed_m: to control the motor rotation speed(from 0 to 255 ), the speed_m
value is larger, the rotation speed is faster;*/
{
if(motor_n==1)
{
if(direction_m==1)
{digitalWrite(4,HIGH);
// pin 4 controls M2 rotary direction analo
gWrite(5,speed_m);
//pin 5 controls M2 rotation speed
}
else
{digitalWrite(4,LOW);
analogWrite(5,speed_m);
}
}
else
{



Html Pages

1 2 3 4 5 6 7


데이터시트 다운로드

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