Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

PmodALS doesn't work on the SPI bus (Raspberry Pi 5)

Hello,

I tried to use the SPI bus on the Raspberry Pi 5 to read data from the PmodALS (ambient light sensor), but it isn’t working even though the SPI bus is enabled on the Raspberry Pi.

Do you have any idea what might be causing the problem or how to solve it?

 

 

 

 

Pmod_ALS_SPI.pngPmod_ALS_SPI_FA.png

0 Kudos
Message 1 of 3
(78 Views)

Hello again,

The following VI works on my Raspberry Pi 5. The key point was to send a 16-bit word before starting the reading process.

 

 

 

 

 

 

 Pmod_ALS_SPI_FA_Works.pngPmod_ALS_SPI_Works.png

0 Kudos
Message 2 of 3
(32 Views)

Hello,
The only issue is that LV LINX cannot activate CE0 (GPIO8), so only one SPI device can be used.

 

Pmod_ALS_SPI_FA_err.pngPmod_ALS_SPI_err.png

0 Kudos
Message 3 of 3
(27 Views)