11-30-15

agenda

  1. Find your assigned seats referring to the seating chart.
  2. Review  last Tuesday’s kick-off challenge.
  3. Review Final Project purpose and schedule.
  4. Absent last Tuesday?  Get makeup work from Milstead.

Goals by end of class today:

  1. Each group completes the brainstorming page from the packet and turns it in for grading and feedback.
  2. CAD/CAM:
    1. use digital calipers to measure golf balls, short tubes and momentary switches.  Paste handout in your engineering notebook.
    2. go to the computer lab and login to tinkercad.  Make sure that you can login to tinkercad.com.  Fix your login as needed.
  3. Programmers:
    1. using a Google Doc, create a document that describes – step by step – what will happen in your celebration code.  Stoplight example:  1) person pushes button, 2) green light goes off, 3) yellow light goes on for three seconds, etc.  Share with rpmteacher@gmail.com for credit.
    2. use the breadboard handout to draw your celebration circuit plan.  Paste handout in your engineering notebook.
  4. Woodworking: measure and record hole box dimensions.

11-20-15

today IS THE BIG DAY

45 minutes of work time/troubleshooting before we go to Engineering
-make sure that your program triggers the stoplight sequence
-make sure that your program triggers the walk/don’t walk
-test it with your stoplight

1:45 – we start packing.  Bring with you:
1. your stoplight
2. your Arduino with your program loaded
3. your completed breadboard
4. plus email your stoplight code to yourself (copy/paste it in)

In Engineering – each of you will connect your stoplight to run your code on an Arduino.  We are looking for lights to blink.

11-18-15

  1. comment your existing stoplight code:
    1. //your name at the top
    2. //comment each line to describe what is happening like //the red light turns on
  2. modify your code to include a walk and don’t walk light – comment your new lines as you work
  3. modify your breadboard to include two more LEDs, resistors and the wires needed to make the WALK/DON’T WALK light work.
  4. test the WALK/DON’T WALK code your breadboard
  5. IF it works then print out your code.
  6. labels leads/wires on your stoplight to indicate color and positive/negative.
  7. test code on your stoplight.

11-16-15

the week ahead- goal: On Friday each of you will demonstrate your code on your stoplight in front of the class.

Monday-
1. review stoplight code together on the big screen.

2. run code on your stoplight circuit.

3. add the WALK/DON’T WALK lights into your code and onto your breadboard.

Benny- click here!

Wednesday-

  1. labels leads/wires on your stoplight to indicate color and positive/negative.
  2. test code on your stoplight.

Friday- 

  1. final troubleshooting.
  2. demo in Engineering room.

45 minutes to complete work on your stoplights

11-13-15

today’s goals:
>complete the RGB-music code
>setup the stoplight circuit
>setup stoplight code

  1. First 30 minutes – finish your RGB activity from the last class. This is graded- I need to see your code and see your code run with the music.
  2. Stoplight circuit:
    1. setup this circuit on your breadboard- click to zoom in.
    2. redyellowgreenbtn_bbgoodScreen Shot 2015-10-23 at 12.54.48 PM
  3. >look at the Blink sketch – test and see if it makes the red light blink. If this line makes the red light (pin 13) blinkArduino blink pin 13then how could you make yellow light (pin 12) blink at the same time?
    now add the green light (pin 11) into the sketch and make it blink with red and yellow.  SAVE THIS SKETCH as lightsblinkhow can you get the links to blink one after the other: red then yellow then green?SAVE THIS SKETCH as linkssequence.
  4. we will create the code together on the big screen.

11-19-15

today-

We will get the RGB color changing to work!  Here’s the plan:

Part 1

  1. Go the to the RGB color changing tutorial. 
  2. Go the breadboard diagram and setup your breadboard.  Make sure that you follow the diagram.
  3. Copy/paste the code from the tutorial into the Arduino software.
  4. Upload the code and verify that the colors match what you expect to see.

Part 2 – now it’s time to change the colors and add comments.

  1. Use this website to select a color.
  2. Setup at least five different colors that change on a delay.
  3. Put in a comment next to each color to indicate what the color is for each change.
  4. Screen Shot 2015-11-09 at 12.58.10 PM

Part 3 – music

  1. Find ten seconds of your favorite song.
  2. Change the delays so that your lights fire in time with the music.
  3. Using a comment, put your name and the song name at the top of your program (sketch).  Screen Shot 2015-11-09 at 12.58.21 PM
  4. Print this out and hand it in.
  5. Show me your working LED with color changing in time to the music.

11-6-15

Find your breadboard and Arduino on the middle table.

  1. Connect to your computer and run the Blink sketch.  If it doesn’t work then start by:

checking your USB connections

making sure that you are using the right port – click on Tools, Port and select one of the two bottom ports on the drop-down menu.
Screen Shot 2015-10-16 at 10.51.47 AM

WARM UP – RGB color changing LED

2. wiring LEDs and resistors on the breadboard:

Arduino stoplight breadboard circuit
click for full size image

Follow this diagram and wire in red, yellow and green LEDs.  Pay close attention to the pins:

red to pin 13
yellow to pin 12
green to pin 11

You will more wires and two more resistors.  One 220 resistor and one 10K resistor.

Pay close attention to the resistors:

Screen Shot 2015-10-23 at 12.54.48 PM

3. and now – the code…

>look at the Blink sketch – if this line makes the red light (pin 13) blink

Arduino blink pin 13then how could you make yellow light (pin 12) blink at the same time?
now add the green light (pin 11) into the sketch and make it blink with red and yellow.  SAVE THIS SKETCH as lightsblink

how can you get the links to blink one after the other: red then yellow then green?SAVE THIS SKETCH as linkssequence.

4. add more LEDS – add more LEDS, resistors and wires to your circuit.  Can you get the new LEDs to light up?

5. adding a button (input)

follow this diagram to add a button to your breadboard.  You will need to add two resistors, three wires and a button.

>does your sequence code still work?

click for full size version

11-4-15

All Arduino today

  1. Search for Arduino on your computer and open the application.
  2. Connect your Arduino to your computer using USB
  3. Using the Arduino app, click on File, Examples, Basic and choose the sketch named BlinkScreen Shot 2015-10-16 at 10.46.04 AM
  4. Click on the arrowScreen Shot 2015-10-16 at 10.51.09 AMat the top of the Arduino sketch to send Blink to your Arduino board.
  5. IF you get an error message like the one below you have to choose a different connection from the drop-down menu. Screen Shot 2015-10-16 at 10.51.47 AM
  6. IF you connect to your Arduino then see if the small LED light blinks on the board.
  7. Once you are connected and have a blinking light, it’s time to change the code.  Change the delay(1000) value – that’s the number – to a different value.  Screen Shot 2015-10-16 at 10.54.53 AMWhat happens if you make the value larger or smaller?  What if you copy/paste the portion of code that starts with digitalWrite over and over?  How does the blinking change?

Once everyone has a connection with their board we will

  1. connect an LED to pin 13 on your ledpositivenegativeArduino led1led2
  2. connect the breadboard to your Arduino
  3. add a resistor and LED to your breadboardScreen Shot 2015-11-04 at 12.55.13 PM
  4. make it BLINK
  5. add more LEDs and control them