Wednesday, 25 May 2016

Culminating Project Proposals - Due May 27th



Culminating Proposals: 
  
3D Printing Culminating
1.    Complete all lessons online
2.    Design and Print something of your own
       a.    You must hand sketch what you want to build and have it approved before continuing work
       b.    What you are drawing must take at least 20 project hours in-class to complete
       c.    Each  week you will complete a progress report and show what work has been done
3.    Research project on 3D printing covering:
       a.    Different types
       b.    Recent technology
       c.    Future technology

Arduino Culminating
1.    Complete all labs
2.    Create personal project OR complete combo project (project that combines 3-5 different labs)

Lilypad Culminating
1.    Complete basic project
2.    Create personal project which includes:
       a.    Instructions on how to sew it together
       b.    The use of Lilypad and at least 4-6 lights

Culminating Proposals are due Friday, May 27th.
Culminating Projects are due June 20th at NOON!

Friday, 20 May 2016

Culminating Bounty Hunter Projects - Farm Targets

Data Logging:
Waterproof sensor that will record moisture and temperature readings to an SD card to track readings every 3 hours from 6am to 6pm.  It should be solar powered.  This is mostly an Arduino project but can include 3D printing.

Chicken Coup:
Automatic door that closes the chicken coup at night.  This requires a gate to be 3d printed as well as mounts and cases for the servo, light sensor and Arduino.  This is a 3D + Arduino project.

Temp Probe/App
Temperature probes that can be put into a pile of compost to remotely send temperature and moisture readings to an iPhone app.  Probes can be solar powered.  This is mostly an Arduino project.

Thursday, 5 May 2016

Circuit Flow Practice

Circuit Flow Practice

See if you can trace the flow through all the circuits below:
Use the following codes:
LED Cathode = LED+
LED Anode = LED -

Example 1:
The path flows from:
Pin 13 - J9 - F9 - E9 - C9 LED+ - C10 LED- - E10 Resistor - F10 Resistor - J10 - GND

Example 2:


Example 3:

 Example 4:


Example 5:

Example 6:

Example 7:









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.

Thursday, 25 February 2016

Scratch Quiz Game Rubric

Create a Quiz Game in Scratch
It must have:
  • 10 questions related to courses you are taking now
  • 4 multiple choice answers in the form of sprites you click and use of broadcast
  • A custom start screen with instructions
  • A custom Win and Lose screen
  • A background for every question
  • A way of calculating your final score and telling you what you got while matching a special screen to it (You only need 3 screens for telling you how you did but you must tell them the actual score:  For instance - after answering the last question the Cat says "You got 9/10!" and the background screen has a trophy and says "Congrats A+!".   You need 3 rank screens like this:
    1. You failed
    2. You did OK
    3. You did amazing

The Scratch Quiz Game must have sprites you can click,  and use of Broadcast for any marks.  You cannot use the Answer-And-Wait system.



Level 0
Level 1
Level 2
Level 3
Level 4
Function:  Code works with no problems or bugs
Does not work, or more than 3 problems
Works but three problems
Works but two problems
Works but one small glitch
Works perfectly, no problems
5 Questions from courses you are taking
There are <4 questions from courses currently taken
There are 5 questions from courses taken
There are 6-7 questions from courses taken
There are 8-9 questions from courses taken
There are 10 questions from courses taken
Method for calculating mark/performance

(this is worth double)
There is no method for showing performance

There is an indication of score but no relation to how many questions or percentage (only showing the variable score)

There is a clear indication of the mark related to how many questions there were plus 3 rank screens.
4 choices per question (4 sprites that you can click) 

(this is worth double)
There are no sprites you can click
There is 1 choice per question in the form of sprites you can click
There are 2 choices per question in the form of sprites you can click
There are 3 choices per question in the form of sprites you can click
There are 4 choices per question in the form of sprites you can click
There is a clear intro on how to play the game
No intro or instruction on how to play

There is an intro but it is not entirely clear on how to play

There is a clear intro on how to play the game
Total:



Tuesday, 23 February 2016

Scratch Quiz Game Video

Today you are to complete your Scratch Quiz Games.

You should have:

  1. 10 Questions
  2. Each question is from an ACTUAL COURSE you are taking with stuff you are learning this semester.
  3. A finish screen
  4. A way to tell the user their SCORE at the end of the game
When you have completed your game, email me the game link with the email title "Scratch Quiz Game".

For those of you having trouble, here's a video showing me making the game in 9 minutes. This is just a start, and you will need to continue it to complete the assignment.  DO NOT use the same colors I did. Remember you can right-mouse-click to get a new menu to duplicate scripts!


Wednesday, 17 February 2016

Scratch Day 2

Last day we did a super introduction to Scratch.
In that lesson you learned how to use:

  • when Green flag is clicked
  • forever
  • if
  • forever-if
  • variables
  • setting a variable
  • changing a variable
  • operators
  • stop-all
  • move
  • if on edge bounce
  • next costume
  • switch background
  • button controls
  • collision detection
  • and more!


Scratch Assignment #1

Send me the following in an email (see the blackboard for my email address).
Title the email:  Scratch Assignment #1
Click on Explore at the top and look at several games that people have made.
Provide answers for each of the following questions (remember to label the answers to the question number!  Don't just write stuff I can't figure out).

1.  Share the links to three games you found the most fun.  Explain what you liked about these games.
2.  Explore the code of some of your favourite games.  Pick THREE games with code that you do not understand by reading it.  Give me the link to the game and explain or show me the chunk of code you do not understand.  I can do a lesson on what it is in class.

3.  See Inside a game of your choice and click on the orange Remix button at the top left.  Remix this game to make it better.  Send me the link to the Remixed game, and explain what you did to make it better.