Getting Started with Carduino UNO R3

From ALSRobot-Wki
Jump to: navigation, search


Abcd5.jpg

Contents

Hello world

Generally, teacher will teach us to write a simple Hello World example when start to learn a programming language. This only a basic introductory,but it is a very important process. Although you are not familiar about Arduino, do not worry. You can learn the hello world about Arduino: light up a LED. Now we take Carduino UNO R3 as example to learn how to light up a LED which is controlled by Digital 13 pin. Before doing this, please make sure that you have downloaded the Arduino Environment and installed the Carduino Driver successfully.

Connect Carduino to PC

Connect the Carduino board to your computer using the USB cable. The green power LED (labeled PWR) should go on.

Open the Blink example

Open the LED blink example sketch: File->Examples->01.Basics->Blink.

Abcd1.jpg

Select your board

You'll need to select the entry in the Tools > Board menu that corresponds to your Arduino. 在Here we need to select ATmega328.


Abcd2.jpg

Select your Serial Port

Select the serial device of the Arduino board from the Tools | Serial Port menu.


Abcd3.jpg

Upload the program

Now, simply click the "Upload" button in the environment. Wait a few seconds - you should see the RX and TX leds on the board flashing. If the upload is successful, the message "Done uploading." will appear in the status bar.


Abcd4.jpg



Result

A few seconds after the upload finishes, you should see the pin 13 (L) LED on the board start to blink (in red). If it does, congratulations! You've gotten Arduino up-and-running.



Personal tools
Namespaces

Variants
Actions
Navigation
Tools