How saulius1005/avr64dd32-sunflower-weather-station works
This AVR weather-station firmware collects environmental and light data, maintains date/time and location, computes solar angles, applies a weather-related elevation correction, presents readings and settings through display windows, and transmits tower data with CRC. The README documents these product stages and the user interactions; sampled source confirms sensor, I2C, display, command-parsing, and CRC implementation details. Main-loop orchestration and several domain modules were not excerpted, so connections that depend on their runtime calls are left unverified rather than asserted.
Main entry points: main.c Station runtime · Windows.c Display windows · i2c.c I2C bus · SSD1306.c SSD1306 display
Components 22
Time and solar
- Clock and RTC
AVR64DD32-SUNFLOWER-WEATHER-STATION/RTC.c - Solar angles
AVR64DD32-SUNFLOWER-WEATHER-STATION/ElAndAzComp.c - Altitude correction
AVR64DD32-SUNFLOWER-WEATHER-STATION/Altitude.c
Weather sensing
- Pressure sensor
AVR64DD32-SUNFLOWER-WEATHER-STATION/BMP390.c - Temperature humidity
AVR64DD32-SUNFLOWER-WEATHER-STATION/SHT45.c - Wind sensing
AVR64DD32-SUNFLOWER-WEATHER-STATION/Wind.c - Ambient light
AVR64DD32-SUNFLOWER-WEATHER-STATION/ADC.c
User interface
- Display windows
AVR64DD32-SUNFLOWER-WEATHER-STATION/Windows.c - 3x4 keypad
AVR64DD32-SUNFLOWER-WEATHER-STATION/Keypad3x4.c - SSD1306 display
AVR64DD32-SUNFLOWER-WEATHER-STATION/SSD1306.c - ST7567 display
AVR64DD32-SUNFLOWER-WEATHER-STATION/ST7567S.c - Display font
AVR64DD32-SUNFLOWER-WEATHER-STATION/font.h
Communications
- Date-time parsing
AVR64DD32-SUNFLOWER-WEATHER-STATION/Communications.c - Tower data formatting
AVR64DD32-SUNFLOWER-WEATHER-STATION/Communications.c - CRC checksums
AVR64DD32-SUNFLOWER-WEATHER-STATION/CRC.c - RS485 USART
AVR64DD32-SUNFLOWER-WEATHER-STATION/RS485USART.c
Device interfaces
- I2C bus
AVR64DD32-SUNFLOWER-WEATHER-STATION/i2c.c - USART interface
AVR64DD32-SUNFLOWER-WEATHER-STATION/USART.c - Shared configuration
AVR64DD32-SUNFLOWER-WEATHER-STATION/Settings.h
Other components
- Operator
- Solar towers
- Station runtime
AVR64DD32-SUNFLOWER-WEATHER-STATION/main.c
Connections 24
- Station runtime → Clock and RTC: maintains time
- Station runtime → Solar angles: calculates angles
- Solar angles → Altitude correction: weather-corrects
- Operator → 3x4 keypad: enters settings
- 3x4 keypad → Display windows: navigates
- Display windows → SSD1306 display: renders views
- Display windows → ST7567 display: renders views
- SSD1306 display → Display font: reads glyphs
AVR64DD32-SUNFLOWER-WEATHER-STATION/SSD1306.c - ST7567 display → Display font: reads glyphs
AVR64DD32-SUNFLOWER-WEATHER-STATION/ST7567S.c - Pressure sensor → I2C bus: reads sensor
AVR64DD32-SUNFLOWER-WEATHER-STATION/BMP390.c - Temperature humidity → I2C bus: reads sensor
AVR64DD32-SUNFLOWER-WEATHER-STATION/SHT45.c - SSD1306 display → I2C bus: sends display data
AVR64DD32-SUNFLOWER-WEATHER-STATION/SSD1306.c - ST7567 display → I2C bus: sends display data
AVR64DD32-SUNFLOWER-WEATHER-STATION/ST7567S.c - Station runtime → Pressure sensor: collects pressure
- Station runtime → Temperature humidity: collects weather
- Station runtime → Wind sensing: collects wind
- Station runtime → Ambient light: collects light
- Station runtime → Display windows: displays readings
- Station runtime → Tower data formatting: sends calculated data
- Tower data formatting → CRC checksums: computes checksum
AVR64DD32-SUNFLOWER-WEATHER-STATION/CRC.c - Station runtime → Date-time parsing: receives commands
- Date-time parsing → USART interface: reads characters
AVR64DD32-SUNFLOWER-WEATHER-STATION/Communications.c - Tower data formatting → RS485 USART: transmits data
- RS485 USART → Solar towers: delivers data