Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Arduino Development Environment Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic Engineering National Kaohsiung University of Applied Sciences, Taiwan
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan2 Installing Arduino Software Download arduino r2 from o r2-windows.exe, local copy o r2-windows.exelocal copy Run arduino r2-windows.exe arduino.exe is the main program Drivers in directory “…\Arduino\drivers” Examples in directory “…\Arduino\examples”
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan3
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan4
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan5
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan6 Installing USB-to-RS232 Driver Plug in Arduino MEGA 2560 Manually install the drive from “…\Arduino\drivers” Check assigned COM port from 控制台 硬體和音效 裝置管理員 連接埠 (COM 和 LPT)
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan7
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan8 Configure Board and COM Port Select Tools Board Arduino Mega 2560 Select Tools Serial Port assigned COM port
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan9
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan10 User Interface Verify sketch (program) Verify and upload sketch Serial 0 monitor Close Open
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan11 Sample Program – Hello, Arduino! void setup() { Serial.begin(9600); } void loop() { Serial.println("Hello, Arduino!"); delay(500); }
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan12
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan13
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan14
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan15 Sample Program – Flash LED int LED = 13; void setup() { pinMode(LED,OUTPUT); } void loop() { digitalWrite(LED,HIGH); delay(500); digitalWrite(LED,LOW); delay(500); }
Autumn, 2014C.-S. Shieh, EC, KUAS, Taiwan16