![]() ![]() I am newbie in this area and I am not sure do I have to send some data to sensor before acquisition or something? I was reading some similar topics like the one connected with HTS221 and haven't found such info. We’ll use the I2C protocol to send and receive messages with a TI TMP102.In this video. Temp_c=(short int)(((unsigned short int)Buffer<<8)+((unsigned short int)Buffer)) īut no matter what (changing sensor adress, heating up the sensor etc.) I am getting output equal to 8306 C - and I didn't move to the Sun, ST Nucleo F401RE Zephyr Project Documentation 3.3. Let’s take our STM32 to the next level and communicate with a sensor. Up to 3 x I 2 C interfaces (SMBus/PMBus) Up to 3 USARTs (2 x 10.5 Mbit/s, 1 x 5. ![]() ![]() Up to 78 fast I/Os up to 42 MHz All I/O ports are 5 V-tolerant Up to 12 communication interfaces. Then I wanted to read data via I2c and convert raw data to Celsius: //Read 2 consecutive registers in autoincrement mode starting from LPS25_TEMP_OUT_L Up to 81 I/O ports with interrupt capability. I am using STM32CUBE IDE and, I've been struggling with reading data from X-Nucleo-IKS01A1 board which contains for example LPS25HB temperature and pressure sensor.Īccording to datasheet I have defined addresses and registers: static const uint8_t LPS25HB_ADDR = 0xB9 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |