• The link of project https://www.tinkercad.com/things/dxdu0IrZ1BY-terrific-jarv-kasi/editelsharecode=g56k68AbJLYN_nAEmzWGbUmdzzlUeKyfjEkh4pTljuk Conclusion
  • Figure 1: General view of project Figure 2




    Download 0,5 Mb.
    bet3/3
    Sana20.05.2024
    Hajmi0,5 Mb.
    #244764
    1   2   3
    Bog'liq
    5and6tasks

    Figure 1: General view of project

    Figure 2: The list of used tools

    Figure 3: Schematic view


    Codes of project
    #include
    #define lm35 A1
    #define buzzer 13
    #define led 12


    LiquidCrystal_I2C lcd(32, 16, 2);


    void setup() {
    Serial.begin(9600);
    lcd.begin(16,2);
    lcd.init();
    lcd.backlight();
    lcd.clear();
    pinMode(buzzer, OUTPUT);
    pinMode(led, OUTPUT);
    }


    void loop() {
    float reading = analogRead(lm35);
    float voltage = reading * (5.0 / 1024.0);
    float temperatureC = (voltage - 0.5) * 100;
    lcd.clear();
    lcd.setCursor(2, 0);
    lcd.print("Temperature: ");
    lcd.setCursor(4, 1);
    lcd.print(temperatureC);
    lcd.print(" C");
    if(temperatureC > 50 || temperatureC < 0) {
    digitalWrite(led, HIGH);
    tone(buzzer, 500, 375);
    delay(375);
    digitalWrite(led, LOW);
    delay(375);
    }
    else {
    digitalWrite(13,LOW);
    digitalWrite(led, LOW);
    delay(750);
    }
    }
    The link of project
    https://www.tinkercad.com/things/dxdu0IrZ1BY-terrific-jarv-kasi/editel?sharecode=g56k68AbJLYN_nAEmzWGbUmdzzlUeKyfjEkh4pTljuk

    Conclusion
    In this project, we successfully implemented a system that reads temperature data from a TMP36 sensor, displays it on an LCD1602 display, and uses a buzzer to alert when the temperature increases or decreases. This project combines several fundamental components and techniques in electronics and programming, demonstrating how microcontrollers can be used to create practical and interactive systems.
    By combining these components, we created a system that not only monitors temperature but also provides real-time feedback and alerts, making it a practical solution for various applications. This project showcases the importance of integrating multiple technologies to build comprehensive and effective monitoring systems.
    Download 0,5 Mb.
    1   2   3




    Download 0,5 Mb.

    Bosh sahifa
    Aloqalar

        Bosh sahifa



    Figure 1: General view of project Figure 2

    Download 0,5 Mb.