【E1183】SHT30温湿度模块程序(亲测可用)

2021-09-13 20:39:32      索炜达电子      911     

项目编号:E1183

文件大小:2.4M

源码说明:带中文注释

开发环境:C编译器

简要概述:

最近用到温湿度,因为听说小米用的Sht30就好好研究了一下Sht30和Sht20,此程序为Sht30的,主要根据官网程序修改的,删除各种个人觉得不重要的功能函数,只保留最基本的温湿度测量,并且修改了程序中和datasheet时序不匹配的地方。

注意:

SHT30温湿度测量分为Singleshot 模式和 Periodic周期模式,而Singleshot模式又分为Poll模式和clk stretch模式,其中那个stretch和Sht20的HOLD MASTER模式很相似,但我并没有调通,也希望大神指点。所以大家用Singleshot的POLL模式或者Periodic周期模式这两种模式来测量就好,亲测可用。

目录│文件列表:

 └ Sht30

    └ Sht30

       │ keilkilll.bat

       │ README.TXT

       ├ CORE

       │  │ core_cm3.c

       │  │ core_cm3.h

       │  └ startup_stm32f10x_hd.s

       ├ HARDWARE

       │  ├ I2C

       │  │  │ i2c.c

       │  │  └ i2c.h

       │  ├ LED

       │  │  │ led.c

       │  │  └ led.h

       │  └ SHT30

       │     │ sht30.c

       │     └ sht30.h

       ├ OBJ

       │  │ core_cm3.crf

       │  │ core_cm3.d

       │  │ core_cm3.o

       │  │ delay.crf

       │  │ delay.d

       │  │ delay.o

       │  │ i2c.crf

       │  │ i2c.d

       │  │ i2c.o

       │  │ led.crf

       │  │ led.d

       │  │ LED.hex

       │  │ led.o

       │  │ main.crf

       │  │ main.d

       │  │ main.o

       │  │ misc.crf

       │  │ misc.d

       │  │ misc.o

       │  │ Sht30.axf

       │  │ Sht30.build_log.htm

       │  │ sht30.crf

       │  │ sht30.d

       │  │ Sht30.hex

       │  │ Sht30.htm

       │  │ Sht30.lnp

       │  │ sht30.o

       │  │ Sht30_Sht30.dep

       │  │ Shutters.hex

       │  │ startup_stm32f10x_hd.d

       │  │ startup_stm32f10x_hd.o

       │  │ stm32f10x_adc.crf

       │  │ stm32f10x_adc.d

       │  │ stm32f10x_adc.o

       │  │ stm32f10x_dbgmcu.crf

       │  │ stm32f10x_dbgmcu.d

       │  │ stm32f10x_dbgmcu.o

       │  │ stm32f10x_gpio.crf

       │  │ stm32f10x_gpio.d

       │  │ stm32f10x_gpio.o

       │  │ stm32f10x_it.crf

       │  │ stm32f10x_it.d

       │  │ stm32f10x_it.o

       │  │ stm32f10x_rcc.crf

       │  │ stm32f10x_rcc.d

       │  │ stm32f10x_rcc.o

       │  │ stm32f10x_usart.crf

       │  │ stm32f10x_usart.d

       │  │ stm32f10x_usart.o

       │  │ sys.crf

       │  │ sys.d

       │  │ sys.o

       │  │ system_stm32f10x.crf

       │  │ system_stm32f10x.d

       │  │ system_stm32f10x.o

       │  │ usart.crf

       │  │ usart.d

       │  └ usart.o

       ├ STM32F10x_FWLib

       │  ├ inc

       │  │  │ misc.h

       │  │  │ stm32f10x_adc.h

       │  │  │ stm32f10x_bkp.h

       │  │  │ stm32f10x_can.h

       │  │  │ stm32f10x_cec.h

       │  │  │ stm32f10x_crc.h

       │  │  │ stm32f10x_dac.h

       │  │  │ stm32f10x_dbgmcu.h

       │  │  │ stm32f10x_dma.h

       │  │  │ stm32f10x_exti.h

       │  │  │ stm32f10x_flash.h

       │  │  │ stm32f10x_fsmc.h

       │  │  │ stm32f10x_gpio.h

       │  │  │ stm32f10x_i2c.h

       │  │  │ stm32f10x_iwdg.h

       │  │  │ stm32f10x_pwr.h

       │  │  │ stm32f10x_rcc.h

       │  │  │ stm32f10x_rtc.h

       │  │  │ stm32f10x_sdio.h

       │  │  │ stm32f10x_spi.h

       │  │  │ stm32f10x_tim.h

       │  │  │ stm32f10x_usart.h

       │  │  └ stm32f10x_wwdg.h

       │  └ src

       │     │ misc.c

       │     │ stm32f10x_adc.c

       │     │ stm32f10x_bkp.c

       │     │ stm32f10x_can.c

       │     │ stm32f10x_cec.c

       │     │ stm32f10x_crc.c

       │     │ stm32f10x_dac.c

       │     │ stm32f10x_dbgmcu.c

       │     │ stm32f10x_dma.c

       │     │ stm32f10x_exti.c

       │     │ stm32f10x_flash.c

       │     │ stm32f10x_fsmc.c

       │     │ stm32f10x_gpio.c

       │     │ stm32f10x_i2c.c

       │     │ stm32f10x_iwdg.c

       │     │ stm32f10x_pwr.c

       │     │ stm32f10x_rcc.c

       │     │ stm32f10x_rtc.c

       │     │ stm32f10x_sdio.c

       │     │ stm32f10x_spi.c

       │     │ stm32f10x_tim.c

       │     │ stm32f10x_usart.c

       │     └ stm32f10x_wwdg.c

       ├ SYSTEM

       │  ├ delay

       │  │  │ delay.c

       │  │  └ delay.h

       │  ├ sys

       │  │  │ sys.c

       │  │  └ sys.h

       │  └ usart

       │     │ usart.c

       │     └ usart.h

       └ USER

          │ JLinkSettings.ini

          │ main.c

          │ Sht30.uvguix.Joker

          │ Sht30.uvoptx

          │ Sht30.uvprojx

          │ stm32f10x.h

          │ stm32f10x_conf.h

          │ stm32f10x_it.c

          │ stm32f10x_it.h

          │ system_stm32f10x.c

          │ system_stm32f10x.h

          ├ Listings

          │  │ Sht30.map

          │  └ startup_stm32f10x_hd.lst

TAGSHT30
  • 8 次
  • 1 分