Participants will build a circuit to control an LED with a simple button. The power source will be a computer. This is made possible by using something called an Arduino. This lesson will introduce participants to the basics of circuitry with Arduinos. The students will practice abstraction in the identity activity and decomposition in the Arduino activity.
For each participant:
Breadboard
1 Arduino Uno
LED
10K Ohm Resistor
Pushbutton
3 wires
In general:
Computer (laptop or desktop)
Markers
Paper (8 x 10)
Beach ball
Arduino
IDE
Mircocontroller
Arduino code
Input pin
Output pin
Breadboard
LED
Activity
“My Fullest Name” Source: Critical Multicultural Pavilion External link
Objective
The following activity is particularly useful when working with participants who don’t know one another very well. The goal of this activity is to warm up participants to sharing about themselves and start revealing a bit about each participant’s background.
Materials
Markers and 8-by-10-inch sheets of paper folded horizontally.
Instructions
On the back of the piece of paper write the top three identities you feel closest to. The facilitator encourages participants to go around the circle to share any meanings, significance, culture, significant ancestors and the top three identities they hold dearest. Everyone will have a chance to share and be heard by the group.
Suggested questions if participants need help getting started:
Who gave you your name? Why that name?
Do you know the ethnic origin of your name?
Do you have any nicknames? If so, how did you get them?
What is your preferred name?
Facilitators should encourage students to be creative. Make it clear that it is acceptable to write poetry, list adjectives that describe them, include humor, etc.
If your group is large, break into diverse small groups of three to five to make sure everyone has an opportunity to share her or his story. Ask for volunteers to get the group started and tell participants they can share their stories from memory, or read them.
Facilitator Notes
Some individuals will include personal information in their stories and may be reticent to read them. Sometimes it is most effective for facilitators to share their stories first — making yourself vulnerable will make others more comfortable doing the same.
Allow time for every participant to share (whether it be with the whole group or with their small group).
Discussion
When everyone has shared, ask participants how it felt to share their stories. What did you learn?
Ask students if they can identify similarities and/or differences in how they were named?
Are there other identities that are part of your name?
Before this activity ensure that "Setting up Arduino" tutorial has been completed with the students. Make sure the background on Arduino found from the set up tutorial has been explained to the participants.
This activity will apply the knowledge about basic circuits, covered in previous units, to an Arduino.
These directions are a little less direct. They give freedom to choose where some things go instead of explicitly saying which row and column to place things.
**To ensure the easiest understanding it would be helpful to print off these steps for each student to follow along with. The pictures are also helpful if there is confusion, but students should try to follow the steps without the pictures. Following the steps challenges students to think computatinally, while only following the pictures won't challenge students to think for themselves. Perhaps provide copies of the steps to each student, and only allow students to see the picture for that step if they are stuck.
On the other hand, step 7 would be most helpful if shown with the picture. The Online Arduino code website can be confusing, and itsn't part of the physical circuit. For this reason, providing the picture for step 7 might prevent too much confusion.
In addition, the visual representation of circuit (show above), can be displayed during this activity so students have some idea of what the circuit should look like. It provides a visual without being too direct. But if you think it is too obvious, you could chose to not show that picture either except for debugging purposes.
Plug an LED into the Arduino by placing it into GND and pin 13. GND stands for Ground Negative Lead. Place the shorter end of LED into GND. Pins are the places where you connect your wires to construct a circuit. Pins 0 through 13 are digital pins that can be used for both digital input (like telling if a button is pushed) and digital output (like powering an LED).
Put the push button on the breadboard. It is okay to spread out the “tongs” of the pushbutton to fit on the board. Don’t be afraid to apply some pressure to make the push button tongs go into the holes of the board. If the tongs don’t go all the way in the board, it won’t work. The push button can be placed anywhere on the board. Just leave sufficient room for the wires and resistors.
Attach a wire from bottom left of push button on the breadboard to 5v pin on the Arduino. Ensure that the wire is located in a spot on the same row as the bottom left prong of the push button. If it doesn’t run from bottom left of pushbutton, there will be a “gap” in the circuit (i.e. the circuit will not be complete), and it won’t work. 5V is the positive side of the power, it is always 5 volts higher than the GND.
Attach the resistor to the breadboard. Make sure one end of the resistor is in the hole by the bottom right end of the pushbutton. Again, if not the circuit will have a “gap” and won’t run.
Attach a wire from the resistor to GND on the Arduino. Make sure the wire is just below the resistor to complete the circuit. Other end goes in GND pin of Arduino. There are three pins labeled GND on the Arduino board. The LED is already connected in one of them. On Arduino they are all connected so it really doesn’t matter which one you use. In this picture it is in the one by the 5V pin.
Lastly, attach the last wire from the other end of the resistor to the pin labeled 7. You must use pin 7 because you will upload code that indicates that that the input from the button comes from pin 7. This is how the computer knows to look for input coming from that pin. If the wire is plugged into a different pin, the computer won’t detect it and the circuit will not run.
Following the directions for setting up the code on the main page:
Once in your account, click on “Arduino Web Editor”
Click on “examples” tab on the left
Click on “built in” tab
Click on “0.2 Digital”
Click on “button”. This is the code you will use to make this circuit work. The words in gray are comments that the author left to explain what he did. You can read through these or just ignore.
**VERY IMPORTANT** go to line 26 in the code. The numbers on the left side indicate the line numbers. Line 26 should say “const int ButtonPin = 2;” Change this value to 7. That is because these directions and schematic picture were designed for the button to be plugged into pin 7, NOT pin 2. Because of this, you need to change this in the code or the circuit will not run. Make sure you add the semicolon after the 7!
With the code you have on the computer click the " ✔" circle, shown above on the left
Then click the "↠" circle, this will upload the code to the Arduino
Now you can try pressing the pushbutton, the LED should light up while it is being pressed. (Do not unplug the Arduino from the computer during this step. The Arduino must be connected to the computer for it to act as a battery source.
Gather participants and sit around in a circle. First participant (facilitator) who has the beach ball answers one of the questions for their reflection, then the participant tosses the ball to someone across from them in the circle and then that person answers a question. Repeat until everyone has answered.
What is a new thing you learned about someone today?
Explain a new thing you learned today.
What kind of other things do you think you can do with an arduino?
What did you find most interesting about the arduino?
How would you describe what you did in Compugirls today to someone outside of Compugirls?