IC3 TIỂU HỌC

 ĐỀ 1: https://quizizz.com/join?gc=80835988

ĐỀ 2: https://quizizz.com/join?gc=79605096 

ĐỀ 3: https://quizizz.com/join?gc=91336157

ĐỀ 4: https://quizizz.com/join?gc=85169905

https://drive.google.com/file/d/1rQpIsRehAlMo10bwBtyIlChoLcUjfcVd/view?usp=sharing

#include <WiFi101.h>

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

#include <FirebaseArduino.h>


#define FIREBASE_HOST "https://maphht-default-rtdb.firebaseio.com"

#define FIREBASE_AUTH "rCELXALVU3I8CBuiLtEzg6kRYnJ2pmXzNTLgzfBZ"

#define WIFI_SSID "THONG HUONG"

#define WIFI_PASSWORD "26071993"


#define SENSOR_PIN A0


LiquidCrystal_I2C lcd(0x27, 16, 2); // Địa chỉ I2C của màn hình LCD


void setup() {

  Serial.begin(9600);

   WiFi.begin(WIFI_SSID,WIFI_PASSWORD);

  while (WiFi.status()!=WL_CONNECTED){

    delay(500);

    Serial.print(".");

  }

  // Initialize LCD

  lcd.begin(16, 2);

  lcd.print("Sensor Data:");


  // Connect to Wi-Fi

  Firebase.begin(FIREBASE_HOST, FIREBASE_AUTH);


  // Your code to initialize sensor

}


void loop() {

  // Read sensor data

  int sensorValue = analogRead(SENSOR_PIN);


  // Display sensor data on LCD

  lcd.setCursor(0, 1);

  lcd.print("Sensor Value: ");

  lcd.print(sensorValue);


  // Push data to Firebase

  Firebase.setInt("/HHT", sensorValue);


  Serial.println("Data sent to Firebase!");

   Serial.println(sensorValue);


  delay(5000); // Delay for 5 seconds before the next reading

}

https://github.com/bblanchon/ArduinoJson/tree/5.x

http://arduino.esp8266.com/stable/package_esp8266com_index.json

https://github.com/kkeonline/ch340?tab=readme-ov-file

https://sparks.gogo.co.nz/ch340.html

Nhận xét