Arduino Tutorial - Lesson 1 - Let there be blink! Ah yes, it is finally time to make your Arduino do something! We're going to start with the classic hello world! of electronics, a blinking light. This lesson will basically get you up and running using the Arduino software and uploading a sketch to the Arduino board. These instructions mostly show Windows software. Not much is needed for this lesson, just a USB cable and an Arduino. Make sure you've gone through Lesson 0 first! The first thing to do is download the Arduino software. Go to the Arduino Software Download page and grab the right file for your OS. The packages are quite large, 30-50 MB so it may take a while to finish Extract the package onto the Desktop Windows Mac OS X Double click the Arduino software icon To open up the workspace I think I get the red error text shown because I already have Arduino installed. The first step is to configure the Arduino software for the correct chip. If the text says ATMEGA8-16P then you have an atmega8 chip. Windows port selection
Arduino Tutorial - Lesson 2 - Modifying the first sketch OK you've gotten your Arduino set up and also figured out how to use the software to send sketches to the board. Next step is to start writing your own sketches. We'll start off easy by just modifying something that already works. To start we will venture deep into the Blink sketch, looking at each line and trying to understand what its doing. Then we will start hacking the sketch! Start up the Arduino software and open the Blink example sketch, as you did in Lesson 1. The sketch itself is in the text input area of the Arduino software. Sketches themselves are written in C, which is a programming language that is very popular and powerful. int ledPin = 13; void setup() { pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, HIGH); delay(1000); digitalWrite(ledPin, LOW); delay(1000); } Lets examine this sketch in detail starting with the first section: This is a comment, it is text that is not used by the Arduino, its only there to help humans like us understand whats going on.
Arduino Tutorial - Lesson 3 - Breadboards and LEDs You've started modifying sketches, and played a bit with the onboard LED (or if you have an NG, an LED you added). The next step is to start adding onto the hardware component of the Arduino. We will do this by adding a solderless breadboard to our setup, connecting up new parts with wire. Solderless breadboards are an important tool in your quest for electronics mastery. Basically, a chunk of plastic with a bunch of holes. In the images above you can see how there are two kinds of metal strips. In this lesson, we will show pictures of both the tiny breadboard on a protoshield and also using a 'standard' breadboard without a shield. Warning! Distressing as it may sound, solderless breadboards can be very flakey, especially as they age. To use the breadboard, you'll need jumper wires. Heres how to do it with just diagonal cutters...Cut the wire first, using wire cutters Nick the insulation, then pull it off. The resistor is the most basic and also most common electronic part. Look again!
Arduino Tutorial - Lesson 4 - Serial communication and playing with data Ah, Arduino, I remember when you were just crawling around and blinking LEDs. Now you're ready to learn how to speak! In this lesson we'll learn how to use the Serial Library to communicate from the Arduino board back to the computer over the USB port. Then we'll learn how to manipulate numbers and data. For this lesson we won't be using the shield, so simply remove it (keeping the mood light LEDs on it you'd like). The shield doesn't contain any programs or data, it is just our way of connecing up the LEDs and resistors. Libraries are great places, and not yet illegal in the United States! Software Libraries are very similar. The library we will be using is the Serial Library, which allows the Arduino to send data back to the computer: Serial may sound like a tasty breakfast food, but its actually quite different. Information is passed back & forth between the computer and Arduino by, essentially, setting a pin high or low. This is as good as Microsoft Visio can do, yay! So...click it!
Arduino Tutorial - Lesson 5 We've done a lot so far, blinking lights, printing messages...all of that stuff is output: signals coming from the Arduino. The next step is to start playing with input, with the Arduino responding to outside events. In this lesson we will begin with the most basic kind of input, a push-button switch! You're probably familiar with switches, there's tons of them in your house. One kind of switch you use every day is a light switch. On the left, the switch is open and no current flows. (thanks wikipedia!) In this photo, you can see the internals of a light switch. Light switches are great but we need something smaller. These little switches are a 1/4" on each side, cost about 25 cents, and can plug directly into a breadboard. Normally, the two wires are disconnected (normally open) but when you press the little button on top, they are mechanically connected. Find 5 things around the house that have switches. Power up the Arduino and try pressing the button. Switch capability Fig 5.2 Fig 5.4
Arduino Tutorial - Learn electronics and microcontrollers using Arduino! So, I get two or three emails a day, all basically asking the same thing: "Where can I learn about electronics?" In general, most of these people have seen some of my projects and want to be able to build similar things. Unfortunately, I have never been able to point them to a good site that really takes the reader through a solid introduction to microcontrollers and basic electronics. I designed this tutorial course to accompany the Arduino starter pack sold at the Adafruit webshop. The pack contains all the components you need (minus any tools) for the lessons Follow these lessons for happiness and prosperity. Lesson 0 Pre-flight check...Is your Arduino and computer ready? Here are some recommended tools: If you need to get any soldering done, you may also want.... All of the content in the Arduino Tutorial is CC 2.5 Share-Alike Attrib. Love it? To some extent, the structure of the material borrows from: The impressively good "What's a microcontroller?"
EAS 199A: Fall 2012 :: Using Arduino This page provides links to class notes and on line instructions for the Arduino microcontroller platform. All students in EAS 199A are required to purchase their own Arduino board, which is part of the Sparkfun Inventor's kit. The kit is available from the Textbook Information Desk at the PSU Bookstore. See below for advice on avoiding pin 0 and pin 1 for digital I/O. Arduino Home From the Arduino home page: Arduino is an open-source electronics prototyping platform based on flexible, easy-to-use hardware and software. On the Arduino web site you will find The getting started guide has detailed pages on installing the Arduino IDE: Install the Arduino IDE on Windows 7 ( the Arduino IDE on Mac OS X ( the Arduino IDE on Linux ( Manual for the Sparkfun Inventor's Kit Adafruit Tutorials Adafruit Industries designs and sells electronics kits and components.
effects-of-varying-i2c-pull-up-resistors Details Created: December 18 2010 Figure 1 I2C is a popular communication protocol in embedded systems. When interfacing with the slave device a pull-up resistor is needed on each bi-directional line. Since the Arduino is a popular micro-controller among hobbyists we'll use it for the following examples. We'll set up our oscilloscope to measure rise time, frequency and peak voltage. Let's take an initial reading using just the Arduino's internal pull-up resistors. Figure 2 As you can see in Figure 2, the signal eventually takes on a square shape which is what we like to see. Next, we'll use the same circuit, but this time let's switch from Standard mode to Fast mode (400kHz). Figure 3 the rise time is very slow with respect to the clock frequency. Figure 4