- Component:
- Video clip:
- Robot URL: http://arcbotics.com/products/hexy/
| Connected configuration (연결 상태) |
| |
| Turn off (LED 끄기) |
| Turn on (LED 켜기) |
// LED pin # int LED_pin = 3; // Switch pin# int switch_pin = 5; void setup() { // put your setup code here, to run once: pinMode(LED_pin, OUTPUT); pinMode(switch_pin, INPUT_PULLUP); }
- Simple Arduino code to operate a DC motor with the motor driver.
- 1개의 DC 모터를 구동시키기 위해 모터 드라이버를 이용하는 간단한 아두이노 코드.
int Enable_pin = 9;
int Phase_pin = 8;
void setup() {
// put your setup code here, to run once:
pinMode(Enable_pin, OUTPUT);
pinMode(Phase_pin, OUTPUT);
}