If you do not get the color value, please change the code if ((readValue != 0x44) && (readValue != 0x10)) To new code if ((readValue != 0x44) && (readValue != 0x10) && (readValue != 0x4d)) The reason is TCS34725 ID can be 0x44, 0x10 or 0x4d The module I used in this video demonstration had the ID of either 0x44 or 0x10 So I did not include 0x4d in the code. Your module may have 0x4d Thanks
You can run simple I2C scan program in the same wiring setup to see the connections are ok. You can use ruclips.net/video/7_jm38X7HUw/видео.html Or simply declare a variable /* USER CODE BEGIN PV */ uint8_t isFound; /* USER CODE END PV */ And /* USER CODE BEGIN WHILE */ while (1) { for(uint16_t i2c=1; i2c
Thanks very much for your reply. it was my mistake, i didn't add the while statement. if i need to get data from this sensor using Timer interrupt,can I follow yor Timer vedio or any other resource ,please let me know
If you do not get the color value, please change the code
if ((readValue != 0x44) && (readValue != 0x10))
To new code
if ((readValue != 0x44) && (readValue != 0x10) && (readValue != 0x4d))
The reason is TCS34725 ID can be 0x44, 0x10 or 0x4d
The module I used in this video demonstration had the ID of either 0x44 or 0x10
So I did not include 0x4d in the code.
Your module may have 0x4d Thanks
finally, tysm 🎉😭, btw can we combine that I2C with LCD I2C?
Yes you can!
I2C LCD video is here ruclips.net/video/l-JVnlJIPao/видео.html
just give same 5V,G,B6 and B7 pins to display.
It will work
Well done 👍🏻👍🏻👍🏻
dear admin, can you make video related with nrf103 with stm32 to control motor
Thanks, What are the changes do i need to make for STM32 L432KC board, please
Although I have not tested it with STM32L432KC, it should work with I2C1 without any code changes. Thanks
hi, i tried with l432kc bord, but r,g,B data in live expression is 0,any suggestions please
You can run simple I2C scan program in the same wiring setup to see the connections are ok.
You can use ruclips.net/video/7_jm38X7HUw/видео.html
Or simply declare a variable
/* USER CODE BEGIN PV */
uint8_t isFound;
/* USER CODE END PV */
And
/* USER CODE BEGIN WHILE */
while (1)
{
for(uint16_t i2c=1; i2c
Thanks very much for your reply. it was my mistake, i didn't add the while statement.
if i need to get data from this sensor using Timer interrupt,can I follow yor Timer vedio or any other resource ,please let me know
Yes. You can. Timer interrupt will work with this sensor. Thanks