SUMMER STEM-HEALTH CAMP
  • Home
  • 2025 RCC Camp
    • Day 1: Basic Coding >
      • Button Control
      • Multicolor LED
      • Fading multicolor led
      • Melody (sound)
    • Day 2: Servos and Potentiometers >
      • DC Motor
      • Ultrasound
      • Potentiometer and Motors
      • 2 servo control >
        • Analog Stick Control
      • PIR Motion Sensor
      • IR Light Proximity Sensor
    • Day 3 Making an ECG/EKG! >
      • ECG/EKG health lesson
      • OLED Screen Basics
      • Pictures to OLED
      • BPM on OLED
    • Day 4: Measuring Pulse >
      • Scrolling Screen Graph
      • How the body absorbs light
      • Screen Pictures
      • IR Temp Sensor And Screen
    • Day 5: Finishing up/Show >
      • IR Light Proximity Sensor
      • PIR Motion Sensor
      • CO2 Sensor
      • Ultrasound distance sensor
  • The Teachers
  • Our Partners
  • Archive
    • 2024 Health-STEM Coding Camp >
      • Home (2024)
      • The Teachers
      • Day 1: Basics and Lights
    • 2024 Coding/Robotics Camp >
      • Day 1: Basic Coding >
        • Saving your codes
        • Engineering design
      • Day 2 Servos >
        • 2 Servos, one potentiometer
        • Multicolor LED >
          • Fading multicolor led
    • Pictures from prior years
    • 2023 3D Design Camp >
      • Day 1: 2D design
      • Day 2: 3D design basics
      • Day 3: Constraints
    • 2023 Health-STEM Coding Camp >
      • PreAcademy prep
      • Day 1: Basics and Lights >
        • Multicolor LED
        • Button Control
      • Day 2: Ultrasound >
        • Ultrasound Health Lesson
        • Supplement Melody
        • Supplement: Servo >
          • Potentiometer and Motors
          • 2 servo control
      • Day 3: Measuring Pulse >
        • How the body absorbs light
        • OLED Screen Basics >
          • Scrolling Screen Graph
      • Day 4 Making an ECG/EKG! >
        • ECG Health Lesson
        • Pictures to OLED
        • BPM on OLED
      • Day 5: Finishing up/Show
    • 2021 STEM Camp (HS) >
      • The Teachers (2021)
      • PreAcademy prep
      • Day 1: Basics, Lights, and Temperature Sensor >
        • Day 1 Supplement: Measure Temperature
        • Day 1 Supplement: IR Temp Sensor
        • Day 1 Supplement: Identifying Resistors
        • Supplement: Controlling A Servo
      • Day 2: Measuring Pulse >
        • How the body absorbs light
        • IR Light Proximity Sensor
        • PIR Motion Sensor
      • Day 3 Supplement: OLED Screen Basics >
        • Display Screen Temperature
        • Scrolling Screen Graph
      • Day 4: Finishing up/Show
    • 2021 STEM Camp (MS) >
      • PreAcademy prep
      • Day 1: Basics, Lights, and Temperature Sensor >
        • Day 1 Supplement: Identifying Resistors
        • Day 1 Supplement: Measure Temperature
        • Day 1 Supplement: IR Light Proximity Sensor
      • Day 2: Ultrasound >
        • Day 2 Supplement: IR Temp Sensor
        • Day 2 Supplement: Controlling A Servo
      • Day 3: Measuring Pulse
    • 2020 STEM Camp
    • 2018 Lessons
    • 2017 Camp
  • Contact Us!

Lighting an LED


You just made your first Arduino program! Congratulations.
Now we are going to figure out how to light LEDs from the Arduino board so that you can use lights on your robot later. 

You will need: Wires, a 220 ohm resistor, an LED.

Set up the board like below and see if you can figure out how to get one light on.
​(MAKE SURE YOU USE THE RESISTOR OR THE LIGHT MAY BREAK) 


Once you get one light to work, figure out how to light more LEDs using your board. 
Picture
It is important to know that LEDs only let current flow through it one way. The LED will only work if you plug the longer end up to positive pins on the board and plug the shorter end up to ground or negative ports on the bards. ​​
If your light does not turn on, try to flip your LED. It may just be in backwards. 
Picture
Picture
Now that you have one light working, see if you can get more lights to turn on.

Series and Parallel


If you want wiring to stay together, the breadboard is very useful. 
Breadboards help you wire electronics together. The side bar holes are all connected and each of the rows left and right side are connected, as shown in the picture below. 
Picture
Connect up your lights to the breadboard like below. See what changes between each type. Can you figure out how to power all three setups off the same board? Once you get your lights to work in parallel, try to use different colors. What happens when you try to use all different colored lights? 

Single LED

Picture

Series LEDs

Picture

Parallel LEDs

Picture

Control with a button


We will now figure out how to control the LED using a button. 
Materials: LED, 220 Ohm resistor, wires, 10 kOhm (10,000 ohm) resistor, and board. 
Wire up the board as below. (Make sure to use the 220 Ohm resistor with the LED and the 10 kOhm with the button)
Picture
Here we are adding new types of statements to your code. Before we had just the loop, now we add if and else. Every green part of your code needs an open and closing { } to run. The curly brackets are like sandwiches for your statements. Make sure each has them. 

Write a code similar to below and upload it to your board to see if it works. 

Picture
Once you get the one LED code to work, try to figure out how to get more lights to work with buttons if you have time. 
You basically just have to add an extra line to each part and name new variables for the new lights. 
Look at the difference between the code above and below to try and figure out the pattern for adding more parts. 
Picture

Hover over the lessons tab to select which day you want

Below is an online of what we learned in 2018. 
There are also some helpful videos for you to practice on your own.
Below are links for each day's lessons. Click on the links to go to each day. 
Day 1: Basic Coding and Engineering
Day 2: Servos and Potentiometers 
Day 3: Build Claw and Analog Controls
Day 4: Reach Day: Save Positions 
Day 5: Presentations

Here is how to make online arduino creations! 

Go to this website to start creating: ​https://www.tinkercad.com/#/?type=circuits&collection=designs
Picture

Learn How to Code! The Basics


We will start by just learning how to send a code to the arduino to make sure it works. You will also learn to name and save your files to a flash drive. 

Open the Arduino software and plug in the Arduino board to your computer's USB. Type in the code below (without the // symbols). Follow instructor directions.
Picture

When you are finished, click the check mark in the upper left. Upload your code to the Arduino by clicking the right arrow. 
Picture
If you ever get an upload "Problem uploading to board" error, click Tools, then Port, and then select Arduino (shown below).
Picture
Once you see the onboard light blinking, play with the wait variable and upload changes it to see how it affects the light. 
After you are done coding the onboard LED, save the file and open a new Arduino IDE code. ​
Picture

Let's build the robot arm's frame

​For the build time: students will finish building 1st draft of arm frame and do redesigns to fix issues that arise. Once students figure out the servos, they can start attaching some to their robot to see if they can get it to move. 

For the code time: students are introduced to servos, how they move, and how they want to use them to get their arm to move. Students are introduced to the code to get their servos to work and test it out. 
Picture

Trying out the Servo

Before we can do fancy things with the servos, we first have to learn how they work. Wire up your servo like the picture to the right and try out the code below. 

Once you get it to work, play with some of the numbers on the code and reupload it to the board to see how it changes what it does. 

You can plug your servo's orange cord to any pin, just make sure to type that pin as myservo.attach(#)
Picture
Picture

Now let's change the servo code to something you control 

The servo sweeping back and forwarth does not help much if we want to control exactly where a robot will go. 
We need to add something that is called an "input", something we can control to tell it where to go. 

In comes the potentiometer. Turning it changes the value it gives and we can tell the computer how to use its data. 

We will be using more than one servo at once soon, so we will have to change what we call the servo. We will also be wiring  many more things up soon, so we should make an easy to change variable to set what where servos are plugged into the board. 
Picture
Picture
Could you get this code to control one servo? 
Once you do, show your teacher and then try to change the code so that it can control more than one servo by potentiometers. You basically just copy each part of the code and add extra lines with different numbers. 
Here is an example with 4 potentiometer dials. 
Picture
Picture

The Analog Stick


We have learned how to control the servos using the knob potentiometer. This is good to use for some robots, but controlling it another way may be helpful too. What if we just want to control it using a control stick? 

Set up your arduino similar to below and write up a new code similar to below. Send it to your board and see what it does.  
Picture
Picture
Picture

Engineering Design Process: ​Start your robot arm frame! 


Your teacher will discuss how engineers plan for a project and you will use this process to plan your robot. 
You will learn about constraints, requirements, planning, prototyping, testing, and improving! 
Picture
Plan out a design for your arm and base. Your main building materials will be  cardboard, K’nex, or maybe more  
You will learn about constraints, research different ways to make robot arms, and you will then draw out a plan for your arm. You will build prototypes with any extra time in the day. 

Constraints (Ask, Research) 

Picture
We first have to know our robot arm's constraints (limitations, expectations) before we design it. Circled above are the key  engineering constraints important for this camp. Get out some paper and prepare to plan out your robot arm.

Write out each header and we will go through the first 4 steps of the engineering design process to answer each one (Ask, Research, Imagine, Plan). 
We will then share your plan with a classmate/teacher. 
Intended Function: What will you want your robot arm to be able to do (wave, shake, pick up and put down, etc) 
Size and Shape: How big or small can my robot be? Will this shape and size requirement allow it to do the function above?
Quality and Reliability:  How sturdy will your robot have to be? How long should it last? 

Corporate Objectives/Culture: What is the overall class objective for my robot? Will I work in a team? 
Risk Tolerance: What happens if my robot breaks and how will I take failure? 
Price Expectation: What supplies am I allowed  to use and how many of each type am I allowed to use? 

Technology Limitations: Will I be able to learn how to make the robot do my function and do I have the parts?
Resource Allocations: Considering supplies given to me, will I want to share or ask others to share some items with me?
​Scheduling: When is my completed and working robot arm due? What are mini deadlines I can set for parts to be done? 
Design Tools: What tools are available to help me learn or where could I look things up help to make my robot arm? 

Design (Imagine, Plan) 

Now that you have researched the constraints above, take out another sheet of paper and do the (Imagine, Plan) part of the engineering design process. Develop and talk with your classmates about solutions to your constraints and draw out a plan for your robot arm. 

Adding More Servos to Your Arm
Building your claw!


Today you are going to build your class. Here are some claw examples. 
Picture
Picture
Picture

Day 4: Saving Positions


Wouldn't it be cool to teach your arm how to save positions? 

If you are caught up today and want to try, here is how! 

Here is a video to show what you can get your robot to do today. 

Picture
Last minute tweaks/fixes.  
​Students show off for each other. Parent exhibits. 
Picture

Go Beyond


Below is the manual for an Arduino kit similar to the one you have in this camp. 
Here are some of the built in examples Arduino's program comes with: 
https://www.arduino.cc/en/Tutorial/BuiltInExamples

If you are interested in adding other parts to your arm that we have not taught you, then feel free to look up how. ​
Here is a tutorial book if you are interested. 
arduino-tutorials.pdf
File Size: 5276 kb
File Type: pdf
Download File

Your browser does not support viewing this document. Click here to download the document.
Proudly powered by Weebly
  • Home
  • 2025 RCC Camp
    • Day 1: Basic Coding >
      • Button Control
      • Multicolor LED
      • Fading multicolor led
      • Melody (sound)
    • Day 2: Servos and Potentiometers >
      • DC Motor
      • Ultrasound
      • Potentiometer and Motors
      • 2 servo control >
        • Analog Stick Control
      • PIR Motion Sensor
      • IR Light Proximity Sensor
    • Day 3 Making an ECG/EKG! >
      • ECG/EKG health lesson
      • OLED Screen Basics
      • Pictures to OLED
      • BPM on OLED
    • Day 4: Measuring Pulse >
      • Scrolling Screen Graph
      • How the body absorbs light
      • Screen Pictures
      • IR Temp Sensor And Screen
    • Day 5: Finishing up/Show >
      • IR Light Proximity Sensor
      • PIR Motion Sensor
      • CO2 Sensor
      • Ultrasound distance sensor
  • The Teachers
  • Our Partners
  • Archive
    • 2024 Health-STEM Coding Camp >
      • Home (2024)
      • The Teachers
      • Day 1: Basics and Lights
    • 2024 Coding/Robotics Camp >
      • Day 1: Basic Coding >
        • Saving your codes
        • Engineering design
      • Day 2 Servos >
        • 2 Servos, one potentiometer
        • Multicolor LED >
          • Fading multicolor led
    • Pictures from prior years
    • 2023 3D Design Camp >
      • Day 1: 2D design
      • Day 2: 3D design basics
      • Day 3: Constraints
    • 2023 Health-STEM Coding Camp >
      • PreAcademy prep
      • Day 1: Basics and Lights >
        • Multicolor LED
        • Button Control
      • Day 2: Ultrasound >
        • Ultrasound Health Lesson
        • Supplement Melody
        • Supplement: Servo >
          • Potentiometer and Motors
          • 2 servo control
      • Day 3: Measuring Pulse >
        • How the body absorbs light
        • OLED Screen Basics >
          • Scrolling Screen Graph
      • Day 4 Making an ECG/EKG! >
        • ECG Health Lesson
        • Pictures to OLED
        • BPM on OLED
      • Day 5: Finishing up/Show
    • 2021 STEM Camp (HS) >
      • The Teachers (2021)
      • PreAcademy prep
      • Day 1: Basics, Lights, and Temperature Sensor >
        • Day 1 Supplement: Measure Temperature
        • Day 1 Supplement: IR Temp Sensor
        • Day 1 Supplement: Identifying Resistors
        • Supplement: Controlling A Servo
      • Day 2: Measuring Pulse >
        • How the body absorbs light
        • IR Light Proximity Sensor
        • PIR Motion Sensor
      • Day 3 Supplement: OLED Screen Basics >
        • Display Screen Temperature
        • Scrolling Screen Graph
      • Day 4: Finishing up/Show
    • 2021 STEM Camp (MS) >
      • PreAcademy prep
      • Day 1: Basics, Lights, and Temperature Sensor >
        • Day 1 Supplement: Identifying Resistors
        • Day 1 Supplement: Measure Temperature
        • Day 1 Supplement: IR Light Proximity Sensor
      • Day 2: Ultrasound >
        • Day 2 Supplement: IR Temp Sensor
        • Day 2 Supplement: Controlling A Servo
      • Day 3: Measuring Pulse
    • 2020 STEM Camp
    • 2018 Lessons
    • 2017 Camp
  • Contact Us!