DFRobot DFR0004 Manual - Page 8

Browse online or download pdf Manual for Computer Hardware DFRobot DFR0004. DFRobot DFR0004 16 pages. Dfrduino romeo-all in one controller
Also for DFRobot DFR0004: Manual (13 pages), Manual (11 pages)

DFRobot DFR0004 Manual
2018/11/27

Dual DC Motor Speed Control

Hardware Setting

Connect four motor wires to Motor Terminal. And apply power through motor power terminal (Figure 4).
https://www.dfrobot.com/wiki/index.php/DFRduino_Romeo-All_in_one_Controller_V1.1(SKU:DFR0004)
DFRduino Romeo-All in one Controller V1.1(SKU:DFR0004) - DFRobot Electronic Product Wiki and Tutorial: Arduino and Robot Wiki-DFRobot.com
}
digitalWrite(13, LOW);
}
/ / C o n v e r t A D C v a l u e t o k e y n u m b e r
int get_key(unsigned int input)
{
int k;
(k = 0; k < NUM_KEYS; k++)
f o r
{
(input < adc_key_val[k])
i f
{
k;
r e t u r n
}
}
(k >= NUM_KEYS)
i f
k = -1;
/ / N o v a l i d k e y p r e s s e d
k;
r e t u r n
}
8/16