Sunday, February 28, 2010

006: Sketch Folders


I have putArduino Sketch folders on my USB pen drive, my H:\ Drive in class, and the hard drive of my netbook. I hope I don't get too confused!

(update: I have got confused, and keep losing sketches - either it is because of the bad H:\ drive mapping in D208 or I am closing the Arduino environment without saving for some reason.)

007: Blink Sketch

Here is the original Blink sketch. I copied it straight out of the Examples folder from within the Arduino environment. I changed the formatting because I don't like the provided brace indenting:


/*
Blink

Turns on an LED on for one second, then off for one second, repeatedly.

The circuit:
* LED connected from digital pin 13 to ground.

* Note: On most Arduino boards, there is already an LED on the board connected to pin 13, so you don't need any extra components for this example.


Created 1 June 2005
By David Cuartielles

http://arduino.cc/en/Tutorial/Blink

based on an orginal by H. Barragan for the Wiring i/o board

*/

int ledPin = 13; // LED connected to digital pin 13

// The setup() method runs once, when the sketch starts

void setup()
{
// initialize the digital pin as an output:
pinMode(ledPin, OUTPUT);
}

// the loop() method runs over and over again,
// as long as the Arduino has power

void loop()
{
digitalWrite(ledPin, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // set the LED off
delay(1000); // wait for a second
}

Thursday, February 25, 2010

005: Arduino YouTube Clips

Here are some links to Arduino applications that tickled my fancy:

Here is a link to an Arduino Drumkit. I am not yet sure what is going on because I have not listened to the audio (forgot my headphones.)

Here is a single-octave, chromatic Arduino Keyboard. It is a bit buzzy, but I like it because it is self-contained.

Here is an Arduinocaster Electric Guitar (although I would have preferred an ArduinoSG :-) If I thought it could teach me to play, I might build one.



This is my favourite: Using an Arduino to hack a guitar pedal. I have an old Zoom 1010 guitar pedal, whose user interface and sound quality are not much nicer than the Arduino's.

Thursday, February 18, 2010

My Arduino Chip

According to the engraving, my Arduino board is a Duemilanove with an ATMega328P-PU chip.

Here is a link to the specification sheet for the AT328:

ATMega328 Datasheet

It is 555 pages long, so here is a link to the 32-page summary sheet:

ATMega328 Summary Datasheet

Atmel Site

Here is a link to the Atmel site:

Atmel site

My friend Terry tells me that Atmel gear is not nearly as good as PicAxe gear:

PicAxe site

but I don't know much about hardware, so I can't say.

Picture of an Arduino


Here is a picture of an Arduino, I am not sure what version.
This particular Arduino is running a Theremin, which is an early type of electronic musical instrument - when I was a boy in the 1960s, the scary theme tune for Doctor Who (in black and white) was played on a Theremin.
Here is a link to the site providing the picture:

Hello World!

This is my blog for the Embedded Systems course.

Here are some important links relating to the course:

Peter's Course Blog

002, 003: Contacts for the Embedded class

001: This Blog

Peter's Chip8 Blog

Arduino Website

Arduino Website Forum

MindKits Web Site