Arduino Motor/Stepper/Servo Shield for Arduino
¾ÆµÎÀÌ³ë ¿ì³ë R3 / ¾ÆµÎÀÌ³ë ¸Þ°¡ 2560 º¸µå¿¡ ÀûÃþÇüÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ´Â ¸ðÅÍ ½ÇµåÀÔ´Ï´Ù.
¼º¸ ¸ðÅÍ / DC ¸ðÅÍ / ½ºÅ×ÆÛ ¸ðÅÍ »ç¿ëÇϱâ À§ÇÑ ½¯µåÀÔ´Ï´Ù.
DC ¸ðÅÍ´Â 4°³¸¦ ±¸µ¿ÇÒ ¼ö ÀÖ½À´Ï´Ù. ½ºÅ×ÆÛ ¸ðÅÍ´Â 2 °³, ÇÊ¿ä¿¡ µû¶ó ¿ÞÂÊ »ó´ÜÀÇ ¼º¸ ¸ðÅÍ Æ÷Æ®¿¡
¼º¸ ¸ðÅÍ 2 °³ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
DC ¸ðÅÍ´Â ¾Æ·¡ÀÇ Ç¥½ÃµÈ A,B ¿¡ ¿¬°áÇÏ¿© »ç¿ëµË´Ï´Ù.
½ºÆå Á¤¸®.
Multi-Motor Driver Shield (2-L293D)
- Four H-Bridges: Two L293D Motor driver chips
- L293D is rated at 0.6A per bridge (1.2A peak) with thermal shutdown protection, internal kickback protection diodes.
- Motor Voltages from 4.5VDC to 16VDC. (up to 36V if C6 and C7 are upgraded)
- Up to 4 bi-directional DC motors with individual 8-bit speed selection (256 speeds)
- Up to 2 stepper motors (unipolar or bipolar)
- Pull down resistors keep motors disabled during power-up
- Separate Logic and Motor power connections
- Terminal block connectors for motors and power
- 2 connections for 5V 'hobby' servos
AccelStepper Driver Library HERE:
How-To and Examples from Lady ADA HERE:
¾ÆµÎÀÌ³ë ¸ðÅͽǵå ÀÚ·á »çÀÌÆ®
--> http://playground.arduino.cc/Main/AdafruitMotorShield
--> ¶óÀ̺귯¸® & ¿¹Á¦ ´Ù¿î·Îµå
À§ÀÇ ¶óÀ̺귯¸®¸¦ ½ºÄÉÄ¡ IDE ¶óÀ̺귯¸® µð·ºÅ丮¿¡ ¼³Ä¡( º¹»ç ) ¸¦ ÇØÁÝ´Ï´Ù.
½ºÄÉÄ¡ ¿¹Á¦ ÄÚµå
DC ¸ðÅÍ ÀÛµ¿ Çϱâ À§Çؼ´Â AF_DCMotor ¶ó´Â Ŭ·¡½º¸¦ »ç¿ëÇÕ´Ï´Ù.
DC ¸ðÅÍ ÀÛµ¿ µÇ±â À§Çؼ´Â PCÀÇ USB ¿¬°á Àü¿øÀ¸·Î¸¸ Á¤È®ÇÑ Å×½ºÆ®°¡ ¾ÈµË´Ï´Ù.
¾ÆµÎÀÌ³ë ¿ì³ë R3 º¸µåÀÇ DC Jack 9V ( 7V ÀÌ»ó - DC ¸ðÅÍ 2°³ Á¤µµ ¿¬°á½Ã ) ¿¬°á ÇØÁÖ¾î¾ß ÇÕ´Ï´Ù.
¶Ç´Â 293D ½ÇµåÀÇ EXT_POWER Å͹̳Πºí·°¿¡ 9V Á¤µµ ÀÔ·ÂÇØÁÖ¸é Á¦´ë·Î ÀÛµ¿ µË´Ï´Ù.
DC ¸ðÅÍ 4°³ »ç¿ë ¿¹Á¦ÀÔ´Ï´Ù.
°¢°¢ÀÇ ¸ðÅÍ´Â À§ÀÇ À̹ÌÁöÀÇ A,B ¿¡ ¿¬°áÇØ ÁÖµµ·Ï ÇÕ´Ï´Ù.
// M 1 ¿¡ DC ¸ðÅÍ ¿¬°áµÈ °æ¿ì.
// M 2 ¿¡ DC ¸ðÅÍ ¿¬°áµÈ °æ¿ì.
// M 3 ¿¡ DC ¸ðÅÍ ¿¬°áµÈ °æ¿ì.
// M 4¿¡ DC ¸ðÅÍ ¿¬°áµÈ °æ¿ì.
AF_DCMotor motor1(1); //
AF_DCMotor motor2(2); //
AF_DCMotor motor3(3); //
AF_DCMotor motor4(4); //
void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("DC Motor 4 pcs test");
motor1.setSpeed(200); // ÃÖ´ë 255
motor2.setSpeed(200); // ÃÖ´ë 255
motor3.setSpeed(200); // ÃÖ´ë 255
motor4.setSpeed(200); // ÃÖ´ë 255
motor1.run(RELEASE); // Á¤Áö¿Í °°½À´Ï´Ù. DC ¸ðÅÍ Á¤Áö
motor2.run(RELEASE); // Á¤Áö¿Í °°½À´Ï´Ù. DC ¸ðÅÍ Á¤Áö
motor3.run(RELEASE); // Á¤Áö¿Í °°½À´Ï´Ù. DC ¸ðÅÍ Á¤Áö
motor4.run(RELEASE); // Á¤Áö¿Í °°½À´Ï´Ù. DC ¸ðÅÍ Á¤Áö
delay(2000);
}
// 1ÃÊ´Ù¸¶ 1°³¾¿ ¼øÂ÷ÀûÀ¸·Î ȸÀüÇغ¾´Ï´Ù.
void loop()
{
Serial.println("1");
motor1.run(FORWARD);
delay(1000);
motor1.run(RELEASE);
Serial.println("2");
motor2.run(FORWARD);
delay(1000);
motor2.run(RELEASE);
Serial.println("3");
motor3.run(FORWARD);
delay(1000);
motor3.run(RELEASE);
Serial.println("4");
motor4.run(FORWARD);
delay(1000);
motor4.run(RELEASE);
}