How to work with VS1838B infrared sensor

Hello, I’m using a NUCLEO F401RE and I’m trying to connect the VS1838B sensor infrared to my board. Can you help me for the code in cpp? I didn’t find nothing in the forum and on google.

Let me know,
thank you regards

Hi Raffaele,

IR sensor is connected to NUCLEO’s Digital Input pin. This might give you some idea how to get something out from the sensor:

It has a code example which should help you forward. With mbedOS you might have to look some examples about IO handling, interrupts and timers:
https://os.mbed.com/docs/mbed-os/v5.13/tutorials/index.html

Regards,
Pekka