General Raspberry Pi

Connecting Rangefinder SEN0366 to Raspberry Pi 4

userHead Rushabh.Jain 2024-02-23 00:37:40 362 Views1 Replies

Hello,

 

I recently bought a SEN0366 sensor and would like to connect it to my robot with Open CR and Raspberry Pi 4. I have received a UART to USB converter with the sensor. 

 

I am quite new this stuff an would like to know how can I connect and receive range values for the raspberry pi 4. Can I directly connect the USB to one of the USB ports or should I use the GPIO pins on the Pi. How do I get the values after connecting the sensor to the Pi ?

 

Thanks in advance. 

2024-02-23 17:22:02

If you have a board like the Pi, you can connect the sensor directly to the Pi. Instead of using the supplied USB-TTL module, this mod is just to be able to test it properly on a normal PC.

But DF doesn't have sample code for Pi, only Arduino sample code.
I'm afraid you'll have to develop your own according to the protocol in the wiki.

 

wiki:

https://wiki.dfrobot.com/Infrared_Laser_Distance_Sensor_50m_80m_SKU_SEN0366

userHeadPic Yeez_B