2021-09-06 09:48:27 索煒達電子 818
項目編號:E817
文件大?。?17K
源碼說明:帶中文注釋
開發(fā)環(huán)境:C編譯器
簡要概述:
引腳說明:
//定義MCU與LCD的接口
/*******************************
*D4---->PB8
*D5---->PB5
*D6---->PB6
*D7---->PB7
*RS---->PA8
*RW---->PA11
*EN---->PA12
LCD1602
VCC---->5V
GND---->GND
VO----->接對比度調(diào)節(jié)滑動變阻器- -->GND
LED+ -->5v
LED- -->GND
PWM輸出(12703半導(dǎo)體制冷片)
4A電機pwm驅(qū)動芯片
*制冷IN1---->PB10
*加熱IN2---->PB11
18B20數(shù)字溫度傳感器
18B20OUT---->PB9
按鍵
KEY1---->PB12
KEY1---->PB13
KEY1---->PB14
AT24C16
1(A0)---->GND
2(A1)---->GND
3(A2)---->GND
4(GND)---->GND
4(SDA)---->PC13---->4.7K(R)---->VCC
6(SCL)---->PC14---->4.7K(R)---->VCC
7(WP)---->GND---->104(C)---->VCC
8(VCC)---->VCC
功能說明:通過18B20檢測溫度,通過pwm輸出來調(diào)節(jié)控溫,未進行精準pid調(diào)試,恒溫時間大約在5min左右。
2021.8.25 :基本程序編寫完成。
2021.8.26:修改程序,既可以制熱也可以制冷。
2021.8.27:加入24c16用于存儲設(shè)定溫度和模式,優(yōu)化lcd顯示。
目錄│文件列表:
└ PID控制-STM32F103C8T6 控溫
│ keilkilll.bat
│ 編程日志.txt
├ CORE
│ │ core_cm3.c
│ │ core_cm3.h
│ └ startup_stm32f10x_hd.s
├ HARDWORK
│ ├ 24CXX
│ │ │ 24cxx.c
│ │ │ 24cxx.h
│ │ │ iic.c
│ │ └ iic.h
│ ├ ds18b20
│ │ │ ds18b20.c
│ │ └ ds18b20.h
│ ├ incrementpid
│ │ │ incrementpid.c
│ │ └ incrementpid.h
│ ├ key
│ │ │ key.c
│ │ └ key.h
│ ├ lcd1602
│ │ │ LCD1602.c
│ │ └ LCD1602.h
│ ├ locationpid
│ │ │ locationpid.c
│ │ └ locationpid.h
│ └ pwmout
│ │ pwmout.c
│ └ pwmout.h
├ OBJ
│ │ PID.hex
│ └ Template.hex
├ 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
│ ├ timer3
│ │ │ timer3.c
│ │ └ timer3.h
│ └ usart
│ │ usart.c
│ └ usart.h
└ USER
│ JLinkSettings.ini
│ main.c
│ PID.uvguix.Administrator
│ PID.uvoptx
│ PID.uvprojx
│ stm32f10x.h
│ stm32f10x_conf.h
│ stm32f10x_it.c
│ stm32f10x_it.h
│ system_stm32f10x.c
│ system_stm32f10x.h
│ Template.BAT