Breadboards and LED's with Arduino - Victoria

Breadboards and LEDs with Arduino A MICROCONTROLLER Breadboards Orientation doesnt matter, what matters is the connections across the slots: Power rail

Ground rail Inside a breadboard The wholes/slots are also called tie points Why is it called a breadboard?

Wire wrap 1960s Why use one? No soldering required Reusable Prototyping

Extending connectors for GND and Power Exercise 3 Fade Run the Fade script: ,,<01. Basics>, Normally we would use the blink script as a test, but this is just to explore a slightly

different effect and using a breadboard This script uses a basic PWM (thus pin 9 marked with the ~) Note on the code: 255 modified by a fade amount (5) with a small delay (30ms) Journal entry Date it!!!

Aim, Equipment, method, experiment, conclusion For the method: fritzing diagram Also for method: a copy of the code (annotate this) Experiment: what you are exploring/changing (note it on the code that you have added to your journal) Conclusion: notes on what you found through exploring the code and changing it. Note down a real world example or application

Colour coding Does it matter what colour the wires/connectors are? Generally for connectors no But for sensors and other modules they usually follow a code: Red -> danger -> power Black/brown -> darkest colour -> GND (ground) White/Yellow -> lightest colour -> communications

Note this in your journal Exercise 4 - Potentiometer (Pot) When you turn the knob of a Pot the resistance changes, so they are sometimes called variable resistors. At a pots lowest level of resistance they let enough current though to read as HIGH (5v) At a pots highest level of resistance they let enough current though

to read as LOW (0v) So now It should be becoming familiar. Date, aim, kit, method, experiment, conclusion Add a fritzing diagram Add a copy of the code Annotate the code with notes on what changing the code does

Make some notes in the conclusion, I could use this for, I am interested in this because, it is used for x in the real world. Journal Pot What happens when you turn

the Pot? What could we use a Pot for? , , , Advanced concepts The Pot is an analog device

Computers count in bits/bytes -> range of 0 to 1023 So it is not just HIGH/LOW, it is a function with a range of 0-1023 The Arduino can read external voltages on the analog input pins using a built-in function called analogRead(). This function takes one input value, the analog pin we're using (sensorPin, which we earlier set to 0). It returns an integer number that ranges from 0 (0 Volts) to 1023 (5 Volts). (SIK circuit 2)

Exercise 5 - RGD LED , , , Where have you seen a RGB LED used? Fritzing diagram: The diagram

uses connectors related in colour to the pins of the RGB LED (yellow instead of red so as not to

confuse it with power) Notes on the code A "function" is a named block of code, that performs a specific purpose. A number of functions are already built-in to the Arduino, and you can write ones yourself A variable is a named number, they can be different data types

(more on this another lesson). You must "declare" variables before you use them, so that the computer knows about them int = integer, a named variable The const int RED _PIN = 9; indicates a constant that wont change

Recently Viewed Presentations

  • Maths Fest! -

    Maths Fest! -

    More GCSE Maths Enhancement courses? Follow-on support for those completing the programme? Other areas of maths CPD need? Network meetings for practitioners? Subject-specific teacher training? Information, advice & guidance? Flipchart sheets in both rooms to jot down ideas! Plenary session...
  • I. Beginning of the Enlightenment II. Conflicting views:

    I. Beginning of the Enlightenment II. Conflicting views:

    42c - identify the major ideas of the Enlightenment from the writings of Locke, Voltaire and Rousseau and their relationship to politics and society. 43a - identify the causes and results of the revolutions in England (1689), United States (1776),...
  • The map shows sea-level air pressure in millibars

    The map shows sea-level air pressure in millibars

    Areas of equal pressure may be found at locations. ... The tributary streams labeled X and Y have the same volume of water. Which statement is best supported by the map? (1) Hill . A is higher than . hill....
  • Person: Abraham Lincoln, boy, barber Place: Cincinnati, house,

    Person: Abraham Lincoln, boy, barber Place: Cincinnati, house,

    Adjectives MODIFY (change) nouns or pronouns. Include articles like "the," "a," and "an" The dog is large. A dog bit me. An apple thrown hard at the head of a dog will keep it from biting you.
  • FARL-LARC Field Day 2016

    FARL-LARC Field Day 2016

    LARC Field Day Chair: Mike Rudzki, N8MR) FARL Field Day Chair: David Treharne (N8HKU) ... ($12 last year, but Tye donated fuel.) USB Isolator ($18.99 plus tax from Amazon) Radial Supplies ($10-$15 of 18ga wire plus misc hardware) Recommend $200...
  • Mrs. Oberdick&#x27;s Class - Weebly

    Mrs. Oberdick's Class - Weebly

    Moodle/Weebly. To access Moodle, start by going to the Norman Public Schools website, then hit the Parents tab at the top of the page, scroll down to NPS Moodle listed under the "Other Information" category. My keyword is Oberdick. Typing...


    NANO WHISKERS General Definition WHISKERS- One of the long stiff tactile bristles or hairs that grow near the mouth and elsewhere on the head of most mammals METALLURGY Metal whiskering is a crystalline metallurgical phenomenon involving the spontaneous growth of...
  • Sustainability 1 CORPORATE SUSTAINABILITY A New Frontier Sustainability

    Sustainability 1 CORPORATE SUSTAINABILITY A New Frontier Sustainability

    Traditionally used on the "plant" floor Today, throughout the organization "Companies that have implemented lean are finding sustainability initiatives an easy extension of this philosophy." Mike Lewis, Horizons, RubinBrown, Spring 2009.