Skip to main content
ABala.6.19
Associate II
December 11, 2019
Question

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?

  • December 11, 2019
  • 4 replies
  • 2461 views

..

This topic has been closed for replies.

4 replies

Tesla DeLorean
Guru
December 11, 2019

Review the sensor's data sheet​.

Review some I2C examples for the platform ​

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

Data sheet I cross checked but I want to know how to receive 2048 bytes how that can acheive

Tesla DeLorean
Guru
December 11, 2019

What does data sheet say, are we supposed to guess what sensor chip is?

Likely says data at specific internal address, read as a FIFO, repeated read of a block at a suggested size.

Sorry not psychic.​

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

The only provided sample code for 4x4 sensor in that field we have to only measure 36 filed .But in 32x32 we have to read 2048 field . In sample code they mention for 32 x32 insted of rxbuf[36] change rxbuf[2048] but when i do that code is hanged.

Tesla DeLorean
Guru
December 12, 2019

One could presumably use a logic analyzer to review what's happening on the bus. Review in context of the datasheet.

Emulate the I2C with GPIO/bit-bang mode to prove the device responds as expected, and generates NACK when it should.

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

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 ?

Tesla DeLorean
Guru
December 13, 2019

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 VenmoUp vote any posts that you find helpful, it shows what's working..