How rorynorbury/eng20009-project-group-3 works
This is Arduino firmware for an SDI-12 environmental monitoring device. Its command parser handles address queries and changes, measurement requests, data retrieval, and identification; sensor readings also support threshold alerts, an LCD display, and periodic timestamped SD-card logging. The sampled code establishes these module-level relationships, but does not show the main sketch’s runtime dispatch or setup/loop wiring, so those links are omitted.
Main entry points: command_parser.h Command Parser · periodic_logging.h Periodic Logging · sensors.h Sensor Acquisition · LCD.h LCD Display
Components 15
SDI-12 Commands
- Command Parser
main/command_parser.h - Address Handling
main/query_and_address.h - Measurement Response
main/start_measurement.h - Data Response
main/send_data.h - Identification Response
main/send_identification.h
Sensing and Alerts
- Sensor Acquisition
main/sensors.h - Threshold Alerts
main/threshold_alert.h
Time and Logging
- RTC Clock
main/rtc.h - Periodic Logging
main/periodic_logging.h - SD-card Logging
main/sd_card_logging.h
Device Display
- LCD Display
main/LCD.h
Other components
- SDI-12 Host
- Environmental Sensors
- SD Card
- TFT Display
Connections 12
- Command Parser → Address Handling: dispatches
main/command_parser.h - Command Parser → Measurement Response: dispatches
main/command_parser.h - Command Parser → Data Response: dispatches
main/command_parser.h - Command Parser → Identification Response: dispatches
main/command_parser.h - Measurement Response → Sensor Acquisition: reads
main/start_measurement.h - Threshold Alerts → Sensor Acquisition: checks state
main/threshold_alert.h - Periodic Logging → Sensor Acquisition: reads
main/periodic_logging.h - Periodic Logging → RTC Clock: gets time
main/periodic_logging.h - Periodic Logging → SD-card Logging: writes log
main/periodic_logging.h - SD-card Logging → SD Card: writes
main/sd_card_logging.h - LCD Display → Threshold Alerts: uses alert flags
main/LCD.h - LCD Display → TFT Display: updates
main/LCD.h