ST / X_NUCLEO_6180XA1

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   HelloWorld_6180XA1 SunTracker_BLE Servo_6180XA1 BLE_HR_Light ... more

Fork of X_NUCLEO_6180XA1 by ST Expansion SW Team

X-NUCLEO-6180XA1 Proximity and Ambient Light Sensor Expansion Board Firmware Package

Introduction

This firmware package includes Components Device Drivers and Board Support Package for STMicroelectronics' X-NUCLEO-6180XA1 Proximity and ambient light sensor expansion board based on VL6180X.

Firmware Library

Class X_NUCLEO_6180XA1 is intended to represent the Proximity and ambient light sensor expansion board with the same name.

The expansion board is providing the support of the following components:

  1. on-board VL6180X proximity and ambient light sensor,
  2. up to three additional VL6180X Satellites,
  3. on-board 4-digit display

It is intentionally implemented as a singleton because only one X-NUCLEO-VL6180XA1 at a time might be deployed in a HW component stack. In order to get the singleton instance you have to call class method `Instance()`, e.g.:

// Sensors expansion board singleton instance
static X_NUCLEO_6180XA1 *6180X_expansion_board = X_NUCLEO_6180XA1::Instance();

Arduino Connector Compatibility Warning

Using the X-NUCLEO-6180XA1 expansion board with the NUCLEO-F429ZI requires adopting the following patch:

  • to remove R46 resistor connected to A3 pin;
  • to solder R47 resistor connected to A5 pin.

Alternatively, you can route the Nucleo board’s A5 pin directly to the expansion board’s A3 pin with a wire. In case you patch your expansion board or route the pin, the interrupt signal for the front sensor will be driven on A5 pin rather than on A3 pin.


Example Applications

Revisions of Components/VL6180X/vl6180x_class.cpp

Revision Date Message Actions
40:b4d20279e312 2016-02-24 Fixed VL6180X::VL6180x_UpdateByte passing dangling pointer to I2cWrite File  Diff  Annotate
38:18abb7f7dcb2 2015-12-03 Fixed compilation warnings File  Diff  Annotate
29:6d6b67e2e212 2015-11-06 Updated AlsSetThresholds function File  Diff  Annotate
28:7c9031e96c22 2015-11-05 Settled AlsSetThresholds function that takes the parameters in lux. File  Diff  Annotate
26:db0cdc5ecc0a 2015-11-04 Settled AlsSetThresholds and AlsGetThresholds. File  Diff  Annotate
24:025afc3fe30f 2015-11-02 Modified file cfg.h by introducing #define EXTENDED_RANGE_50CM. File  Diff  Annotate
23:dfb5ccc7b780 2015-10-30 Updated Display_class.h File  Diff  Annotate
20:dd8390d615bf 2015-10-28 Removed PollDelay and introduced simply wait_ms function.; Updated file platform.h.; Fixed all FIXME.; Fixed error printing.; Updated x_nucleo_6180xa1.cpp file. File  Diff  Annotate
19:39ea6bab0e5b 2015-10-28 Removed some undefined funct preventing the lib to be self contained. Added Serial pc global variable. File  Diff  Annotate
16:0d4776564733 2015-10-27 Added display class. File  Diff  Annotate
15:454710d17358 2015-10-20 Fixed the function StartMeasurement File  Diff  Annotate
14:0effa0bbf192 2015-10-19 Fixed the function Prepare() (disabled gpio interrupt by default) File  Diff  Annotate
12:71d589e6fd2c 2015-10-13 Introduced virtual functions GetRange and GetLight of the sensor classes. File  Diff  Annotate
10:4954b09b72d8 2015-10-06 Fitted all api files (reinserted original api files) File  Diff  Annotate
9:9cbc1736f148 2015-09-29 Fixed i2c wr File  Diff  Annotate
8:f943a1fca15f 2015-09-29 fixed i2c functions and code cleanup File  Diff  Annotate
7:2dc81120c917 2015-09-25 update files File  Diff  Annotate
4:a5abf7757947 2015-09-17 First compile of Init function and ReadID function File  Diff  Annotate
3:454541a079f4 2015-09-11 init function, readID function File  Diff  Annotate
1:1de1ea2994d9 2015-09-09 Added some files File  Diff  Annotate