RGB LED

RGB LED Circuit

Assignment

RGBWrite a program that loops through the following colours, with each colour being displayed for 500 mS):

  • green
  • yellow
  • red
  • magenta
  • blue
  • cyan
  • white

Late Submission Policy

The general policy for late submissions is that 5% of your achieved mark will be deducted per day to a maximum of 15% for grades 9-10 and a maximum of 25% for grades 11-12 (DSBN policy). There may be exceptions to this, depending on the specific circumstances.

If assignments are posted online and can be done from home, absence due to a school activity does not extend the deadline.

If the situation warrants that an assignment can no longer be handed in, the mark will be a zero beyond that.

(You will only be given a reasonable amount of time to submit a late assignment. Don’t expect to be handing in assignments two or three weeks after they are due!)

Career Cruising

Create a section called “Career Matchmaker Results (Top 10 careers)”. Under this, list your top 10 Career Matchmaker results from Career Cruising, listed in order, in a neatly formatted list.  (Redo the career matchmaker, even if you have done it this year. Be sure to answer ALL questions.)

An example is shown below:

Career Matchmaker Results (Top 10 careers)

  1. Automobile Assembler
  2. Electronics Engineering Tech
  3. Electrical Engineering Tech
  4. Web Developer
  5. Office Machine Repairer
  6. Gunsmith
  7. Furniture Finisher
  8. Locksmith
  9. Cable Installer and Repairer
  10. Production Woodworker

Next, create a section called “My Top Career Choice”. Under this heading, enter “Career”, followed by the name of your top career choice, ideally taken from the above list, as well as the other details listed below. Example:

My Top Career Choice

Career
  • Automobile Assembler
Description
  • Automobile assemblers install pre-fabricated parts and components to make new vehicles.
Earning $ Range
  • $15 – $35 per hour
Level of Education
  • High School
Core Tasks
  • Work at assigned stations on automotive assembly lines
  • Attach a specific part, such as the bumper, as automobile frames move down the line
  • Often climb into the frames and use power tools to bolt or screw the part in place
  • Ensure the part is properly secured and functional, and move on to the next frame
Attributes and Abilities
  • Work well with your hands
  • Mechanically inclined
  • Communication skills
  • Physically fit
Workplace
  • Work for companies that manufacture cars, trucks, vans, motorcycles, or other kinds of automobiles
  • Most work a regular 40-hour week, though overtime is sometimes required
  • Some work evenings and weekends
  • Work indoors in large factories that are clean but noisy, and can be hot in summer
  • The work involves a lot of repetitive tasks

Tools

Throughout the course we will be using various tools to help our learning:
  • Portable Apps
    • Chrome
    • Notepad++
  • Lastpass
  • Diigo (social bookmarking)
  • Google Drive
  • Google Takeout
  • Google Sites (the NEW Google Sites)
  • Google Keep
  • Gmail
  • Twitter
  • Dropbox

Micro:bit Beginner Activities

Using the block editor at https://makecode.microbit.org, create and save the following programs:

  1. Display your first initial.
    (save as filename: initials_first_initial)
  2. Display a graphic icon.
    (save as filename: initials_icon)
  3. Scroll your first name and last name, in capitals.
    (filename: initials_scrolling_name)
  4. Write a program that displays the temperature in degrees Celsius.
    (filename: initials_temperature)
  5. Write a program that displays the micro:bit heading in degrees.
    (filename: initials_compass)
  6. Button A displays “HELLO”
    Button B displays “HOW ARE YOU?”
    Both buttons display “QUITE WELL, THANK YOU VERY MUCH”
    (filename: initials_hello_how_are_you)
  7. Write a program where button A increments a counter (which starts at zero) and button B decrements the counter.
    (filename: initials_counter)
  8. Play a simple song (like Twinkle Twinkle) that can be listened to through your earbuds. You will need two test leads for this (see your instructor) which you will connect to Pins 0 and Gnd.
    (filename: initials_simple_song)
  9. Write a program that simulates Rock Paper Scissors. When you shake the Micro:bit it displays one of the rock, paper, or scissors icons.
    (filename: initials_rock_paper_scissors)
  10. Write a program that tracks your steps.
    (filename: initials_microbit_fitbit)

…where initials are your initials.

Buzzer Activities

Activity 1 – Buzzer Intro

Refer to this page for this activity. Do NOT copy and paste the code — type it in (or you won’t learn anything…).

Note that the 100 Ω resistor is optional. You can leave it out for simplicity (and extra volume!).

Once you have the basic buzzer program working, research for loops  and modify the program so it loops from 100 Hz to 10,000 Hz in 20 Hz increments and then down again, infinitely.

Save this program as “buzzer_1”.

Activity 2 – Metronome

Write a program that exactly mimics this metronome:

You will likely want to refer to the Tone reference page for assistance. (Read the syntax carefully for an important tip!)

Note: for this assignment I want you to use the tone() function using this syntax:

tone(pin, frequency, duration)

When I see you for marking be sure you can explain the “math” involved in setting the metronome frequency.

Save as “metronome”.

Activity 3 – Star Wars

This activity also uses two LEDs.  Have fun with it! [Source]

Save as “star_wars”.

Activity 4 – Twinkle Twinkle

Using the Star Wars program as a starting point, adapt it to play Twinkle Twinkle Little Star.

You can delete any references to the LEDs.

Save as “twinkle”.