SUMMER STEM-HEALTH CAMP
  • Home
  • 2025 RCC Camp
    • Day 1: Basic Coding >
      • Button Control
      • Multicolor LED >
        • Fading multicolor led
      • Melody (sound)
      • Day 1 Supplement: Measure Temperature
    • 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: Measuring Pulse >
      • How the body absorbs light
      • OLED Screen Basics >
        • Screen Pictures
        • Scrolling Screen Graph
        • BPM on OLED
      • IR Temp Sensor >
        • IR Temp Sensor And Screen
    • Day 4 Making an ECG/EKG! >
      • ECG/EKG health lesson
      • Light Color Module
    • Day 5: Finishing up/Show >
      • CO2 Sensor
  • The Teachers
  • Our Partners
  • Archive
    • Home (2024) >
      • 2024 Health-STEM Coding Camp
      • 2024 Coding/Robotics Camp >
        • Day 1: Basic Coding >
          • Saving your codes
          • Engineering design
        • Day 2 Servos
    • 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
    • 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 >
        • IR Light Proximity Sensor
        • PIR Motion Sensor
      • Day 3 Supplement: OLED Screen Basics >
        • Display Screen Temperature
        • Scrolling Screen Graph
      • Day 3: Measuring Pulse
      • Day 4: Finishing up/Show
    • 2021 STEM Camp (MS) >
      • PreAcademy prep
      • Day 1: Basics, Lights, and Temperature Sensor
    • 2020 STEM Camp
    • 2018 Lessons
    • 2017 Camp
  • Contact Us!

Supplemental Lesson​

Make sure to do the regular day lesson first.

Making a Melody

Arduino IDE comes preloaded with some basic codes. If you want to have it play music, go to file, examples, digital, and select toneMelody to open up the basic tone code. 
Picture
Picture

Example Code

You can play around with the pause between notes and the note duration to change the pace of the song. You can also change which notes play in the melody line to change what it sounds like. 
Picture
Proudly powered by Weebly
  • Home
  • 2025 RCC Camp
    • Day 1: Basic Coding >
      • Button Control
      • Multicolor LED >
        • Fading multicolor led
      • Melody (sound)
      • Day 1 Supplement: Measure Temperature
    • 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: Measuring Pulse >
      • How the body absorbs light
      • OLED Screen Basics >
        • Screen Pictures
        • Scrolling Screen Graph
        • BPM on OLED
      • IR Temp Sensor >
        • IR Temp Sensor And Screen
    • Day 4 Making an ECG/EKG! >
      • ECG/EKG health lesson
      • Light Color Module
    • Day 5: Finishing up/Show >
      • CO2 Sensor
  • The Teachers
  • Our Partners
  • Archive
    • Home (2024) >
      • 2024 Health-STEM Coding Camp
      • 2024 Coding/Robotics Camp >
        • Day 1: Basic Coding >
          • Saving your codes
          • Engineering design
        • Day 2 Servos
    • 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
    • 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 >
        • IR Light Proximity Sensor
        • PIR Motion Sensor
      • Day 3 Supplement: OLED Screen Basics >
        • Display Screen Temperature
        • Scrolling Screen Graph
      • Day 3: Measuring Pulse
      • Day 4: Finishing up/Show
    • 2021 STEM Camp (MS) >
      • PreAcademy prep
      • Day 1: Basics, Lights, and Temperature Sensor
    • 2020 STEM Camp
    • 2018 Lessons
    • 2017 Camp
  • Contact Us!