Arduino is an open-source electronics prototyping platform intended for artists, designers, hobbyists, and anyone interested in creating interactive objects. It uses a microcontroller board to sense environmental inputs through sensors and affect its surroundings using outputs like lights and motors. The board is programmed using the Arduino programming language and development environment on a computer. Common boards like the Arduino Uno contain an ATmega microcontroller, memory, and inputs/outputs that can be used to build a variety of projects.
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
175 views
Arduino Introduction
Arduino is an open-source electronics prototyping platform intended for artists, designers, hobbyists, and anyone interested in creating interactive objects. It uses a microcontroller board to sense environmental inputs through sensors and affect its surroundings using outputs like lights and motors. The board is programmed using the Arduino programming language and development environment on a computer. Common boards like the Arduino Uno contain an ATmega microcontroller, memory, and inputs/outputs that can be used to build a variety of projects.
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8
Introduction to Arduino
Arduino is an open-source electronics prototyping platform
based on flexible, easy-to use hardware and software. It’s intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. Arduino can sense the environment by receiving input from a variety of sensors and can affect its surroundings by controlling lights, motors, and other actuators. The microcontroller on the board is programmed using the Arduino programming language and the Arduino Development Environment. Arduino projects can be stand-alone, or they can communicate with software running on a computer. Arduino really simplifies the process of building projects on a microcontroller making it a great platform for amateurs. In addition to Arduino’s simplicity, it is also inexpensive, cross-platform and open source. The Arduino is based on Atmel’s ATMEGA8 and ATMEGA168 microcontrollers. The plans for the modules are published under a Creative Commons license, so experienced hobbyists and professionals can make their own version of the Arduino, extending it and improving it. What Is Inside an Arduino? Although there are many different types of Arduino boards available, this manual focuses on the Arduino Uno. • Processor: 16 Mhz ATmega328 • Flash memory: 32 KB • Ram: 2kb • Operating Voltage: 5V • Input Voltage: 7-12 V • Number of analog inputs: 6 • Number of digital I/O: 14 (6 of them pwm) The specs may seem meager compared to your desktop computer, but remember that the Arduino is an embedded device. Setting Up Your Arduino Installing the Arduino IDE on Windows Step 1: Download the Arduino software Go to http://arduino.cc/en/Main/S oftware and download the Arduino Software for your Windows. Step 2: Install the software Install the Drivers: • Plug in your board and wait for Windows to begin its driver installation process. After a few moments, the process will fail, despite its best efforts. • Click on the Start Menu, and open up the Control Panel. • While in the Control Panel, navigate to System and Security. Next, click on System. Once the System window is up, open the Device Manager. • Look under Ports (COM & LPT). You should see an open port named “Arduino UNO (COMxx)”. • Right click on the “Arduino UNO (COMxx)” port and choose the “Update Driver Software” option. • Next, choose the “Browse my computer for Driver software” option. • Finally, navigate to and select the Uno’s driver file, named “ArduinoUNO.inf”, located in the “Drivers” folder of the Arduino Software download. • Windows will finish up the driver installation from there. Installing the Arduino IDE on Ubuntu/ Linux Install gcc-avr and avr-libc from the Terminal. sudo apt-get install gcc-avr avr-libc If you don’t have openjdk-6-jre already, install and configure that too: sudo apt-get install openjdk-6-jre sudo update-alternatives --config java • Select the correct JRE if you have more than one installed. • Go to http://arduino.cc/en/Main/Software/ and download the Arduino Software for Linux. You can untar and run it with the following command: • tar xzvf arduino-x.x.x-linux64.tgz cd arduino-1.0.1 ./arduino Running the Arduino Software Now that our software is installed and our Arduino is setup, let’s verify everything is working. The easiest way to do this is by using the “Blink” sample application. 1. Open the Arduino Software by Double-clicking the Arduino Application (./arduino on Linux). 2. Make sure the board is still connected to your computer. 3. Open the LED blink example sketch: File > Examples > 1.Basics > Blink. You should see the code for the application open and it should look like this: 4. You’ll need to select the entry in the Tools > Board menu that corresponds to your Arduino. Select the Arduino Uno Option. 5. Select the serial device of the Arduino board from the Tools > Serial Port menu. On Windows, This is likely to be COM3 or higher. On the Mac or on Linux, this should be something with ‘/dev/tty.usbmodem ‘ in it. 6. Now, simply click the “Upload” button in the environment. Wait a few seconds - you should see the RX and TX LEDs on the Arduino flashing. If the upload is successful, the message “Done uploading.” will appear in the status bar.