Cov txheej txheem:
- Kauj Ruam 1: Daim duab Circuit Court
- Kauj ruam 2: Pib Txuas
- Kauj Ruam 3: Txhim Kho Kev Teeb ntawm Arduino IDE
- Kauj ruam 4: Code Uploading
- Kauj ruam 5: Xeem
Video: Kev ntsuas kub thiab av noo Siv OLED Zaub: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Cov ntaub ntawv xav tau-
1. Arduino NANO:
2. DHT11 sensor:
3. OLED zaub:
4. Creadboard:
5. Jumper Wires:
Kev yuav khoom txuas yog rau INDIA nkaus xwb.
Kauj Ruam 1: Daim duab Circuit Court
Tom qab sau tag nrho cov khoom siv xav tau. Rub tawm daim duab kab lus no kom nkag siab zoo dua.
Kauj ruam 2: Pib Txuas
Muab daim duab hluav taws xob tso rau ntawm koj xub ntiag thiab pib txuas cov xov hlau.
Kauj Ruam 3: Txhim Kho Kev Teeb ntawm Arduino IDE
Tam sim no, tom qab ua tiav kev sib txuas qhib qhib arduino IDE thiab xaiv koj hom board thiab COM board. Kuj rub tawm thiab suav nrog cov tsev qiv ntawv.
Kauj ruam 4: Code Uploading
Tam sim no, suav thiab xa cov chaws.
CODE:
#include "DHT.h" #include "U8glib.h" U8GLIB_SSD1306_128X64 u8g (U8G_I2C_OPT_NONE | U8G_I2C_OPT_DEV_0);
#define DHTPIN 2
#define DHTTYPE DHT11
DHT dht (DHTPIN, DHTTYPE, 6); kab ntawv [10];
void drawTest (tsis muaj dab tsi) {
u8g.setFont (u8g_font_unifont);
u8g.drawStr (0, 30, "Kub &");
u8g.drawStr (0, 50, "Humidity Meter");
u8g.setFont (u8g_font_helvB08); //
u8g.drawStr (7, 60, "PR ROBOTICS");
}
void teeb tsa () {
dht.begin ();
u8g.firstPage ();
ua {
drawTest ();
}
thaum (u8g.nextPage ());
ncua (3000); }
void voj () {
ncua (500);
ntab h = dht.readHumidity ();
ntab t = dht.readTemperature ();
yog (isnan (h) || isnan (t))
{
rov qab;
}
u8g.firstPage ();
ua {
u8g.setFont (u8g_font_helvB08);
u8g.drawStr (0, 15, "Vaum:");
u8g.drawStr (80, 15, dtostrf (h, 5, 2, str));
u8g.drawStr (120, 15, "%");
u8g.drawStr (0, 30, "Kub:");
u8g.drawStr (80, 30, dtostrf (t, 5, 2, str)); u8g.drawStr (120, 30, "\ 260C");
u8g.drawStr (10, 60, "BY: PR ROBOTICS");
}
thaum (u8g.nextPage ()); }
Kauj ruam 5: Xeem
Tam sim no, tsuas yog sim koj qhov project.
Pom zoo:
Siv Smartphone Raws Li Tsis Siv Tus Kheej Ntsuas Kub / Tus Ntsuas Ntsuas Kub: 8 Kauj Ruam (nrog Duab)
Siv Smartphone Raws Li Tsis Siv Tus Kws Ntsuas Kub / Tus Ntsuas Kub Portable: Ntsuas lub cev kub nrog qhov tsis sib cuag / tsis sib cuag zoo li rab phom thermo. Kuv tsim txoj haujlwm no vim tias Thermo Gun tam sim no kim heev, yog li kuv yuav tsum tau txais lwm txoj hauv kev los ua DIY. Thiab lub hom phiaj yog ua nrog cov peev txheej qis .SuppliesMLX90614Ardu
Kev Ntsuas thiab Kev Ntsuas Kub Siv HIH6130 thiab Arduino Nano: 4 Cov Kauj Ruam
Kev Ntsuas thiab Kev Ntsuas Kub Siv HIH6130 thiab Arduino Nano: HIH6130 yog qhov ntsuas cua thiab ntsuas kub nrog cov zis digital. Cov ntsuas no muab qib raug ntawm ± 4% RH. Nrog kev lag luam-ua kom muaj kev ruaj ntseg mus sij hawm ntev, qhov tseeb kub-them nyiaj digital I2C, Kev lag luam ua rau muaj kev ntseeg siab, Kev siv hluav taws xob
Kev Ntsuas thiab Kev Ntsuas Kub Siv HTS221 thiab Arduino Nano: 4 Cov Kauj Ruam
Kev Ntsuas thiab Kev Ntsuas Kub Siv HTS221 thiab Arduino Nano: HTS221 yog lub ntsuas hluav taws xob me me uas muaj peev xwm ntsuas tau rau qhov txheeb ze thiab qhov kub thiab txias. Nws suav nrog lub hauv paus ntsiab lus thiab cov teeb liab sib xyaw daim ntawv thov tshwj xeeb kev sib txuas (ASIC) los muab cov ntaub ntawv ntsuas los ntawm cov lej
Kev Ntsuas thiab Kev Ntsuas Kub Siv HTS221 thiab Raspberry Pi: 4 Cov Kauj Ruam
Kev Ntsuas thiab Kev Ntsuas Kub Siv HTS221 thiab Raspberry Pi: HTS221 yog lub ntsuas hluav taws xob me me uas muaj peev xwm ntsuas tau rau qhov txheeb ze thiab qhov kub thiab txias. Nws suav nrog lub hauv paus ntsiab lus thiab cov teeb liab sib xyaw daim ntawv thov tshwj xeeb kev sib txuas (ASIC) los muab cov ntaub ntawv ntsuas los ntawm cov lej
Kev Ntsuas thiab Kev Ntsuas Kub Siv HIH6130 thiab Raspberry Pi: 4 Kauj Ruam
Kev Ntsuas Cov Ntsuas thiab Kub Siv HIH6130 thiab Raspberry Pi: HIH6130 yog qhov ntsuas cua thiab ntsuas kub nrog cov zis digital. Cov ntsuas no muab qib raug ntawm ± 4% RH. Nrog kev lag luam-ua kom muaj kev ruaj ntseg mus sij hawm ntev, qhov tseeb kub-them nyiaj digital I2C, Kev lag luam ua rau muaj kev ntseeg siab, Kev siv hluav taws xob