Skip to content

Commit 1852f9c

Browse files
committed
shields: add MikroE ILLUMINANCE Click shield
Adds support for the MikroE ILLUMINANCE Click shield Signed-off-by: Benjamin Cabé <[email protected]>
1 parent d02725f commit 1852f9c

File tree

6 files changed

+82
-0
lines changed

6 files changed

+82
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright The Zephyr Project Contributors
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SHIELD_MIKROE_ILLUMINANCE_CLICK
5+
def_bool $(shields_list_contains,mikroe_illuminance_click)
21.4 KB
Loading
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
.. _mikroe_illuminance_click_shield:
2+
3+
MikroElektronika Illuminance Click
4+
==================================
5+
6+
Overview
7+
********
8+
9+
`Illuminance Click`_ is a compact add-on board that mimics how humans perceive light. This board
10+
features ams OSRAM TSL2583, a very-high sensitivity light-to-digital converter that transforms light
11+
intensity to a digital signal output capable of the direct I2C interface. It combines one broadband
12+
photodiode (visible plus infrared) and one infrared-responding photodiode on a single CMOS
13+
integrated circuit capable of providing a near-photopic response over an effective 16-bit dynamic
14+
range (16-bit resolution). This Click board |trade| is suitable for general-purpose light sensing
15+
applications to extend battery life and provide optimum viewing in diverse lighting conditions.
16+
17+
.. figure:: images/mikroe_illuminance_click.webp
18+
:align: center
19+
:alt: Illuminance Click
20+
:height: 300px
21+
22+
Illuminance Click
23+
24+
Requirements
25+
************
26+
27+
This shield can only be used with a board that provides a mikroBUS |trade| socket and defines a
28+
``mikrobus_i2c`` node label for the mikroBUS |trade| I2C interface. See :ref:`shields` for more
29+
details.
30+
31+
Programming
32+
***********
33+
34+
Set ``-DSHIELD=mikroe_illuminance_click`` when you invoke ``west build``. For example:
35+
36+
.. zephyr-app-commands::
37+
:zephyr-app: samples/sensor/light_polling
38+
:board: mikroe_quail
39+
:shield: mikroe_illuminance_click
40+
:goals: build
41+
42+
See :dtcompatible:`ams,tsl2561` for documentation on the additional binding properties available for
43+
the TSL2561 sensor, for example to adjust the gain and integration time.
44+
45+
References
46+
**********
47+
48+
- `Illuminance Click`_
49+
50+
.. _Illuminance Click: https://www.mikroe.com/illuminance-click
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright The Zephyr Project Contributors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/ {
7+
aliases {
8+
light-sensor = &tsl2561_mikroe_illuminance_click;
9+
};
10+
};
11+
12+
&mikrobus_i2c {
13+
status = "okay";
14+
15+
tsl2561_mikroe_illuminance_click: tsl2561@49 {
16+
compatible = "ams,tsl2561";
17+
reg = <0x49>;
18+
};
19+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
shield:
2+
name: mikroe_illuminance_click
3+
full_name: Illuminance Click
4+
vendor: mikroe
5+
supported_features:
6+
- sensor

samples/sensor/light_polling/sample.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ tests:
2424
- frdm_mcxw71/mcxw716c
2525
- adafruit_qt_py_rp2040/rp2040 # adafruit_tsl2591 shield
2626
- mikroe_clicker_ra4m1/r7fa4m1ab3cfm # mikroe_ambient_2_click shield
27+
- mikroe_quail/stm32f427xx # mikroe_illuminance_click shield
2728
extra_args:
2829
- platform:adafruit_qt_py_rp2040/rp2040:SHIELD="adafruit_tsl2591"
2930
- platform:mikroe_clicker_ra4m1/r7fa4m1ab3cfm:SHIELD="mikroe_ambient_2_click"
31+
- platform:mikroe_quail/stm32f427xx:SHIELD="mikroe_illuminance_click"

0 commit comments

Comments
 (0)