cancel
Showing results for 
Search instead for 
Did you mean: 

How to use STEVAL-SMARTAG to collect thermocouple temperature?

Schuyler
Senior

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 */
1 ACCEPTED SOLUTION

Accepted Solutions
Berenice BENVEGUDA
ST Employee

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

View solution in original post

1 REPLY 1
Berenice BENVEGUDA
ST Employee

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