Thursday, 28 April 2016

Friday, April 29th

Greetings Class.  There are 2 things for you to do today.  I know a bunch of you just want to play games and talk but we need to move into Arduino next week.

1. 
On Monday, May 2nd we are hosting 24 students from Lawrence Heights from 1pm to 3pm.
They are coming to us because they just bought 15 mBots.  And you are the current experts at mBots in the TDSB! So who better than your class to learn from?

So Monday's 3rd period will be spent with a pair of you getting your own 2 students to work with.
You will go over the standard stuff:
  1. How to hook it up (COM ports!)
  2. RGB (both, left, right), getting patterns up (while loops)
  3. Buzzer (for loops)
  4. Light Sensor (if statements, variables)
  5. LED Faceplate (x positioning) - not sure if we have enough
  6. Remote controls (if they have them set up and if we have batteries)
So just keep this stuff in mind.  If you are available, we could use students for 4th period too and I'd write you a note to get out of class but I'd need to know ahead of time.  If you're interested in helping through 4th period, EMAIL me with the course you have 4th period, your teacher and let me know that you'd like to stay.  DO THIS NOW!

2.
Next week we're getting into some basic Arduino.  Today you need to do some reading and email me what you think you'd like to do and why.

One of the main advantages of this course is that you get to branch out and do what you want to do.  In order to appreciate what Arduino can do you should read this site this period. It will explain Arduino and Lilypad plus shields.
https://learn.sparkfun.com/tutorials/what-is-an-arduino

Now explore some things you can do with Arduino:
http://www.instructables.com/id/Arduino-Projects/
https://www.hackster.io/arduino/projects
http://playground.arduino.cc/Projects/Ideas
http://www.electronicshub.org/arduino-project-ideas/

Check out some shields here.  Look at some of the links and if there are any shields you'd like to work with, make note of them.
http://www.shieldlist.org/

By the end of this class you should have some idea of what you can do with Arduino or what projects you'd like to do for your culminating.  You can work in pairs for it or alone.

---

For those interested in Lilypad, please read this:
http://lilypadarduino.org/
http://sewelectric.org/diy-projects/
http://www.instructables.com/howto/lilypad/ 


---

YOUR ASSIGNMENT THIS PERIOD:
Send me an email stating:
  1.  What projects you'd like to do for Arduino, or Lilypad
  2. Why you want to do those projects
  3. A link to the projects that interest you.
You must find at least one project that interests you the most.
THIS IS FOR MARKS!

Tuesday, 26 April 2016

Functions Practice Test

Try this practice test in partners or alone.  Figure out the answers and we will take this part up in class in 10 minutes.  DO NOT try to type it in to find out the answers.
 For this part, you can program this fully with a partner.


Monday, 25 April 2016

Python Unit 3 - Assignment #4

Create a program that asks you to move between 3 rooms.
The rooms are all in a row as shown in the diagram below:
The program will ask the user to enter a number to choose to move to another room.
Your output should look exactly like the following:

Any time the user enters an option that is not valid, it will say "Invalid option" and ask the question again.

In your program, you must END any loops that are not used.  This means you cannot activate a function from a loop without ending it (otherwise that loop will go on forever and use up resources).

This can be done in 32 lines, including a line to label #main.

Functions Example - 2 rooms


Learn about functions by making a program to help you navigate between 2 rooms:

Friday, 22 April 2016

Python Unit 3 - Assignment #3

Python Unit 3 - Assignment #3

Make a program that asks you for 4 courses and then gives you random grades for those courses.
It does not loop.
It uses at least ONE function.
This can be done in 15 lines


Python Unit 3 - Assignment 2

Modify Assignment 1 to do the following:
-> Add a running score and percentage calculator

This can be done in 21 lines.

Python Unit 3 - Assignment #1

Python Unit 3 - Assignment #1

This can be done in 16 lines.