stm32f103采集DS18B20温度传感器通过oled显示程序,亲测可用

上传者: 41834692 | 上传时间: 2023-03-21 11:45:30 | 文件大小: 2.06MB | 文件类型: ZIP
自己写的程序,显示SHT30温湿度模块的温湿度。 既有OLED(IIC接口)屏幕的温湿度显示,也有串口数据输出。 为了作对比,我顺便把DS18B20的温度显示也写进去了,然后改下注释也可输出DS18B20温度数据。 DS18B20数字温度计提供9位温度读数。信息经过单线接口送入或送出DS18B20传感器,因此从中央处理器到DS18B20仅需要提供电源以及一根数据线,就可以工作。 OLED作为STM32的一个较为重要的外设,其作用也是为了方便调试代码。OLED模块的驱动可以使用8080、SPI四线、SPI3线、I2C的方法进行驱动。本文主要根据OLED的数据手册分析SPI四线的使用。 在此感谢51hei论坛的SHT30例程,把原来有错误的地方改了,写了个完整的例程。 代码没怎么整理,不过加了必要的注释,发出来分享下成果

文件下载

资源详情

[{"title":"( 101 个子文件 2.06MB ) stm32f103采集DS18B20温度传感器通过oled显示程序,亲测可用","children":[{"title":"DS18B20.uvguix.Administrator <span style='color:#111;'> 69.85KB </span>","children":null,"spread":false},{"title":"DS18B20.axf <span style='color:#111;'> 294.31KB </span>","children":null,"spread":false},{"title":"stm32f10x_flash.c <span style='color:#111;'> 61.08KB </span>","children":null,"spread":false},{"title":"stm32f10x_adc.c <span style='color:#111;'> 46.09KB </span>","children":null,"spread":false},{"title":"stm32f10x_can.c <span style='color:#111;'> 44.05KB </span>","children":null,"spread":false},{"title":"system_stm32f10x.c <span style='color:#111;'> 35.72KB </span>","children":null,"spread":false},{"title":"stm32f10x_fsmc.c <span style='color:#111;'> 34.65KB </span>","children":null,"spread":false},{"title":"stm32f10x_dma.c <span style='color:#111;'> 28.91KB </span>","children":null,"spread":false},{"title":"stm32f10x_dac.c <span style='color:#111;'> 18.64KB </span>","children":null,"spread":false},{"title":"core_cm3.c <span style='color:#111;'> 16.87KB </span>","children":null,"spread":false},{"title":"stm32f10x_cec.c <span style='color:#111;'> 11.38KB </span>","children":null,"spread":false},{"title":"oled.c <span style='color:#111;'> 10.00KB </span>","children":null,"spread":false},{"title":"stm32f10x_bkp.c <span style='color:#111;'> 8.26KB </span>","children":null,"spread":false},{"title":"delay.c <span style='color:#111;'> 7.74KB </span>","children":null,"spread":false},{"title":"misc.c <span style='color:#111;'> 6.88KB </span>","children":null,"spread":false},{"title":"stm32f10x_exti.c <span style='color:#111;'> 6.80KB </span>","children":null,"spread":false},{"title":"stm32f10x_dbgmcu.c <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false},{"title":"usart.c <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"ds18b20.c <span style='color:#111;'> 3.32KB </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"stm32f10x_crc.c <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"stm32f10x_it.c <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"led.c <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"sys.c <span style='color:#111;'> 872B </span>","children":null,"spread":false},{"title":"pubdata.c <span style='color:#111;'> 456B </span>","children":null,"spread":false},{"title":"lcd.crf <span style='color:#111;'> 410.21KB </span>","children":null,"spread":false},{"title":"oled.crf <span style='color:#111;'> 353.91KB </span>","children":null,"spread":false},{"title":"main.crf <span style='color:#111;'> 353.37KB </span>","children":null,"spread":false},{"title":"ds18b20.crf <span style='color:#111;'> 347.23KB </span>","children":null,"spread":false},{"title":"delay.crf <span style='color:#111;'> 341.75KB </span>","children":null,"spread":false},{"title":"led.crf <span style='color:#111;'> 341.31KB </span>","children":null,"spread":false},{"title":"misc.crf <span style='color:#111;'> 340.72KB </span>","children":null,"spread":false},{"title":"core_cm3.crf <span style='color:#111;'> 3.85KB </span>","children":null,"spread":false},{"title":"main.d <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"ds18b20.d <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false},{"title":"lcd.d <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"delay.d <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"misc.d <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false},{"title":"led.d <span style='color:#111;'> 1.56KB </span>","children":null,"spread":false},{"title":"core_cm3.d <span style='color:#111;'> 101B </span>","children":null,"spread":false},{"title":"DS18B20.uvguix.dell <span style='color:#111;'> 139.16KB </span>","children":null,"spread":false},{"title":"DS18B20_Target 1.dep <span style='color:#111;'> 28.76KB </span>","children":null,"spread":false},{"title":"stm32f10x.h <span style='color:#111;'> 619.08KB </span>","children":null,"spread":false},{"title":"core_cm3.h <span style='color:#111;'> 83.71KB </span>","children":null,"spread":false},{"title":"stm32f10x_tim.h <span style='color:#111;'> 51.20KB </span>","children":null,"spread":false},{"title":"oledfont.h <span style='color:#111;'> 39.60KB </span>","children":null,"spread":false},{"title":"stm32f10x_rcc.h <span style='color:#111;'> 29.74KB </span>","children":null,"spread":false},{"title":"stm32f10x_i2c.h <span style='color:#111;'> 29.33KB </span>","children":null,"spread":false},{"title":"stm32f10x_can.h <span style='color:#111;'> 26.91KB </span>","children":null,"spread":false},{"title":"stm32f10x_fsmc.h <span style='color:#111;'> 26.38KB </span>","children":null,"spread":false},{"title":"stm32f10x_flash.h <span style='color:#111;'> 24.85KB </span>","children":null,"spread":false},{"title":"stm32f10x_sdio.h <span style='color:#111;'> 21.35KB </span>","children":null,"spread":false},{"title":"stm32f10x_adc.h <span style='color:#111;'> 21.18KB </span>","children":null,"spread":false},{"title":"stm32f10x_dma.h <span style='color:#111;'> 20.27KB </span>","children":null,"spread":false},{"title":"stm32f10x_gpio.h <span style='color:#111;'> 19.70KB </span>","children":null,"spread":false},{"title":"stm32f10x_spi.h <span style='color:#111;'> 17.31KB </span>","children":null,"spread":false},{"title":"stm32f10x_usart.h <span style='color:#111;'> 16.16KB </span>","children":null,"spread":false},{"title":"stm32f10x_dac.h <span style='color:#111;'> 14.88KB </span>","children":null,"spread":false},{"title":"bmp.h <span style='color:#111;'> 10.55KB </span>","children":null,"spread":false},{"title":"misc.h <span style='color:#111;'> 8.77KB </span>","children":null,"spread":false},{"title":"stm32f10x_bkp.h <span style='color:#111;'> 7.38KB </span>","children":null,"spread":false},{"title":"stm32f10x_exti.h <span style='color:#111;'> 6.66KB </span>","children":null,"spread":false},{"title":"stm32f10x_cec.h <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false},{"title":"stm32f10x_pwr.h <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"stm32f10x_rtc.h <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"stm32f10x_iwdg.h <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false},{"title":"stm32f10x_dbgmcu.h <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"stm32f10x_conf.h <span style='color:#111;'> 3.16KB </span>","children":null,"spread":false},{"title":"stm32f10x_wwdg.h <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false},{"title":"sys.h <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"stm32f10x_crc.h <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"system_stm32f10x.h <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"delay.h <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"stm32f10x_it.h <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"oled.h <span style='color:#111;'> 1.79KB </span>","children":null,"spread":false},{"title":"usart.h <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"led.h <span style='color:#111;'> 640B </span>","children":null,"spread":false},{"title":"ds18b20.h <span style='color:#111;'> 420B </span>","children":null,"spread":false},{"title":"pubdata.h <span style='color:#111;'> 279B </span>","children":null,"spread":false},{"title":"DS18B20.hex <span style='color:#111;'> 39.45KB </span>","children":null,"spread":false},{"title":"DS18B20.htm <span style='color:#111;'> 65.97KB </span>","children":null,"spread":false},{"title":"DS18B20.build_log.htm <span style='color:#111;'> 1.87KB </span>","children":null,"spread":false},{"title":"ExtDll.iex <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"JLinkSettings.ini <span style='color:#111;'> 578B </span>","children":null,"spread":false},{"title":"DS18B20.lnp <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd.lst <span style='color:#111;'> 49.91KB </span>","children":null,"spread":false},{"title":"DS18B20.map <span style='color:#111;'> 75.02KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"lcd.o <span style='color:#111;'> 453.06KB </span>","children":null,"spread":false},{"title":"main.o <span style='color:#111;'> 383.64KB </span>","children":null,"spread":false},{"title":"ds18b20.o <span style='color:#111;'> 381.59KB </span>","children":null,"spread":false},{"title":"delay.o <span style='color:#111;'> 374.80KB </span>","children":null,"spread":false},{"title":"led.o <span style='color:#111;'> 373.73KB </span>","children":null,"spread":false},{"title":"misc.o <span style='color:#111;'> 372.34KB </span>","children":null,"spread":false},{"title":"core_cm3.o <span style='color:#111;'> 11.01KB </span>","children":null,"spread":false},{"title":"DS18B20中文手册.pdf <span style='color:#111;'> 431.84KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd.s <span style='color:#111;'> 15.14KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.s <span style='color:#111;'> 12.47KB </span>","children":null,"spread":false},{"title":"DS18B20.sct <span style='color:#111;'> 479B </span>","children":null,"spread":false},{"title":"DS18B20.uvoptx <span style='color:#111;'> 15.67KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明