DFRobot DFRduino Romeo-All in one Controller V1.1 매뉴얼 - 페이지 6

{카테고리_이름} DFRobot DFRduino Romeo-All in one Controller V1.1에 대한 매뉴얼을 온라인으로 검색하거나 PDF를 다운로드하세요. DFRobot DFRduino Romeo-All in one Controller V1.1 13 페이지.

DFRobot DFRduino Romeo-All in one Controller V1.1 매뉴얼
}
digitalWrite(13, LOW);
}
// Convert ADC value to key number
int get_key(unsigned int input)
{
int k;
for (k = 0; k < NUM_KEYS; k++)
{
if (input < adc_key_val[k])
{
return k;
}
}
if (k >= NUM_KEYS)
k = -1;
// No valid key pressed
return k;
}
 
Dual DC Motor Speed Control
Hardware Setting
Connect four motor wires to Motor Terminal. And apply power through motor power terminal (Figure
4).
Fig3: Romeo Motor Connection Diagram