Download Print this page

Oomlout ARDX Experimenter's Manual

Arduino experimentation kit

Advertisement

Quick Links

(ARDX)
arduino experimentation kit
Arduino
Experimenter's
Guide
(ARDX)

Advertisement

loading

Summary of Contents for Oomlout ARDX

  • Page 1 (ARDX) arduino experimentation kit Arduino Experimenter’s Guide (ARDX)
  • Page 2 If you encounter any problems, want to ask a question, or would like to know more about any part, extra help is only an e-mail away help@oomlout.com. About Open Source Hardware All of .:oomlout:.'s projects are open source.
  • Page 3: Before We Start

    TBCN .: Where to Find Everything :. table of contents Before We Start {ASEM} Assembling the Pieces {INST} Installing the Software {PROG} A Small Programming Primer {ELEC} A Small Electronics Primer The Circuits {CIRC01} Getting Started - (Blinking LED) {CIRC02} 8 LED Fun - (Multiple LEDs) {CIRC03} Spin Motor Spin - (Transistor and Motor) {CIRC04} A Single Servo - (Servos) {CIRC05} 8 More LEDs - (74HC595 Shift Register)
  • Page 4 01 ASEM .: Putting It Together :. assembling the pieces Arduino Arduino Holder Breadboard 3mm x 10mm bolt 3mm nut .: For an introduction to what an Arduino is visit :. .: http://tinyurl.com/9txjmh :.
  • Page 5: Step 1: Download The Software

    .: Installing the IDE :. 02 INST installing This is the program used to write programs for the Arduino (meta?). (software and hardware) It may seem a little daunting at first but once you have it installed and start playing around, its secrets will reveal themselves Step 1: Download the software Goto http://arduino.cc/en/Main/Software...
  • Page 6 03 PROG .: A Small Programming Primer:. programming primer Arduino Programming in Brief The Arduino is programmed in the C language. This is a quick little primer targeted at people who have a little bit of programing experience and just need a briefing on the ideosyncrocies of C and the Arduino IDE.
  • Page 7: Comparison Operators

    03 PROG .:For a full programming reference visit:. programming http://tinyurl.com/882oxm primer Maths Operators = (assignment) makes something equal to something else (eg. x = Operators used for 10 * 2 (x now equals 20)) manipulating numbers. % (modulo) gives the remainder when one number is divided by another (ex.
  • Page 8: Component Details

    If at any point you are worried about how a component is used or why its not working the internet offers a treasure trove of advice, or we can be contacted at help@oomlout.com Component Details What it Does: No.
  • Page 9 04 ELEC electronics Component Details (cont.) primer Piezo Element What it Does: No. of Leads: A pulse of current will cause it to click a stream of pulses will cause it to emit a tone. Things to watch out for: Identifying: - Difficult to misuse.
  • Page 10 .:Getting Started:. CIRC-01 .:(Blinking LED):. What We’re Doing: LEDs (light emitting diodes) are used in all sorts of clever things which is why we have included them in this kit. We will start off with something very simple, turning one on and off, repeatedly, producing a pleasant blinking effect.
  • Page 11 180 degrees. back to you as soon as we can. (no need to worry, installing it can change this in help@oomlout.com backwards does no permanent tools>serial port> harm) Making it Better Changing the pin:...
  • Page 12 .:8 LED Fun:. CIRC-02 .:Multiple LED’s:. What We’re Doing: We have caused one LED to blink, now its time to up the stakes. Lets connect eight. We'll also have an opportunity to stretch the Arduino a bit by creating various lighting sequences. This circuit is also a nice setup to experiment with writing your own programs and getting a feel for how the Arduino works.
  • Page 13 Code CIRC-02 no need to type everything in just) Download the Code from ( http://tinyurl.com/dkpxbn ) (and then copy the text and paste it into an empty Arduino Sketch) //LED Pin Variables * will then turn them off int ledPins[] = {2,3,4,5,6,7,8,9}; //An array to hold the void oneAfterAnotherNoLoop(){ //pin each LED is connected to...
  • Page 14 .:Spin Motor Spin:. CIRC-03 .:Transistor & Motor:. What We’re Doing: The Arduino's pins are great for directly controlling small electric items like LEDs. However, when dealing with larger items (like a toy motor or washing machine), an external transistor is required. A transistor is incredibly useful.
  • Page 15 CIRC-03 Code (no need to type everything in just) Download the Code from ( http://tinyurl.com/dagyrb ) (then simply copy the text and paste it into an empty Arduino Sketch) int motorPin = 9; //pin the motor is connected to void setup() //runs once void motorOnThenOffWithSpeed(){ int onSpeed = 200;// a number between pinMode(motorPin, OUTPUT);...
  • Page 16 .:A Single Servo:. CIRC-04 .:Servos:. What We’re Doing: Spinning a motor is good fun but when it comes to projects where motion control is required they tend to leave us wanting more. The answer? Hobby servos. They are mass produced, widely available and cost anything from a couple of dollars to hundreds.
  • Page 17 Code CIRC-04 (no need to type everything in just) File > Examples > Servo > Sweep (example from the great arduino.cc site check it out for other great ideas) // Sweep // by BARRAGAN <http://barraganstudio.com> #include <Servo.h> Servo myservo; // create servo object to control a servo int pos = 0;...
  • Page 18 .:8 More LEDs:. CIRC-05 .:74HC595 Shift Register:. What We’re Doing: Time to start playing with chips. Or integrated circuits (ICs) as they like to be called. The external packaging of a chip can be very deceptive for example the chip on the Arduino board (a micro controller) and the one we will use in this circuit (a shift register) look very similar but are in fact rather different, for example the price of the Atmega chip on the arduino board is a few dollars while the 74hc595 is a couple dozen cents.
  • Page 19 Making it Better milliseconds to delay Doing it the hard way: //between LED updates An Arduino makes rather complex actions very easy, shifting out data for(int i = 0;...
  • Page 20 .:Music:. CIRC-06 .:Piezo Elements:. What We’re Doing: To this point we have controlled light, motion, and electrons, Lets tackle sound next. But sound is an analog phenomena, how will our digital Arduino cope? We will once again rely on its incredible speed which will let it mimic analog behavior.
  • Page 21 Code CIRC-06 (no need to type everything in just) File > Examples > Digital > Melody (example from the great arduino.cc site check it out for other great ideas) /* Melody * (cleft) 2005 D. Cuartielles for K3 * This example uses a piezo speaker to play melodies. It sends digitalWrite(speakerPin, LOW);...
  • Page 22 .:Button Pressing:. CIRC-07 .:Pushbuttons:. What We’re Doing: Up to this point we have focused entirely on outputs, time to get our Arduino to listen, watch and feel. We'll start with a simple pushbutton. Wiring up the pushbutton is simple. There is one component, the pull up resistor, that might seem out of place.
  • Page 23 Code CIRC-07 (no need to type everything in just) File > Examples > Digital > Button (example from the great arduino.cc site check it out for other great ideas) /* Button * Turns on and off a light emitting diode(LED) connected to * digital pin 13, when pressing a pushbutton attached to pin 7.
  • Page 24 .:Twisting:. CIRC-08 .:Potentiometers:. What We’re Doing: Along with the digital pins the Arduino has it also has 6 pins which can be used for analog input. These inputs take a voltage (from 0 to 5 volts) and convert it to a digital number between 0 (0 volts) and 1024 (5 volts) (10 bits of resolution).
  • Page 25 Code CIRC-08 (no need to type everything in just) File > Examples > Analog > AnalogInput (example from the great arduino.cc site check it out for other great ideas) /* Analog Input * Demonstrates analog input by reading an analog sensor on analog * pin 0 and turning on and off a light emitting diode(LED) connected to digital pin 13.
  • Page 26 .:Light:. CIRC-09 .:Photo Resistors:. What We’re Doing: Whilst getting input from a potentiometer can be useful for human controlled experiments, what do we use when we want an environmentally controlled experiment? We use exactly the same principles but instead of a potentiometer (twist based resistance) we use a photo resistor (light based resistance).
  • Page 27 Code CIRC-09 (no need to type everything in just) Download the Code from ( http://tinyurl.com/crdum6 ) (copy the text and paste it into an empty Arduino Sketch) * A simple programme that will change the * intensity of an LED based on the amount of * loop() - this function will start after setup * light incident on the photo resistor.
  • Page 28 .:Temperature:. CIRC-10 .:TMP36 Precision Temperature Sensor:. What We’re Doing: What's the next phenomena we will measure with our Arduino? Temperature. To do this we'll use a rather complicated IC (integrated circuit) hidden in a package identical to our P2N2222AG transistors. It has three pins ground, signal and +5 volts, and is easy to use.
  • Page 29 Code CIRC-10 (no need to type everything in just) Download the Code from ( http://tinyurl.com/dfj8rs) (copy the text and paste it into an empty Arduino Sketch) /* --------------------------------------------- void loop() Arduino Experimentation Kit Example Code | // run over and over again CIRC-10 .: Temperature :.
  • Page 30 .:Larger Loads:. CIRC-11 .:Relays:. What We’re Doing: The final circuit is a bit of a test. We combine what we learned about using transistors in CIRC03 to control a relay. A relay is an electrically controlled mechanical switch. Inside the little plastic box is an electromagnet that, when energized, causes a switch to trip (often with a very satisfying clicking sound).
  • Page 31 Code CIRC-11 (no need to type everything in just) File > Examples > Digital > Blink (example from the great arduino.cc site check it out for other great ideas) * Blink * The basic Arduino example. Turns on an LED on for one second, * then off for one second, and so on...
  • Page 32 (ARDX) arduino experimentation kit www.oomlout.com This work is licenced under the Creative Commons Attribution-Share Alike 3.0 Unported License. To view a copy of this licence, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco,...