Jamile the Teacher
  • Home
  • Parents
    • How Can I Help My Child?
    • Reading
    • Homework
    • Resources
  • Educators
    • PD
    • GAFE
    • Bookshelf
    • Useful Links

Programming our Microcontroller: An Arduino Challenge

7/21/2015

1 Comment

 

Learning Goal: We are learning to connect our Arduino to the computer and to program it to do as we say.

Using the Arduino software, try to accomplish the following:


1. Get the LED on your Arduino to repeatedly blink on for 5 seconds and off for 5 seconds. 
2. Get the LED to stay on for 10 seconds and off for 1 second repeatedly. 
3. Attach an LED to your breadboard and get it to blink at the same rate as the green LED.
4. Attach an LED to your breadboard and get it to blink at a different rate than the green LED.

*Remember to save each sketch with a different filename so you can share it later!

Materials available:
-Wires
-Wire stripper
-LED
-Resistor
-Breadboard

-Arduino Micro

Once you've succeed at all four steps of this challenge, share your code in the comments section of this post. 

Click the picture to find out more about breadboards!

Picture

Click the diagram to find out more about LEDs!

Picture

Stuck? Visit the Arduino website to find examples to help you get started.

Setup Code

Picture
You will need to tell the Arduino which digital pin your code will be controlling. The LED on the Arduino is connected to digital pin 13. 
Picture
Picture
Picture

Success! Maryam, Merlyn, Rhea, Sharmini have completed all four challenges. Now, they've moved on to crazier things... :)

1 Comment
Maryam, Rhea, Merlyn
7/20/2015 01:03:44 am

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

Most Arduinos have an on-board LED you can control. On the Uno and
Leonardo, it is attached to digital pin 13. If you're unsure what
pin the on-board LED is connected to on your Arduino model, check
the documentation at http://arduino.cc

This example code is in the public domain.

modified 8 May 2014
by Scott Fitzgerald
*/


// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}

Reply



Leave a Reply.

    Welcome to Summer School!

    Join us on our journey as we explore the links between Science, Technology, Engineering and Mathematics.


    Pro Salaries and Unit Rates

    It is clear that professional athletes are well-paid. Anyone who has been following the recent free agent frenzy in the NBA, or the transfer window in soccer, is aware of the enormous sums of money top players earn. In comparison to other professions, these salaries can seem pretty ridiculous. 

    Math Connection: Unit Rates


    A Unit Rate is the ratio of two measurements in which the second term is 1.  
    e.g., beats per minute, dollars per hour, kilometres per hour, 0.99/lb, $4.54/kg. 

    If Krishna earns $180 in 20 hours, then unit rate of her earning is given as 180/20 = $9 per hour.


    Learning Goal: We are learning to use unit rates to determine how much a professional athlete makes yearly, monthly, bi-weekly, weekly, per day, and per hour on average.


    1. Choose a professional athlete to examine. Ensure that you can find information about that person's current salary before deciding on them. Click a link in the list below. Search for your athlete. Find their salary. 

    Basketball Reference
    WhoScored.com (Soccer) 
    Pro Football Reference
    Hockey Reference
    Baseball Reference


    2. Use your knowledge of unit rates to determine how much your professional athlete makes yearly, monthly, bi-weekly, weekly, per day, and per hour on average.

    3. Display your data in an attractive visual format to be shared on this website. You may use markers and chart paper (we'll take a picture of it) or create a document that can be shared digitally. Show all work!



    Success Criteria for Visual Display


    I will be successful if:
    -My work is labeled (a subheading for each different calculation, each unit is labeled)
     

    Archives

    July 2015
    June 2015

    RSS Feed

Powered by Create your own unique website with customizable templates.