Skip to main content
Schuyler
Associate III
January 3, 2024
Solved

How to use STEVAL-SMARTAG to collect thermocouple temperature?

  • January 3, 2024
  • 1 reply
  • 708 views

I want to copy STEVAL-SMARTAG and have made the same circuit board to connect max6675(PB1 connect CS, PA5 connect SCK, PA7 connect SO), where the temperature is 12-bit data, so write the SMARTAG_ADDR_MINMAX_P_ACCV address, the following is the relevant code, Can the temperature data be read correctly through NFC?

float K_Temperature ; 
char temperaturebuffer[30] = { 0xD1, 0x01, 0x1B, 0x54, 0x02, 0x65, 0x6E };

 /* beginning of Active log */
 if(ReadSensorAndLog & SYNC_EVENT) {
 /* Init SmarTag sensor */
 if(NFC_EEPROM_Data.LogMode != SMARTAG_LOGMODE_ACTIVE_THS) {
 InitSmarTagSensor();
 }
	/*SensorDataToCompactData();*/
 K_Temperature=MAX6675_ReadTemperature(); 
 sprintf(&temperaturebuffer[7], "Temperature: %.2f C", K_Temperature);
 SMARTAG1_NFCTAG_WriteData(Instance, (uint8_t *)temperaturebuffer, SMARTAG_ADDR_MINMAX_P_ACCV, strlen(temperaturebuffer) + 1);
 }

 /* end of activelog */
This topic has been closed for replies.
Best answer by Berenice BENVEGUDA

Hello,

 

as replied in following post :

https://community.st.com/t5/st25-nfc-rfid-tags-and-readers/how-can-sensors-spi-be-replaced/td-p/603823

it is not recommended to modify the smartag hardware board

Best Regards,

BB

1 reply

Berenice BENVEGUDA
Technical Moderator
January 19, 2024

Hello,

 

as replied in following post :

https://community.st.com/t5/st25-nfc-rfid-tags-and-readers/how-can-sensors-spi-be-replaced/td-p/603823

it is not recommended to modify the smartag hardware board

Best Regards,

BB