Presentation is loading. Please wait.

Presentation is loading. Please wait.

Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.

Similar presentations


Presentation on theme: "Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications."— Presentation transcript:

1 Arduino

2 What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications. Programmed with a Processing- based IDE in Wiring (similar to C++)

3 Specs! Arduino Duemilanove – ATmega328 Microcontroller – Digital I/O Pins: 14 – Analog Input Pins: 6 – Flash Memory: 16KB – Clock Speed: 16 MHz

4 What you can do Power/Blink an LED Read a potentiometer or other sensor Power a Servomotor Control other chips Much more stuff in playground EMF Detection: http://youtube.com/watch?v=y1Bke3750WE http://youtube.com/watch?v=y1Bke3750WE Will put links to these on cookbook

5 How To Program Plugs into your computer via USB Driver should install automatically Download most recent software kit from arduino.cc/ and unzip. Run Arduino executable Make sure in “Tools” that the correct board and serial port is selected When done writing code, push upload to send to your board (this does not save to computer)

6 Sample Program: Blink /* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(13, LOW); // set the LED off delay(1000); // wait for a second }

7 Extended Information: I 2 C Devices Using the Arduino Wire Library, you can communicate with I 2 C Chips (cheapest) Hardest part is hooking up Arduino to the chip. Need to be able to connect all the contacts together. Then you need to understand what information the chip wants. Once you have this, its trivial to interface with Arduino.

8 I 2 C Example #include //Wire I2C library... Wire.beginTransmission(0x2C); // Wire.send(0x00); //Instruction byte. Wire.send(243); //Value set Wire.endTransmission(); …

9 Any Questions?


Download ppt "Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications."

Similar presentations


Ads by Google