Ltr 507 - Getting started
Arduino library
To install the Arduino library, you can use the Arduino library manager or download it from the GitHub repository:
LTR-507 Arduino library
Digital Light and Proximity Sensor Arduino library by Soldered
ℹ️
First-time Arduino user? For a detailed tutorial on getting started with Arduino, see this section of our docs:
Getting started with Arduino
A comprehensive and detailed tutorial on how to set up and upload code to an Arduino board for the first time from scratch!
Connections
Below is an example connection diagram for Dasduino CONNECTPLUS. These pins will be used in the examples throughout this documentation.
| Dasduino CONNECTPLUS | LTR-507 |
|---|---|
| Qwiic | Qwiic |
ℹ️
If you prefer, you can use I2C pins to manually connect:
| Dasduino CONNECTPLUS | LTR-507 |
|---|---|
| IO21 (Default SDA pin) | SDA |
| IO22 (Default SCL pin) | SCL |
| VCC | VCC |
| GND | GND |
| 3V3 | VLED |
| IO25 (any digital pin works) | INT |
⚠️
An IR LED must be connected! Ensure proper wiring for the IR LED as shown below for the proximity sensor to work.
| LTR-507 | IR LED |
|---|---|
| VLED | CATHODE (-) |
| VCC | ANODE (+) |
⚠️
Interrupt functionality is not yet implemented.