Core Electronics Forum

Infrared Laser Distance Sensor (50m/80m) (SEN0366)

This is a placeholder topic for “Infrared Laser Distance Sensor (50m/80m)” comments.



This is a cost-effective IR laser distance sensor that features high accuracy, long-distance detection, visible IR laser, and small FOV. It offers the measuring … read more

Read more

Help I carnt communicate with the Infrared Laser Distance Sensor (50m/80m) sensor.

Ive wired it up exactly as shown in the tutorial and copied the code.

I get the error

sketch_may03b.ino:12:34: warning: narrowing conversion of ‘128’ from ‘int’ to ‘char’ inside { } [-Wnarrowing]

char buff[4]={0x80,0x06,0x03,0x77};

^

Please help

Hey Marcus,

Can you copy paste the code you’ve written and take some photos of how you’ve got it wired up? I know you said you’ve followed the tutorial exactly, but it’s always good to get a fresh set of eyes on it :slight_smile: