Temperature Sensor for Hot Classroom
by amandajnutt in Circuits > Microcontrollers
423 Views, 2 Favorites, 0 Comments
Temperature Sensor for Hot Classroom
This project is designed to create a visual display of temperatures in a hot classroom. It is setup to collect temperatures every 5 seconds (for debugging), but ideally would be changed to every 30 minutes to save battery power.
- Sensor station will collect temperature and convert from C to F. Temp in F will then be sent by radio to the display station.
- Display station will read the temperature from the sensor station and will turn on a light corresponding to the temperature in the room.
- 65-72 = comfortable temperature
- 72-75 = uncomfortable temperature
- 75+ = too hot to learn/work.
Supplies
- 2 Micro:bits
- Forward Education Micro:Bit Header
- breadboard
- 4-jumper wires
- 3- 220R Resistors
- cardboard stand for sensor
- carboard box for display microbit
Design Brief
Design Brief and Pre-Programming Flow Chart
Create Sensor Station Code on MakeCode
Use the attached file to see the code for the sensor station.
Create Display Station Code on MakeCode
Use the attached file to see the code for the display station.
Assemble Display Station: Connect LED's With Breadboard and Connect to Microbits
Assemble LED's with breadboard and connect to micro:bit using Forward Education Header:
Setup Breadboard:
- Connect a ground wire to blue negative rail to the G slot on the header.
- Connect a green LED
- Long leg is plugged into row 3, column j.
- Short leg is plugged into blue negative rail on 4.
- Set up the resistor
- Insert a 220Ω resistor into row 3, column e.
- Insert the other leg into row 3, column g.
- Connect a jumper wire from row 3 to the 0 slot on the header.
- Connect a yellow LED
- long leg is plugged into row 5, column j
- short leg is plugged into blue negative rail on 6.
- Set up the resistor
- Insert one leg of the 220Ω resistor into row 5, column e.
- Insert the other leg into row 5, column g.
- Connect a jumper wire from row 5 to the 1 slot on the header.
- Connect a red LED
- long leg is plugged into row 8, column j
- short leg is plugged into blue negative rail on 9.
- Set up the resistor
- Insert one leg of the 220Ω resistor into row 8, column e.
- Insert the other leg into row 8, column g.
- Connect a jumper wire from row 8 to the 2 slot on the header.
Connect to Forward Education Header:
- Connect the other end of the ground wire into the g slot on the back of the header.
- Connect the other end of the wire in row 3 to the 0 slot on the back of the header.
- Connect the other end of the wire in row 5 to the 1 slot on the back of the header.
- Connect the other end of the wire in row 8 to the 2 slot on the back of the header
Design Cardboard Setup for Project
Design cardboard setup for project. Something similar to what is shown in pictures.
Test Code
- Download codes to both micro:bits.
- Add battery packs to both.
- If needed, grab an ice pack and hot water to test out temperature sensor micro:bit.
- place micro:bit on ice pack to cool it down.
- hold micro:bit over steam of hot water to heat back up
- When the temperature on the sensor station is between 65F and 72F, the green light should turn on.
- When the temperature on the sensor station is between 72F and 75F, the yellow light should turn on.
- When the temperature on the sensor station is between 75F or higher, the red light should turn on.
- If not working, make sure the breadboard is set up correctly and that the micro:bit code created correctly and downloaded again to both micro:bits as needed.
Test Temperature Station in Your Classroom!
- Take your setup to your classroom and let it work!
- LED's should light up as the temperature increases.
- Hope your district decides to do something about the hot temperatures in your room (with no AC).