Skip to main content

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 CONNECTPLUSLTR-507
QwiicQwiic
ℹ️

If you prefer, you can use I2C pins to manually connect:

Dasduino CONNECTPLUSLTR-507
IO21 (Default SDA pin)SDA
IO22 (Default SCL pin)SCL
VCCVCC
GNDGND
3V3VLED
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-507IR LED
VLEDCATHODE (-)
VCCANODE (+)
⚠️
Interrupt functionality is not yet implemented.