H-bridge
L293B : 모터 드라이버
Motor_control.ino
int ledPin = 9; // Motor driver connected to digital pin 6 int val = 0; // variable to store the read value int increment = 1; void setup() { pinMode(ledPin, OUTPUT); // sets the pin as output } void loop() { analogWrite(ledPin, val); // analogWrite values from 0 to 255 delay(5); val += increment; if(val >= 256 || val <= 0) increment *= -1; }