cancel
Showing results for 
Search instead for 
Did you mean: 

Hai I am Using STM32 F401RE and I have to communicate with thermal sensor(32x32) . I have to get 2048 bit from the thermal sensor through I2C communication How can I get that data?

ABala.6.19
Associate II
 
12 REPLIES 12

https://omronfs.omron.com/en_US/ecb/products/pdf/en_D6T_users_manual.pdf

Command 0x4D should allow you to pull 2051 bytes

#define SLAVE_ADDR 0x0A // 7-bit, right aligned

uint8_t data[2051];

 HAL_StatusTypeDef status = HAL_I2C_Mem_Read(&I2CHandle, (SLAVE_ADDR << 1), 0x4D, 1, data, sizeof(data), 500);

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
ABala.6.19
Associate II

uint8_t data =0x4C;

uint8_t Rxbuffer[35];

  //temp1=8;

HAL_I2C_Master_Transmit(&hi2c1,0x14,&data,1,10); 

HAL_I2C_Master_Receive(&hi2c1,0x14,(uint8_t*)Rxbuffer,35,35); 

HAL_Delay(50);

this is the code i wrote to communicate with d6t-44l so in this code if i put rx nuffer size to 2051 is there is any problem ?

Manual says you need to use a different command for the 32x32 array

Look YOU have this device, you're going to need to try/experiment with this yourself.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..