Ambient light shield

3,45

7 op voorraad

SKU: HE0848-915 Categorieën: , , Tags: , , , Verzenden:

Beschrijving

Ambient light shield meet de sterkte van het omgevingslicht. I2C Interface digitale verlichtingssensor gebaseerd op de BH1750FVI chip. Deze sensor kan de lichtintensiteit meten tussen 0 en 65535 Lux (L).

Ambient light shield specificaties:
– I2C-interface
– Twee te selecteren I2C adressen
– BH1750FVI Verlichtingssterkte naar digitaal converter
– Breed bereik en hoge resolutie. (1-65535 lx)
– 2mm bevestigings gaten
Arduino library

D1 mini GPIO Shield
D1 5 SCL
D2 4 SDA

Arduino code voorbeeld:

Installeer de library: https://github.com/claws/BH1750

#include <Wire.h>
#include <BH1750.h>

/*
  BH1750 can be physically configured to use two I2C addresses:
    - 0x23 (most common) (if ADD pin had < 0.7VCC voltage)
    - 0x5C (if ADD pin had > 0.7VCC voltage)
  Library uses 0x23 address as default, but you can define any other address.
  If you had troubles with default value - try to change it to 0x5C.
*/
BH1750 lightMeter(0x23);

void setup(){

  Serial.begin(9600);

  // Initialize the I2C bus (BH1750 library doesn't do this automatically)
  Wire.begin();
  // On esp8266 you can select SCL and SDA pins using Wire.begin(D4, D3);

  /*
    BH1750 has six different measurement modes. They are divided in two groups;
    continuous and one-time measurements. In continuous mode, sensor continuously
    measures lightness value. In one-time mode the sensor makes only one
    measurement and then goes into Power Down mode.
    Each mode, has three different precisions:
      - Low Resolution Mode - (4 lx precision, 16ms measurement time)
      - High Resolution Mode - (1 lx precision, 120ms measurement time)
      - High Resolution Mode 2 - (0.5 lx precision, 120ms measurement time)
    By default, the library uses Continuous High Resolution Mode, but you can
    set any other mode, by passing it to BH1750.begin() or BH1750.configure()
    functions.
    [!] Remember, if you use One-Time mode, your sensor will go to Power Down
    mode each time, when it completes a measurement and you've read it.
    Full mode list:
      BH1750_CONTINUOUS_LOW_RES_MODE
      BH1750_CONTINUOUS_HIGH_RES_MODE (default)
      BH1750_CONTINUOUS_HIGH_RES_MODE_2
      BH1750_ONE_TIME_LOW_RES_MODE
      BH1750_ONE_TIME_HIGH_RES_MODE
      BH1750_ONE_TIME_HIGH_RES_MODE_2
  */

  // begin returns a boolean that can be used to detect setup problems.
  if (lightMeter.begin(BH1750::CONTINUOUS_HIGH_RES_MODE)) {
    Serial.println(F("BH1750 Advanced begin"));
  }
  else {
    Serial.println(F("Error initialising BH1750"));
  }

}


void loop() {

  uint16_t lux = lightMeter.readLightLevel();
  Serial.print("Light: ");
  Serial.print(lux);
  Serial.println(" lx");
  delay(1000);

}

Reviews

Er zijn nog geen beoordelingen.

Enkel ingelogde klanten die dit product gekocht hebben, mogen een beoordeling schrijven.

Verzending binnen Nederland

Dit product word bezorgd via PostNL briefpost in een bubbel envelop.
- € 3.45 verzendkosten voor orders onder de € 25,-.
- € 2.95 verzendkosten voor orders tussen € 25 - 45,-.
- Orders boven de € 45,- worden gratis verstuurd per PostNL briefpost.

  • Op werkdagen voor 16:30 uur besteld, zelfde dag verzonden!
    Klik hier voor de kosten buiten Nederland.
  • Product vraag?

      Uw naam (verplicht)

      Uw email (verplicht)

      Uw vraag