¥Û¡¼¥à > Arduino¥·¡¼¥ë¥É > Arduino Motor Shield¡Ê¥¢¥ë¥É¥¥¥¤¡¼¥Î¡¦¥â¡¼¥¿¥·¡¼¥ë¥É¡Ë
Arduino Motor Shield¡Ê¥¢¥ë¥É¥¥¥¤¡¼¥Î¡¦¥â¡¼¥¿¥·¡¼¥ë¥É¡Ë
3,300±ß(ÀÇ300±ß)
Arduino½ãÀµ¥â¡¼¥¿¥·¡¼¥ë¥É¤Ç¤¹¡£Arduino ¥â¡¼¥¿¥·¡¼¥ë¥É¤Ï¡¢¥Ç¥å¥¢¥ë¡¦¥Õ¥ë¥Ö¥ê¥Ã¥¸¥É¥é¥¤¥Ð¤ÎL298¤¬»ÈÍѤµ¤ì¤Æ¤ª¤ê¡¢¥ê¥ì¡¼¤ä¥½¥ì¥Î¥¤¥É¡¢DC¥â¡¼¥¿¡¢¥¹¥Æ¥Ã¥Ô¥ó¥°¥â¡¼¥¿¤Ê¤É¤¬¶îÆ°¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£Arduino¥Ü¡¼¥É¤Ç2¤Ä¤ÎDC¥â¡¼¥¿¤ò¶îÆ°¤Ç¤¡¢³Æ¥â¡¼¥¿¤Î¥¹¥Ô¡¼¥É¤ä²óžÊý¸þ¤òÀ©¸æ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¤Þ¤¿¡¢³Æ¥â¡¼¥¿¤ÎÅÅή¾ÃÈñ¤ò·×¬¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£TinkerKit¸ß´¹¤Î¤¿¤á¡¢Tinkerkit¥â¥¸¥å¡¼¥ë¤òÀܳ¤¹¤ë¤À¤±¤Ç¤¹¤°¤Ë»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ ¥Ç¥å¥¢¥ë¡¦¥Õ¥ë¥Ö¥ê¥Ã¥¸¥É¥é¥¤¥ÐL298¥Ç¡¼¥¿¥·¡¼¥È¡§ http://www.st.com/internet/com/TECHNICAL_RESOURCES/TECHNICAL_LITERATURE/DATASHEET/CD00000240.pdf ¡Ú¼ç¤ÊÆÃħ¡Û Æ°ºîÅÅ°µ:5V-12V ¥â¡¼¥¿¥³¥ó¥È¥í¡¼¥é:L298P¡Ê2¤Ä¤ÎDC¥â¡¼¥¿¤Þ¤¿¤Ï1¤Ä¤Î¥¹¥Æ¥Ã¥Ô¥ó¥°¥â¡¼¥¿¤òÀ©¸æ²Äǽ¡Ë ºÇÂçÅÅή:³Æ¥Á¥ã¥ó¥Í¥ë 2A ¤Þ¤¿¤Ï£´A¡Ê³°ÉôÅŸ»¡Ë ÅÅή¸¡½Ð:1.65V/A ¥Õ¥ê¡¼¥é¥ó¥¹¥È¥Ã¥×µ¡Ç½¤È¥Ö¥ì¡¼¥µ¡Ç½ EAGLE¥Õ¥¡¥¤¥ë¡§http://arduino.cc/en/uploads/Main/arduino_MotorShield_Rev3.zip ²óÏ©¿Þ¡§http://arduino.cc/en/uploads/Main/arduino_MotorShield_Rev3-schematic.pdf ¡ÚÅŸ»¤Ë¤Ä¤¤¤Æ¡Û Arduino¥â¡¼¥¿¥·¡¼¥ë¥É¤Ë¤Ï³°ÉôÅŸ»¤ò¤´»ÈÍѤ¯¤À¤µ¤¤¡£L298IC¤Ï¡¢¥í¥¸¥Ã¥¯ÍѤȥ⡼¥¿ÅŸ»¥É¥é¥¤¥ÐÍѤÎ2¤Ä¤ÎÅŸ»Àܳ¤¬¤¢¤ê¤Þ¤¹¡£É¬Íפʥ⡼¥¿ÅÅή¤Ï¡¢Â¿¤¯¤Î¾ì¹çUSB¤ÎºÇÂçÄê³ÊÅÅή¤òĶ¤¨¤Æ¤·¤Þ¤¤¤Þ¤¹¡£ ³°ÉôÅŸ»¡ÊÈóUSB¡Ë¤Ï¡¢AC¥¢¥À¥×¥¿¡¼¤Þ¤¿¤Ï¥Ð¥Ã¥Æ¥ê¤ò»ÈÍѤ¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥¢¥À¥×¥¿¤ÏÃæ¿´ÅŶˤ¬¡Ü¤Ç·Â2.1ФΥץ饰¤Î¤â¤Î¤òArduino¥Ü¡¼¥É¤ËÀܳ¤¹¤ë¤«¡¢¥¢¥À¥×¥¿¤Î¥±¡¼¥Ö¥ë¤òVin¤ÈGND¤Î¥¹¥¯¥ê¥å¡¼Ã¼»Ò¤ËÀܳ¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡Ê¶ËÀ¤Ë¤´Ãí°Õ¤¯¤À¤µ¤¤¡Ë¡£ Arduino¥Ü¡¼¥É¤Ø¤Î¥À¥á¡¼¥¸¤òÈò¤±¤ë¤¿¤á¤Ë¡¢ÅŸ»¤Ï£·V¤«¤é12V¤ÎÈϰϤǤ´»ÈÍѤ¯¤À¤µ¤¤¡£¤â¤·¥â¡¼¥¿¤Ë9V°Ê¾å¤¬É¬Íפʾì¹ç¡¢¥·¡¼¥ë¥É¤ÈArduino¥Ü¡¼¥É¤ÎÅŸ»¤òʬ¤±¤ë¤³¤È¤ò¤ª´«¤á¤·¤Þ¤¹¡£¤³¤ì¤Ï¥·¡¼¥ë¥É¤Î΢Ì̤ΡÖVin connect¡×¤Î¥¸¥ã¥ó¥Ñ¤òÀÚÃǤ¹¤ë¤³¤È¤Ç²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£¥¹¥¯¥ê¥å¡¼Ã¼»Ò¤ÎÀµ³Î¤Ê¸Â³¦¤Ï18V¤Ë¤Ê¤ê¤Þ¤¹¡£ ¡ÚÅŸ»¥Ô¥ó¤Ë¤Ä¤¤¤Æ¡Û Vin¡Ê¥¹¥¯¥ê¥å¡¼Ã¼»Ò¡Ë¡§¥·¡¼¥ë¥É¤ËÀܳ¤µ¤ì¤¿¥â¡¼¥¿¤ÎÆþÎÏÅÅ°µ¤È¤Ê¤ê¤Þ¤¹¡£Arduino¥Ü¡¼¥É¤Ë¤âÅŸ»¤ò¶¡µë¤·¤Þ¤¹¡£¡ÖVin connect¡×¤Î¥¸¥ã¥ó¥Ñ¤òÀÚÃǤ¹¤ë¤³¤È¤Ç¥â¡¼¥¿¤À¤±¤ÎÅŸ»¥é¥¤¥ó¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ GND¡Ê¥¹¥¯¥ê¥å¡¼Ã¼»Ò¡Ë¡§¥°¥é¥ó¥É¤Ç¤¹¡£ ¡ÚÆþÎϤȽÐÎϤˤĤ¤¤Æ¡Û A¤ÈB¤È¤¤¤¦Æó¤Ä¤Î¥Á¥ã¥ó¥Í¥ë¤ò»ý¤Ã¤Æ¤¤¤Þ¤¹¡£³Æ¥Á¥ã¥ó¥Í¥ë¤Ï£´¤Ä¤ÎArduino¥Ô¥ó¤ò»ÈÍѤ·¤Æ¤¤¤Þ¤¹¡£¤³¤Î¥·¡¼¥ë¥ÉÍѤ˷×8¤Ä¤Î¥Ô¥ó¤¬»ÈÍѤµ¤ì¤Æ¤¤¤Þ¤¹¡£2¤Ä¤ÎDC¥â¡¼¥¿¤òÀ©¸æ¤Ç¤¡¢¥Á¥ã¥ó¥Í¥ë¤ò¹ç¤ï¤»¤Æ£±¤Ä¤Îñ¶Ë¥¹¥Æ¥Ã¥Ô¥ó¥°¥â¡¼¥¿¤ò¶îÆ°¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£ ¥Á¥ã¥ó¥Í¥ëA¡§Êý¸þD12¡¢PWM D3¡¢¥Ö¥ì¡¼¥ D9¡¢ÅÅή¸¡½Ð A0 ¥Á¥ã¥ó¥Í¥ëB¡§Êý¸þD13¡¢PWM D11¡¢¥Ö¥ì¡¼¥ D8¡¢ÅÅή¸¡½Ð A1 ¤â¤·¥Ö¥ì¡¼¥¤äÅÅή¸¡½Ðµ¡Ç½¤¬É¬Íפʤ¯¡¢Â¿¤¯¤Î¥Ô¥ó¤ò»ÈÍѤ·¤¿¤¤¾ì¹ç¡¢¥·¡¼¥ë¥É¤Î΢Ì̤ˤ¢¤ë¥¸¥ã¥ó¥Ñ¡¼¤òÀÚÃǤ¹¤ë¤³¤È¤Ç¤³¤ì¤é¤Îµ¡Ç½¤ò̵¸ú¤Ë¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£ ¡Ú¥·¡¼¥ë¥É¾å¤Î¥½¥±¥Ã¥È¤Ë¤Ä¤¤¤Æ¡Û ¥¹¥¯¥ê¥å¡¼Ã¼»Ò¡§¥â¡¼¥¿¤äÅŸ»¤òÀܳ¤·¤Þ¤¹¡£ Çò¿§Tinkerkit¥³¥Í¥¯¥¿ 2¤Ä¡§¥¢¥Ê¥í¥°ÆþÎϤÎA2¤ÈA3¤ËÀܳ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¥ª¥ì¥ó¥¸¿§Tinkerkit¥³¥Í¥¯¥¿ 2¤Ä¡§¥¢¥Ê¥í¥°½ÐÎÏÍѤÇPWM½ÐÎϤÎD5¤ÈD6¤ËÀܳ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ Çò¿§£´Pin¡¡Tinkerkit¥³¥Í¥¯¥¿ £²¤Ä¡§TWI¥¤¥ó¥¿¥Õ¥§¡¼¥¹¡£ÆþÎÏÍѤȽÐÎÏÍÑ¡£ ¡Ú¥â¡¼¥¿Àܳ¤Ë¤Ä¤¤¤Æ¡Û ¥Ö¥é¥·DC¥â¡¼¥¿¡§¥Á¥ã¥ó¥Í¥ëA¤ÈB¤Î³Æ¥¹¥¯¥ê¥å¡¼Ã¼»Ò¤Î(¡Ü)(¡Ý)¤Ë¥Ö¥é¥·DC¥â¡¼¥¿¤òÀܳ¤¹¤ë¤³¤È¤ÇÀ©¸æ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£DIR A¥Ô¥ó(D12)¤ÈDIR B¥Ô¥ó(D13)¤òHIGH¤Þ¤¿¤ÏLOW¤Ë¤¹¤ë¤³¤È¤Ç²óžÊý¸þ¤òÀ©¸æ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£PWM A¥Ô¥ó(D3)¤ÈPWM B¥Ô¥ó(D11)¤Î¥Ç¥å¡¼¥Æ¥£Èæ¤òÊѤ¨¤ë¤³¤È¤Ç¥¹¥Ô¡¼¥É¤òÀ©¸æ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£¥Ö¥ì¡¼¥A¥Ô¥ó(D9)¤È¥Ö¥ì¡¼¥B¥Ô¥ó(D8)¤òHIGH¤Ë¥»¥Ã¥È¤¹¤ë¤ÈDC¥â¡¼¥¿¤ò¸ú²ÌŪ¤Ë¥Ö¥ì¡¼¥¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£SNS 0¥Ô¥ó(A0)¤ÈSNS 1¥Ô¥ó(A1)¤Ë¤è¤êDC¥â¡¼¥¿¤Ëή¤ì¤ëÅÅή¤ò·×¬¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£·×¬¤µ¤ì¤ëÅÅή¤Ï¡¢½ÐÎϤµ¤ì¤ëÅÅ°µ¤ËÈæÎ㤷¤Æ¤¤¤ë¤¿¤á¡¢Ä̾ï¤Î¥¢¥Ê¥í¥°ÆþÎϤÈƱÍͤËanalogRead()´Ø¿ô¤òÍѤ¤¤Æ³Îǧ¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£2A¤¬Î®¤ì¤¿¾ì¹ç¡¢3.3V¤È¤Ê¤ë¤è¤¦¤ËÄ´À°¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ ¡Ú·Á¾õ¤Ê¤É¤ÎÆÃħ¡Û Arduino¥â¡¼¥¿¥·¡¼¥ë¥É¤Î¥µ¥¤¥º¤Ï¡¢2.7¥¤¥ó¥Á(6.858Ñ)¤È2.1¥¤¥ó¥Á(5.334Ñ)¤Ç¤¹¡£4¤Ä¤Î·ê¤Ë¤è¤ê¥±¡¼¥¹¤äÊ¿Ì̤ˤͤ¸»ß¤á¤¹¤ë¤³¤È¤¬²Äǽ¤Ç¤¹¡£¥Ç¥¸¥¿¥ë¥Ô¥ó£·¤È8¤Î´Ö¤Ï¡¢0.4ФۤÉÎ¥¤ì¤Æ¤¤¤Þ¤¹(0.254ÐÇܤε÷Î¥¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó¡£)¡£ ËÜÀ½ÉʤˤĤ¤¤Æ¤ÎÄɲþðÊ󡦾ܺپðÊó¤Ï²¼µ¥Ú¡¼¥¸(±Ñ¸ì)¤ò¤´Í÷¤¯¤À¤µ¤¤¡£ http://arduino.cc/en/Main/ArduinoMotorShieldR3