Arduino Y¨²nºÍArduino DueÖ÷°å¿ª·¢±ØÐëÏÂÔØarduino1.5.5-r2¡£arduino¹Ù·½ÍƳöµÄÒ»¸ö¼¯³É¿ª·¢»·¾³¡£ÊÇÓÉJava¡¢Processing¡¢ avr-gccµÈ¿ª·ÅÔ´ÂëµÄÈí¼þд³É¡£Arduino IDE½çÃæÓѺã¬Óï·¨¼òµ¥£¬¶ÔÓÚ³õѧÕßÀ´Ëµ¼«Ò×ÕÆ¿Ø¡£ÔÚ¿ª·¢·½Ê½ÉÏʹµÃArduinoµÄ³ÌÐò¿ª·¢±äµÃ·Ç³£±ã½Ý£¬¿ª·¢Õß¿ÉÒÔ¸ü¼Ó¹Ø×¢´´ÒâÓëʵÏÖ£¬¸ü¿ìµÄÍê³É×Ô¼ºµÄÏîÄ¿¿ª·¢£¬´ó´óµÄ½ÚÔ¼ÁËѧϰµÄ³É£¬Ëõ¶ÌÁË¿ª·¢µÄÖÜÆڳɱ¾¡£
arduino ide 1.5 ´ÓÃüÁîÐе÷Óãº
ÕâÒ»²¿·Ö˵һÏ£¬ÈçºÎÓà Arduino IDE 1.5 ´ÓÃüÁîÐÐÉÏÆô¶¯±àÒë¡£ Õâ¸ö¹¦ÄÜ»áÔÚ 1.5.2 beta °æ±¾·¢²¼µÄʱºò¼ÓÈë¡£
ÃüÁî¸ñʽ
arduino [¨Cboard <°ü:Ìåϵ½á¹¹:°å×Ó>] [¨Cport <¶Ë¿ÚÃû³Æ>] [-v|¨Cverbose] [¨Cupload] [¨Cverify] /Äã/Îļþ/µÄ·¾¶/sketch.ino
¨Cboard °ü:Ìåϵ½á¹¹:°å×Ó : ͨ¹ý¡°°ü¡±£¬¡°Ìåϵ½á¹¹¡±£¬¡°°å×Ó¡±ÈýÔª×éÖ¸¶¨Ò»¿é°å×Ó¡£
uno ±íʾ Arduino Uno
atmega328diecimila ±íʾ Arduino Duemilanove or Diecimila
mega2560 ±íʾ Arduino Mega2560
arduino_due_x_dbg: ±íʾ Arduino Due (Programming Port)
avr ÓÃÓÚËùÓлùÓÚ AVR µÄ°å×Ó(Ïñ Uno, Mega »ò Leonardo)
sam ÓÃÓÚ 32 λµÄ»ùÓÚ SAMµÄ°å×Ó(Ïñ Arduino Due)
¡°°ü¡±ÊÇ´ò°üÕß»òÕß³§¼ÒµÄ±êʶ(hardwareĿ¼ÖеÚÒ»²ãÎļþ¼Ð)¡£Èç¹ûÄãûÓа²×°ÆäËûµÚÈý·½°ü1)Óà arduino ¡£
¡°Ìåϵ½á¹¹¡±¿ÉÒÔÖ¸¶¨ÈκΰüÄÚµÄÌåϵ½á¹¹(hardwareĿ¼Öеڶþµ¼Îļþ¼Ð)£¬ÀýÈ磬arduino °ü¾ÍÓУº
¡°°å×Ó¡±ÊÇʹÓõİå×ӵıêʶ£¬ÔÚÌåϵ½á¹¹Îļþ¼ÐÖÐµÄ boards.txt ÎļþÖж¨Ò壬ÀýÈ磺
¨Cport portname : Ö¸¶¨Ö´ÐÐÉÏ´«µÄ´®¿Ú¡£
-v »òÕß ¨Cverbose : ±àÒëÉÏ´«Ê±¡°´ò¿ª¡±Ïêϸ(verbose)ģʽ¡£
¨Cupload : ±àÒë sketch ²¢ÉÏ´«µ½°å×Ó¡£
¨Cverify : Ö»ÊDZàÒëÈ»ºóÍ˳ö¡£
ÃüÁî·µ»ØÖµ
Arduino IDE ϵͳ·µ»ØÖµ£º
0£º³É¹¦
1£º±àÒë»òÕßÉÏ´«Ê§°Ü
2£ºÎ´ÕÒµ½Sketch
¾ÙÀý
ÓÃÉÏÒ»´ÎµÄÅäÖÃ(°å×Ó£¬´®¿Ú)±àÒë²¢ÉÏ´« sketch :
arduino --upload /path/to/sketch/sketch.ino
±àÒë²¢ÉÏ´« sketch µ½½ÓÔÚ /dev/ttyACM0 ¶Ë¿ÚÉ쵀 Arduino Uno °å×Ó :
arduino --board arduino:avr:uno --port /dev/ttyACM0 --upload /path/to/sketch/sketch.ino
Arduino Y¨²nÖ÷°å£º
Arduino Y¨²nÊÇÒÔArduino Leonardo (ATmega32U4)Ϊ»ù´¡¡¢ÄÚǶ¶ÀÁ¢µÄAR9331ÎÞÏß·ÓÉ´¦ÀíÆ÷Ëù×é³ÉµÄÒ»¸ö¾ßÓÐWifi¹¦ÄܵÄ΢¿ØÖÆÆ÷£¬Ò²ÊÇArduino¼Ò×åÖÐÊ׸öWifiϵµÄ³ÉÔ±£¬½«Ç¶ÈëʽLinux×°Öá¢ArduinoºÍWiFi´«ÊäÆ÷ÒÔ¼°ÆäËüÍØÕ¹°åÈ«²¿ÕûºÏµ½Ò»¸ö¿ª·¢°åÉÏ¡£
Õâ¿î¿ª·¢°å¾ÍÏñÊÇÔÚArduino LeonardoÉÏÌí¼ÓÁËÒÔLinuxΪ»ù´¡µÄÎÞÏßWifiÄ£¿é¡£Ö÷Ìå¹¹ÔìºÍArduino LeonardoµÄÏàͬ£¬µ«ÄÚǶÁËÒ»¿éATmega32U4¾§Æ¬£¬¿ÉÒÔͨ¹ýUSB¶Ë¿ÚÀ´×«Ð´³Ìʽ¡£
¶øArduino Y¨²n¼ÛÖµ×î´óµÄ²¿·Ö¾ÍÔÚÓÚAtheros AR9331¾§Æ¬£¬ÕâʹµÃÈËÃÇ¿ÉÒÔÔÚÕâ¿é¿ª·¢°åÉÏʹÓÃLinuxϵͳ£¬¶øÎÒÃÇ×î¸ÐÐËȤµÄÊÇ AR9331¾§Æ¬Óë32U4¾§Æ¬µÄ¼æÈÝÐÔ
Arduino DueÖ÷°å
Ä¿Ç°Êг¡ÉÏ¿ª·¢Ö÷°åÒѾºÜ¶à£¬±È½ÏÁ÷ÐеÄÓÐArduinoºÍRaspberry Pi£¬ÉõÖÁ¶¼ÒѾ½øÈëУ԰³ÉΪ½Ìµ¼Ñ§Éúѧϰµç×Ӻͱà³ÌµÄ×î¼Ñʵ¼ù½Ìѧ¹¤¾ß¡£²»¹ýÏà¶ÔÀ´ËµÕâЩÖ÷°åÔÚÅäÖ÷½Ãæ²¢²»ÊÇÏ൱µÄÇ¿º·£¬¶øArduino Due¾ÍÊÇÒò´Ë¶øÉè¼Æ³öÀ´¡£Õâ¿îеĿª·¢Ì×¼þÊÛ¼ÛΪ$49, ²ÉÓÃ32-bit Cortex-M3¼Ü¹¹£¬Ê±ÖÓƵÂÊΪ84MHz£¬Ìæ´úÁË֮ǰµÄ8-bit 16MHzµÄATmega328΢¿Ø´¦ÀíÆ÷£¬Í¬Ê±º¸ÇÁËÒ»¸öUSB 2.0½Ó¿ÚÄܹ»Á¬½ÓÊó±ê£¬¼üÅÌ£¬ÉãÏñÍ·µÈUSB²úÆ·¡£
¸ÃÖ÷°åÐÔÄܵĴó·ù¶ÈÌáÉýΪ²úÆ·ÌṩÁ˸ü¶à¿ÉÄÜ£¬Ö®Ç°°æ±¾µÄADCËÙ¶ÈÄܹ»´ïµ½15ksps£¨Ã¿Ãë1000¸ö²ÉÑù£©£¬Ð²úÆ·ÒѾÄܹ»´ïµ½1000ksps£¬ÊÇ֮ǰ²úÆ·µÄºÃ¶à±¶¡£