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!

Touchless Temp Sensor
On OLED Display


Disclaimer: The IR sensor for this activity is not medical grade. It cannot serve diagnostic purposes. If at any point you are concerned about your temperature, use a medical thermometer. If you are still concerned, consider consulting your family physician.


What you will need for this activity: 


Arduino/USB 
Picture
Arduino Wires
Picture
Infrared Sensor
Picture
OLED Screen
Picture

You should already have completed the regular IR Touchless Temp Sensor Activity. 
Use the button below to go to that activity if you need to look back at that activity. 
Touchless Temp Sensor Activity

Wiring the Sensors

Both Sensors connect to the same part of the Arduino Board. Use jumper wires to connect one of them to the breadboard, and then put the other device's pins on the same breadboard rows.
The wiring for the sensors is as follows:
1) Vin to breadboard to 5V on Arduino 
2) GND to breadboard to GND on Arduino
3) SCL to breadboard to A5 on Arduino 
4) SDA to breadboard to A4 on Arduino
Both on their own
Picture
Picture
Example for Connecting Both
Picture

Coding for Two Devices

To code for two devices, you really should have done each one on its own successfully first. 
Here are buttons to take you to the independent lessons to check if you have already done them. 

OLED Hello World
Touchless Temperature Sensor

Compare the Two Old Codes

Here are the two independent codes that we need to combine to get both devices to work. 
Hello World OLED Text Code
Picture
What are the main code sections in both? 
1) Before setup       2) Setup          3) Loop
Touchless Temp Sensor to Serial Monitor Code
Picture
We need to combine those 3 main parts to make this code work. 
I highly recommend loading up one of your old codes and then making a new save file. 
This way you are starting with something you know works, and then have less to add to finish this. 

An Example of Combining the Code

There are many ways we could combine these two coding examples to make it work 
Picture

"Calibrating" the sensor

Is your Serial Monitor displaying temperatures that are lower or higher than your actual body's temperature? If so, then you can calibrate the sensor by adding a "correction factor" to your code. 
I used a thermometer to check my temperature. Turned out it was 98.5 F but my sensor was reading about 5 too low :( 
To correct the reading by 5 F, I put +5 on the ObjectTempF row
Picture
Here are the the readings after the correction. ​
Picture

Self Paced add on: Touchless temp sense gun

If you have a 3D printer at home, the items you just learned how to use can be put in a 3D print to make a touchless temp sensor. Here are steps for that. It uses the Arduino Nano (a smaller board) but those are only about 7$. 
3D print files: https://www.thingiverse.com/thing:3901662
 
touchless temp sensor gun lesson: https://www.instructables.com/Arduino-Laser-Infrared-Thermometer/
​
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!