Since readily available driver code for the TMP126 is scarce online, a driver program for the TMP126 was developed based on the STM32F103C8T6, and the measured temperature is displayed on an OLED screen. To facilitate future development by engineers, the driver code for this project is open-sourced. The wiring diagram for this project is as follows:
The first line displays the actual measured temperature, the second line displays the hexadecimal value of the actual measured temperature, the third line displays the read device ID, and the last line displays the value of the TMP126 configuration register.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet