Open up your Arduino IDE and type in the code from Listing 2-1.
Listing 2-1. Code for Project 1
// Project 1 - LED Flasher
int ledPin = 10;
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}
Press the Verify/Compile button at the top of the IDE to make sure there are no errors in your code.
If this is successful, click the Upload button to upload the code to your Arduino. If you have done
everything right, you should now see the red LED...
Saturday, April 2, 2011
Project 1 – LED Flasher
Posted by rinson in: Arduino GEAR UP project 1
You are now going to work your way through the first four projects. These projects all use LED lights in
various ways. You will learn about controlling outputs from the Arduino as well as simple inputs such as
button presses. On the hardware side, you will learn about LEDs, buttons, and resistors, including pull
up and pull down resistors, which are important in ensuring that input devices are read correctly. Along
the way, you will...
Upload Your First Sketch
Posted by rinson in: Arduino basic Introduction
Now that you have installed the drivers and the IDE and you have the correct board and ports selected,it’s time to upload an example sketch to the Arduino to test that everything is working properly before
moving on to the first project.
First, click the File menu (Figure 1-10) and then click Examples.
SELECT A PROGRAM BLINK IN EXMPLE
Next, click the Upload button (sixth button from the left) and look at your Arduino. (If you have...
Getting Started with Arduino
Posted by rinson in: Arduino basic GEAR UP Introduction
This section will explain how to set up your Arduino and the IDE for the first time. The instructions forWindows and Macs (running OSX 10.3.9 or later) are given. If you use Linux, refer to the Getting Startedinstructions on the Arduino website at www.arduino.cc.playground/Learning/Linux. I will also presumeyou are using an Arduino Uno. If you have a different type of board, such as the Duemilanove (see Figure
1-4), then refer to the corresponding page in the Getting Started guide of the Arduino website.You will also need...
What Exactly is an Arduino? 3rd post
Posted by rinson in: ??? Arduino basic Introduction
The Arduino can also be extended with the use of shields, which are circuit boards containing otherdevices (e.g. GPS receivers, LCD Displays, Ethernet modules, etc.) that you can simply connect to the topof your Arduino to get extra functionality. Shields also extend the pins to the top of its own circuit boardso you still have access to all of them. You don’t have to use a shield if you don’t want to; you can make
the exact same circuitry using a breadboard, Stripboard, Veroboard, or by making your own PCB. Mostof the...
What Exactly is an Arduino? 2nd post
Posted by rinson in: Arduino basic Introduction
The Arduino board is made up of an Atmel AVR Microprocessor, a crystal or oscillator (a crude clockthat sends time pulses at a specified frequency to enable it to operate at the correct speed), and a 5-voltlinear regulator. Depending on what type of Arduino you have, it may also have a USB socket to connectto a PC or Mac for uploading or retrieving data. The board exposes the microcontroller’s I/O(input/output) pins so that you can connect those pins to other circuits or to sensors.The latest Arduino board, the Uno, differs...
What Exactly is an Arduino ?
Posted by rinson in: Arduino ? Arduino Pins basic Introduction
Figure 1-1. An Arduino Uno
Wikipedia states “An Arduino is a single-board microcontroller and a software suite for programming it.The hardware consists of a simple open hardware design for the controller with an Atmel AVR processorand on-board I/O support. The software consists of a standard programming language and the boot loader
that runs on the board.”To put that in layman’s terms, an Arduino is a tiny computer that you can...
Introduction To Arduino Project
Posted by rinson in: Arduino Introduction
Since the Arduino Project started back in 2005, over 150,000 boards have been sold worldwide to date.
The number of unofficial clone boards sold no doubt outweighs the official boards, thus it’s likely that
over half a million Arduino boards and its variants are out in the wild. Its popularity is ever increasing as
more and more people realize the amazing potential of this incredible open source project to create cool
projects quickly and easily with a relatively shallow learning curve
The biggest advantage of the Arduino...
About Arduino'S BIRTH
Posted by rinson in: basic history
Michael McRoberts discovered the Arduino in 2008 while looking forways to connect a temperature sensor to a PC to make a Cloud Detectorfor his other hobby of astrophotography. After a bit of research, the Arduinoseemed like the obvious choice, and the Cloud Detector was successfullymade, quickly and cheaply. Mike’s fascination with the Arduino had begun.Since then he has gone on to make countless projects using the Arduino.
He had also founded an Arduino starter kit and component online businesscalled Earthshine Electronics....