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!

Getting the Graph to Start at Later Measurements

Does your graph start off this? The first values start at zero, and then it goes to the normal values? It seems to take a few cycles  to get going before it prints off real data values. We want to make it not do that and just start at the real data. To do this, we need to prepopulate the graph with 500 data points so it starts scrolling when we start the data collection. 
Picture

The fix, prepopulate the plotter with 500 values on startup! 

If we take 500 initial average measurements on sensor startup, then those first few zero data points get averaged out and also the plotter starts at data point 501 in the loop so the scrolling and zoom in features are happening right when the loop starts. 

Mr. Dorsey explaining the sensor and code.
Picture

Here are comments explaining what the code does

Picture

After you get it working, don't forget to calibrate it. 


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!