Product successfully added to your shopping cart
Quantity
Total
There are 0 items in your cart. There is 1 item in your cart.
Total products
Total shipping  To be determined
Total
Continue shopping Proceed to checkout

Weather click

MIKROE-1978

29 g

Weather click carries BME280 integrated environmental unit from Bosch. It’s a sensor that detects humidity, pressure and temperature, specifically designed for low current consumption and long term stability.

More details

 
 
 

$22.00

Quantity Unit Price
5 $20.90
20 $19.80

Weather click carries BME280 integrated environmental unit from Bosch. It’s a sensor that detects humidity, pressure and temperature, specifically designed for low current consumption and long term stability. Those features make it ideal for applications like home automation control, personalized weather stations, sport and fitness tools and so on. The sensor has three operating modes: sleep, forced, and normal. Also, the humidity and pressure sensors can operate independently. Weather click can communicate with the target MCU either through mikroBUS SPI or I2C interfaces. The board is designed to use a 3.3V power supply.

Downloads

Product Type Enviromental combo
Applications Context awareness, home automation control, personalized weather stations, sport and fitness tools and so on
On-board modules Bosch BME280
Key Features Three sensors in one: pressure, humidity, temperature. Humidity sensor response time: 1 sec. Multiple operating modes: sleep, force, normal
Key Benefits Long term stability. Humidity and pressure sensors can operate independently. Fast response time
Interface I2C or SPI
Power Supply 3.3V
Compatibility mikroBUS
Click board size S (28.6 x 25.4 mm)

Hardware

The BME280 sensor that detects humidity, pressure and temperature, is specifically designed for low current consumption and long-term stability. Those features make it ideal for applications like home automation control, personalized weather stations, sport and fitness tools and so on.

Typical applications for the BME280 unit are listed in the official data sheet as follows:

  • Context awareness, e.g. skin detection, room change detection
  • Fitness monitoring / well-being
  • Warning regarding dryness or high temperatures
  • Measurement of volume and air flow
  • Home automation control
  • control heating, venting, air conditioning (HVAC)
  • Internet of things
  • GPS enhancement (e.g. time-to-first-fix improvement, dead reckoning, slope detection)
  • Indoor navigation (change of floor detection, elevator detection)
  • Outdoor navigation, leisure and sports applications
  • Weather forecast
  • Vertical velocity indication (rise/sink speed)

Programming

These above mentioned operating modes are for configuring data rate, noise, response time and current consumption to the needs of the user. To change from mode to mode, you must first put the device to sleep.

There is no way to go from Normal to Forced mode directly. With an internal IIR filter, the BME280 effectively increases the resolution of the pressure and temperature output data to 20 bit.

This snippet setups up the TFT to display the temperature, humidity, and pressure from the Weather click.

 1 void main()
 2 {
 3     MCU_Init();
 4     Display_Init();
 5     delay_ms(2000);
 6     TFT_Fill_Screen(CL_WHITE);
 7     delay_ms(200);
 8     tmp = BME280_GetID();
 9     if (tmp != BME280_CHIP_ID) 
10     {
11         TFT_Write_Text("CHIP ERROR", 10, 10);
12         while (1); //stop program
13     } 
14     else 
15     {
16         TFT_Set_Font(&HandelGothic_BT21x22_Regular, CL_RED, FO_HORIZONTAL);
17         TFT_Write_Text("Temperature [C]", 10, 50);
18         TFT_Set_Font(&HandelGothic_BT21x22_Regular, CL_NAVY, FO_HORIZONTAL);
19         TFT_Write_Text("Humidity [%RH]", 10, 80);
20         TFT_Set_Font(&HandelGothic_BT21x22_Regular, CL_BLACK, FO_HORIZONTAL);
21         TFT_Write_Text("Pressure [hPa]", 10, 110);                                   //hPa = mBar
22     }
23 
24     delay_ms(200);
25     BME280_ReadCalibrationParams();                                               //Read calibration parameters
26     BME280_SetOversamplingPressure(BME280_OVERSAMP_1X);
27     BME280_SetOversamplingTemperature(BME280_OVERSAMP_1X);
28     BME280_SetOversamplingHumidity(BME280_OVERSAMP_1X);
29     BME280_SetOversamplingMode(BME280_FORCED_MODE);
30 
31     while (BME280_IsMeasuring());
32     BME280_ReadMeasurements();
33 
34     BME280_INIT();
35 
36     while (1)
37     {
38         while (BME280_IsMeasuring());   //Wait for BME280 to finish measuring
39 
40         BME280_ReadMeasurements();      //Get measurments
41         Display_Values();               //Display them on the TFT
42         BME280_INIT();                  //Re-Init
43         delay_ms(1500);
44     }
45 
46 }

Code examples for Weather click, written for MikroElektronika hardware and compilers are available on Libstock.

You Might Also Need

Products in the same category

Send a message

Weather click

Weather click

What can we do for you?