Temperature Activated Door Lock




This project monitors temperature using a TMP36 sensor and displays it on a 128x64 OLED screen. If the temperature exceeds 80°F, the system activates a warning system by flashing an LED and sounding a buzzer. Additionally, the lock mechanism (servo motor) will also react to the temperature.
Supplies

- 1 x Arduino Uno R3 - runs the code for the project.
- 1 x Bread Board
- 1 x Red LED - flashes on and off when the temperature is too high.
- 1 x 220Ω Resistor - used with the LED to stop short circuits.
- TMP36 Temperature Sensor - reads what the current temperature is.
- 1 x Servo Motor - acts like the door lock for the project.
- 15 x Jumper Wires - use male to male, and male to female, wires.
- 1 x Piezo Buzzer - buzzes when the temperature gets to high, like and alarm.
- 1 x 128x64 OLED display - displays the fake company name, if the temperature is above or below 80F, and if the door is locked or unlocked.
Connect the Arduino to the Breadboard

- 5V → Bread Board positive strip (+)
- GND → Bread Board negative strip (-)
Connect the 128x64 OLED Display (I2C)



- VCC → 5V
- GND → GND
- SDA → A4
- SCL/SCK → A5
Connect the TMP36 Temperature Sensor


- VCC → 5V
- GND → GND
- Vout → A0
Connect the LED


- LED anode (+) → Digital Pin 13
- LED cathode (–) → 220Ω Resistor → GND
Connect the Piezo Buzzer


- Positive → Digital Pin 12
- Negative → GND
Connect the Servo Motor



- Signal(Yellow) → Digital Pin 7
- Power(Red) → 5V
- GND(brown or black) → GND
Download Arduino IDE (If You Don't Have It)

- Open Arduino IDE.
- Install the program if you don't already have it.
- Make a new sketch and name it, try naming it something that describes the project.
Make Your Own Bitmaps

Upload the Code




- Paste the code into your Arduino IDE sketch.
- Paste you bitmap code in the the areas under the "Bitmaps Here" comment, in the:
const unsigned char welcomeBitmap[] U8X8_PROGMEM = {}
- Connect your Arduino Uno via USB Cable.
- Upload the code to the Arduino.
Downloads
Troubleshooting




If the circuit isn't working, try:
- Double checking that everything is connected to the correct places.
- Double check you've installed all your Libraries.
- Adjust the needed temperature for the alarm to activate (like shown in the picture).