How mluna030/real-time-temperature-sensing-system works
This is PIC18F4620 firmware for real-time temperature monitoring and fan control, with a TFT interface and user setup screens. The documented operating workflow is sensor readings over I2C, temperature-based fan control using PWM, and live display over SPI; UART provides debugging. Time, alarm, and heater-temperature setup are additional user-facing stages. The excerpts show screen rendering and setup-to-device calls, but not the main loop or all dispatch wiring, so those connections are omitted rather than inferred.
Main entry points: I2C_support.c Sensor and RTC access · Main.c Application firmware · Main_Screen.c Live status screen · Setup_Time.c Time setup
Components 16
Firmware control
- Application firmware
Main.c - Fan and PWM
Fan_Support.c - Interrupt handling
Interrupt.c - Firmware utilities
Utils.c
Hardware interfaces
- Sensor and RTC access
I2C_support.c - Software I2C bus
I2C_Soft.c
TFT presentation
- ST7735 driver
ST7735_TFT.c - Live status screen
Main_Screen.c
User settings
- Time setup
Setup_Time.c - Alarm setup
Setup_Alarm_Time.c - Heater threshold setup
Setup_Heater_Temp.c
Other components
- DS1621 sensor
- DS3231 clock
- Cooling fan
- Device user
- UART diagnostics
Connections 17
- Application firmware → DS1621 sensor: reads via I2C
README.md - Application firmware → Cooling fan: controls with PWM
README.md - Application firmware → Live status screen: updates readings
README.md - Application firmware → UART diagnostics: logs diagnostics
README.md - Sensor and RTC access → Software I2C bus: uses bus routines
I2C_support.c - Sensor and RTC access → DS1621 sensor: reads temperature
README.md - Sensor and RTC access → DS3231 clock: reads and writes
I2C_support.c - Live status screen → ST7735 driver: renders with
Main_Screen.c - Device user → Time setup: sets clock
- Time setup → Sensor and RTC access: writes and reads time
Setup_Time.c - Time setup → Live status screen: initializes on exit
Setup_Time.c - Device user → Alarm setup: sets alarm
- Alarm setup → Sensor and RTC access: reads clock
Setup_Alarm_Time.c - Alarm setup → Live status screen: initializes on exit
Setup_Alarm_Time.c - Device user → Heater threshold setup: sets threshold
- Heater threshold setup → Sensor and RTC access: reads clock
Setup_Heater_Temp.c - Heater threshold setup → ST7735 driver: draws setup screen
Setup_Heater_Temp.c