Troubleshooting

Gravity: AS72341 Light sensor not working

userHead MaxWamsley 2023-03-18 02:56:18 256 Views2 Replies

Hello everyone

 

I recently purchased the AS7341 and wired it up to an UNO; however, the data is not printing to the Serial Monitor.  
I copied the code from the WIKI exactly and wired it; however, nothing is passing from the Light Sensor.  
I have the AS7341 wired to 5V, GND, SCL, and SDA on my UNO.

If you have any tips on how to get this working please let me know.

Here is a link to the WIKI page:

https://wiki.dfrobot.com/Gravity_AS7341_Visible_Light_Sensor_SKU_SEN0364#target_5

Thanks

2023-05-12 16:58:20

You could upload any IIC scanner code to check if the sensor was connect to the Aruino properly.

https://github.com/RobTillaart/I2C_SCANNER

Please upload the I2C_scanner_simple in the example folder to see if there is any address comes out from your serial monitor.

userHeadPic Yeez_B
2023-03-20 14:27:29

Could you please share a screenshot of your serial monitor and your code?

If it didn't detect the sensor, according to the code, it should print "IIC init failed, please check if the wire connection is correct"

If you do IIC scanning and find no device, it could be a poor connection, please change your cable.

Otherwise, it could be a hardware failure, please contact DFrobot via email for help.

userHeadPic NeloKin