データシートサーチシステム
  Japanese  ▼
ALLDATASHEET.JP

X  

DFR0004 データシート(PDF) 8 Page - DFROBOT

部品番号 DFR0004
部品情報  DFRduino Romeo‐All in one Controller V1.1(SKU:DFR0004)
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
メーカー  DFROBOT [DFROBOT]
ホームページ  https://www.dfrobot.com/
Logo DFROBOT - DFROBOT

DFR0004 データシート(HTML) 8 Page - DFROBOT

Back Button DFR0004 Datasheet HTML 4Page - DFROBOT DFR0004 Datasheet HTML 5Page - DFROBOT DFR0004 Datasheet HTML 6Page - DFROBOT DFR0004 Datasheet HTML 7Page - DFROBOT DFR0004 Datasheet HTML 8Page - DFROBOT DFR0004 Datasheet HTML 9Page - DFROBOT DFR0004 Datasheet HTML 10Page - DFROBOT DFR0004 Datasheet HTML 11Page - DFROBOT DFR0004 Datasheet HTML 12Page - DFROBOT Next Button
Zoom Inzoom in Zoom Outzoom out
 8 / 13 page
background image
The PWM DC motor control is implemented by manipulating two digital IO pins and two PWM pins.
As illustrated in the diagram above (Figure 5), Pin 4,7 (7,8 for old Romeo version) are motor
direction control pins, Pin 5,6 (6,9 for old Romeo version) are motor speed control pins.
For previous Romeo board, the pins used to control the motor is Pin 7,8 (Direction), Pin 6,9 (Speed).
You can find the information at the right side of the Motor Control Pin Jumpers.
Sample Code:
//Standard PWM DC control
int E1 = 5;
//M1 Speed Control
int E2 = 6;
//M2 Speed Control
int M1 = 4;
//M1 Direction Control
int M2 = 7;
//M1 Direction Control
///For previous Romeo, please use these pins.
//int E1 = 6;
//M1 Speed Control
//int E2 = 9;
//M2 Speed Control
//int M1 = 7;
//M1 Direction Control
//int M2 = 8;
//M1 Direction Control
void stop(void)
//Stop
{
digitalWrite(E1,LOW);
digitalWrite(E2,LOW);
}
void advance(char a,char b)
//Move forward
{
analogWrite (E1,a);
//PWM Speed Control
digitalWrite(M1,HIGH);
analogWrite (E2,b);
digitalWrite(M2,HIGH);
}
void back_off (char a,char b)
//Move backward



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13


データシート ダウンロード

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