YQ1aRPiS

TMP126 Digital Temperature Sensor Module and its Driver

 
Overview
  The project utilizes the TMP126 digital temperature sensor chip. A module was designed based on the chip's datasheet, and its schematic is shown below.
      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:
TMP126STM32:
       PA0->CS, PA1->CLK, PA2->MOSI, PA3->MISO.
OLEDSTM32:
       PB10->SCL, PB11->SDA.
The temperature display effect 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.
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-27 03:28:43
  • RFID tags will reach 20 billion in 2008
  • DAC7621 Application Issues
  • Ask for advice on the SDRAM experiment in "Playing FPGA in Simple Ways"
  • Capacitor voltage reduction
  • What is the issue with WinCE's language support?
  • STM32 novice asks for help, stuck in nop_process(), what to do?

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号