Cov txheej txheem:

UV Index Meter Siv ML8511 ULTRAVIOLET Sensor Arduino: 6 Kauj Ruam
UV Index Meter Siv ML8511 ULTRAVIOLET Sensor Arduino: 6 Kauj Ruam

Video: UV Index Meter Siv ML8511 ULTRAVIOLET Sensor Arduino: 6 Kauj Ruam

Video: UV Index Meter Siv ML8511 ULTRAVIOLET Sensor Arduino: 6 Kauj Ruam
Video: DRDO develops Ultraviolet disinfection tower 'UV Blaster' for Coronavirus | Current Affairs 2020 2024, Kaum ib hlis
Anonim

Hauv qhov kev qhia no peb yuav kawm paub ntsuas Sun UV Index siv ML8511 ULTRAVIOLET Sensor.

Saib Video!

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
Koj Yuav Tsum Tau Dab Tsi
  • Arduino Uno lossis lwm lub Rooj Tswjhwm Saib Arduino
  • UV sensor ML8511
  • OLED Zaub
  • Cov qhob cij
  • Jumper xov hlau
  • Visuino software: Rub tawm ntawm no

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
  • Txuas UV sensor tus pin GND rau Arduino tus pin GND
  • Txuas UV sensor tus pin 3V3 rau Arduino tus pin 3.3V
  • Txuas UV sensor tus pin EN rau Arduino tus pin 3.3V
  • Txuas UV sensor analog pin OUT rau Arduino analog pin 0
  • Txuas Arduino analog pin 1 rau Arduino tus pin 3.3V
  • Txuas OLED Display pin VCC rau Arduino tus pin 5V
  • Txuas OLED Display pin GND rau Arduino tus pin GND
  • Txuas OLED Display pin SDA rau Arduino pin SDA
  • Txuas OLED Display pin SCL rau Arduino tus pin SCL

Kauj Ruam 3: Pib Visuino, thiab Xaiv Arduino UNO Board Type

Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type
Pib Visuino, thiab Xaiv Arduino UNO Board Type

Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Rub tawm Dawb version lossis sau npe rau Kev Sim Dawb.

Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2

Kauj Ruam 4: Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam

Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
Hauv Visuino Ntxiv, Teeb & Txuas Cheeb Tsam
  • Ntxiv UV tivthaiv "UV Teeb Sensor Lapis ML8511"
  • Ntxiv OLED tivthaiv "SSD1306/SH1106 OLED Display (I2C)"
  • Tam sim no Ob npaug nyem rau ntawm "DisplayOLED1" tivthaiv.
  • Hauv cov ntsiab lus qhov rai rub "Kos cov ntawv" mus rau sab laug, thiab hauv cov khoom qhov rai teeb tsa cov ntawv rau: UV Siv qhov hnyav mW/cm2
  • Hauv cov ntsiab lus qhov rai rub "Cov ntawv sau" mus rau sab laug, thiab hauv cov khoom vaj khoom tsev teeb tsa qhov loj me rau 3 thiab Y txog 30
  • Kaw lub Elements window
  • Txuas Arduino board Analog tus pin 0 rau "UVLight1" tus pin sensor
  • Txuas Arduino board Analog tus pin 1 rau "UVLight1" tus pin siv
  • Txuas UVLight1 tus pin tawm mus rau DisplayOLED1> Text Field1 tus pin Hauv
  • Txuas DisplayOLED1 I2C Tawm rau Arduino board I2C Hauv

Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code

Tsim, Sau, thiab Tso Tawm Arduino Code
Tsim, Sau, thiab Tso Tawm Arduino Code

Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.

Kauj ruam 6: Ua si

Yog tias koj ua lub zog Arduino UNO module, OLED Display yuav pib qhia tus nqi ntsuas UV tam sim no.

Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino qhov haujlwm, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub nws thiab qhib nws hauv Visuino:

Pom zoo: