Cov txheej txheem:
- Kauj Ruam 1: Yam Koj Xav Tau..
- Kauj Ruam 2: Kev Sib Txuas:
- Kauj ruam 3: Code:
- Kauj Ruam 4: Cov ntawv thov:
Video: Arduino Nano - BH1715 Digital Ambient Light Sensor Qhia: 4 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
BH1715 yog digital Ambient Light Sensor nrog I²C tsheb npav sib cuam tshuam. BH1715 feem ntau yog siv kom tau txais cov ntaub ntawv teeb pom kev zoo los kho LCD thiab Keypad lub teeb pom kev zoo rau lub xov tooj ntawm tes. Cov cuab yeej no muaj 16-ntsis kev daws teeb meem thiab ntsuas ntsuas tau ntau, tso cai kuaj pom los ntawm.23 txog 100, 000 lux. Nov yog nws qhov ua qauv qhia nrog Arduino nano.
Kauj Ruam 1: Yam Koj Xav Tau..
1. Arduino nano
2. HLB 1715
3. I²C Cable
4. I²C Shield rau Arduino Nano
Kauj Ruam 2: Kev Sib Txuas:
Siv daim I2C daim thaiv rau Arduino Nano thiab maj mam thawb nws hla tus pin ntawm Nano.
Tom qab ntawd txuas ib qho kawg ntawm I2C cable rau BH1715 sensor thiab lwm qhov kawg rau I2C daim ntaub thaiv.
Kev sib txuas tau qhia hauv daim duab saum toj no.
Kauj ruam 3: Code:
Tus lej Arduino rau BH1715 tuaj yeem rub tawm los ntawm peb GitHub chaw cia khoom-Dcube Store.
Nov yog qhov txuas rau tib yam:
github.com/DcubeTechVentures/BH1715…
Peb suav nrog tsev qiv ntawv Wire.h los pab txhawb I2c kev sib txuas lus ntawm lub sensor nrog Arduino board.
Koj tseem tuaj yeem luam cov cai los ntawm no, nws tau muab raws li hauv qab no:
// Faib nrog daim ntawv tso cai yuav dawb.
// Siv nws txhua txoj hauv kev uas koj xav tau, muaj txiaj ntsig lossis pub dawb, muab nws haum rau hauv daim ntawv tso cai ntawm nws cov haujlwm ua haujlwm.
SWB 1715 Stb
// Cov cai no tau tsim los ua haujlwm nrog BH1715_I2CS I2C Mini Module muaj nyob hauv Dcube Store.
#suav nrog
// BH1715 I2C chaw nyob yog 0x23 (35)
#define Ntxiv 0x23
void teeb tsa ()
{
// Pib I2C kev sib txuas lus li MASTER
Hlau.begin ();
// Initialise Serial Communication, teeb baud tus nqi = 9600
Serial.begin (9600);
// Pib I2C Kev Kis
Wire.beginTransmission (Addr);
// Xa lub zog ntawm kev hais kom ua
Hlau.write (0x01);
// Nres I2C Kev Kis
Wire.endTransmission ();
// Pib I2C Kev Kis
Wire.beginTransmission (Addr);
// Xa cov lus ntsuas ntsuas mus tas li
Hlau.write (0x10);
// Nres I2C Kev Kis
Wire.endTransmission ();
ncua (300);
}
void lub voj ()
{
unsigned int cov ntaub ntawv [2];
// Thov 2 byte ntawm cov ntaub ntawv
Wire.requestFrom (Addr, 2);
// Nyeem 2 bytes ntawm cov ntaub ntawv
// ALS msb, ALS lsb
yog (Wire.available () == 2)
{
cov ntaub ntawv [0] = Wire.read ();
cov ntaub ntawv [1] = Wire.read ();
}
ncua (300);
// hloov cov ntaub ntawv
ntab luminance = ((cov ntaub ntawv [0] * 256) + cov ntaub ntawv [1]) / 1.20;
// Cov ntaub ntawv tso tawm rau tus saib xyuas
Serial.print ("Ambient Light Luminance:");
Serial.print (luminance);
Serial.println ("lux");
}
Kauj Ruam 4: Cov ntawv thov:
BH1715 yog lub teeb pom kev ib puag ncig lub teeb pom kev zoo uas tuaj yeem suav nrog hauv xov tooj ntawm tes, LCD TV, NCEJ PC thiab lwm yam. siv lub teeb pom kev zoo.
Pom zoo:
Arduino Nano - TSL45315 Ambient Light Sensor Qhia: 4 Kauj Ruam
Arduino Nano - TSL45315 Ambient Light Sensor Qhia: TSL45315 yog lub teeb pom kev zoo ib puag ncig digital. Nws kwv yees tib neeg qhov muag teb raws ntau yam teeb pom kev zoo. Cov cuab yeej muaj peb lub sijhawm xaiv ua ke thiab muab ncaj qha 16-ntsis lux tso tawm ntawm I2C tsheb npav sib cuam tshuam. Cov cuab yeej siv
Raspberry Pi - TSL45315 Ambient Light Sensor Java Qhia: 4 Kauj Ruam
Raspberry Pi - TSL45315 Ambient Light Sensor Java Qhia: TSL45315 yog lub teeb pom kev zoo ib puag ncig digital. Nws kwv yees tib neeg qhov muag teb raws ntau yam teeb pom kev zoo. Cov cuab yeej muaj peb lub sijhawm xaiv ua ke thiab muab ncaj qha 16-ntsis lux tso tawm ntawm I2C tsheb npav sib cuam tshuam. Cov cuab yeej siv
Raspberry Pi - TSL45315 Ambient Light Sensor Python Qhia: 4 Kauj Ruam
Raspberry Pi - TSL45315 Ambient Light Sensor Python Qhia: TSL45315 yog lub teeb pom kev zoo ib puag ncig digital. Nws kwv yees tib neeg qhov muag teb raws ntau yam teeb pom kev zoo. Cov cuab yeej muaj peb lub sijhawm xaiv ua ke thiab muab ncaj qha 16-ntsis lux tso tawm ntawm I2C tsheb npav sib cuam tshuam. Cov cuab yeej siv
Kuv Me Me Whoop: Daim Ntawv Qhia Whoop + Cov Lus Qhia thiab Cov Lus Qhia: 8 Kauj Ruam
Kuv Me Me Whoop: Daim Ntawv Qhia Whoop + Cov Lus Qhia thiab Cov Lus Qhia: Kev Ceeb Toom: Tam sim no koj tab tom nkag mus rau kuv thawj qhov kev qhia, thiab koj yuav ntsib ntau yam kev ruam thiab tsis muaj phiaj xwm thiab/lossis txuj ci. Paub txog qhov no yog kuv tus kheej Tiny Whoop teeb tsa uas kuv siv txhua hnub, yog li kuv xav tias kuv yuav qhia nws. Nws yog phooj ywg mus ncig (tsis muaj
Yuav Ua Li Cas Ua Tus Qhia Qhia thiab Qhia: 8 Kauj Ruam
Yuav Ua Li Cas Nthuav Qhia Qhia thiab Qhia: Nov yog phau ntawv qhia rau kev ua Qhia Qhia thiab Qhia. Nws yog qhov tseem ceeb tshaj plaws ntawm cov xwm txheej muaj nyob rau Hnub Friday, Peb Hlis 9, 2007, tab sis kuj tseem yog qhov tshwm sim yav dhau los ntawm qhov xwm txheej no, Squid Labs Lub Teeb Pom Kev Zoo. Lub hom phiaj ntawm Kev Qhia thiab Xov Tooj