Customer:
How do you read proximity values when the LTR-507 is connected via I2C?
Original message (Croatian)
kako se čita proximity vrijednost kad je LTR-507 spojen putem I2C-a.
Hvala.
Alen
Originally submitted via email support on 29 April 2023. Migrated to the forum for community visibility.
Soldered Support:
For the LTR-507 to read proximity, you need a UV LED connected to the VLED pin according to a diagram showing VLED C and how the LED is connected.
The cathode of the UV diode should be connected to VLEDC while the anode connects to VCC. Capacitors are not required.
The sensor works by measuring the time it takes for UV light to bounce back from objects close to the sensor, so it requires a UV light source.
Our library still needs to be expanded to add proximity support, but you can try this library: GitHub - chenhonglin/LTR507-LTR553-LTR556_Arduino: The LTR-507/LTR-553/LTR-556 is an integrated low voltage I2C digital light sensor [ALS] and proximity sensor [PS] with built-in emitter, in a single miniature chipled lead-free surface mount package.This is the arduino library for LTR507, LTR553, LTR556 . · GitHub
This example shows how to use it: LTR507-LTR553-LTR556_Arduino/example/example_base_01.ino at master · chenhonglin/LTR507-LTR553-LTR556_Arduino · GitHub (ps_value means proximity value).
Make sure to position the LED in line with the sensor.
Original message (Croatian)
kako bi LTR-507 mogao čitati proximity, potrebna je UV LE-dioda spojena na pin VLED prema ovom dijagramu (možete zanemariti ostatak dijagrama samo gledati VLED C i kako je LE-dida spojena):
Dakle, katoda od UV diode treba biti spojena na VLEDC dok se anoda spaja na VCC. Kondenzatori nisu potrebni.
Senzor radi na principu da mjeri vrijeme odbijanja UV svijetla od predmeta koji je blizu senzora, pa mu za to treba izvor UV svijetlosti.
Naš library se još mora proširiti kako bi dodali proximity, ali možeš probati sa ovim library-em: GitHub - chenhonglin/LTR507-LTR553-LTR556_Arduino: The LTR-507/LTR-553/LTR-556 is an integrated low voltage I2C digital light sensor [ALS] and proximity sensor [PS] with built-in emitter, in a single miniature chipled lead-free surface mount package.This is the arduino library for LTR507, LTR553, LTR556 . · GitHub
U ovom example-u je pokazano kako se koristi: LTR507-LTR553-LTR556_Arduino/example/example_base_01.ino at master · chenhonglin/LTR507-LTR553-LTR556_Arduino · GitHub (ps_value znači proximity value).
Pripazi na to da se LE-dioda postavi u ravninu sa senzorom. Nacrtao sam skicu koja bi mogla biti korisna za ovo.
Attachment omitted in migration: image.png
Attachment omitted in migration: image.png