ICOMP-UNC / 4DigiTech---Team-20

Final Assignment for the Electronic Digital 3 Course at Universidad Nacional de Cordoba
MIT License
0 stars 0 forks source link

Final Project Task - Embedded System Development #1

Closed GabrielEValenzuela closed 5 days ago

GabrielEValenzuela commented 3 weeks ago

This project will involve designing and implementing an embedded system in a collaborative GitHub environment. Each team of 4 students will follow a structured approach to plan, design, document, and implement the project. Below are the steps and expectations for each part of the project.

Task Breakdown

1. Project Plan and Milestones

2. System Design Documentation

3. Implement Continuous Integration and Continuous Deployment (CI/CD) (if applicable)

4. Code Implementation and Style Guidelines

5. Comprehensive Documentation with Doxygen

6. INSTALL.md - Installation and Setup Guide

7. Hardware Specifications and Schematics

8. Additional Suggestions

Final Deliverable

The project should be fully implemented, tested, and documented. Each team will create a GitHub repository with all code, diagrams, and documentation completed and structured as per the requirements above. Ensure that the README.md provides a quick overview and instructions to navigate the repository effectively.

Good luck, and remember that collaboration and clear communication are key to a successful project! 🍀


1v6n commented 1 week ago

Project Plan and Milestones

  1. Flow Monitoring Module (LPC1769)
    Purpose: Monitor the airflow through the filter and adjust the LED brightness to reflect the filter's condition.
    Functionality:

    • Uses the ADC to measure airflow from the fan (anemometer).
    • Adjusts the LED brightness via the DAC based on airflow status (higher obstruction = lower flow = brighter LED).
  2. PWM Control Module (LPC1769)
    Purpose: Regulate fan speed based on the Air Quality Index (AQI) calculated.
    Functionality:

    • Calculates the appropriate PWM duty cycle based on the calculated AQI.
    • Dynamically adjusts fan speed to respond to changes in air quality.
    • Uses the LPC1769 timer and GPIO to generate a high-precision PWM signal.
  3. UART RX Module (LPC1769)
    Purpose: Handle and manage the reception of data transmitted by the STM32. Functionality:

    • Receives 32-byte data frames sent by the STM32.
    • Verifies data integrity using a checksum calculation.
    • Stores data, using DMA, for further processing by other modules, such as the AQI calculation module.
  4. AQI Calculation Module (LPC1769)
    Purpose: Compute the AQI value from the received PM2.5 concentration.
    Functionality:

    • Translates PM2.5 values into an AQI using standard classification tables from the sensor datasheet.
    • Transfers the calculated AQI to the PWM control module for fan speed adjustment.
  5. PSM 5003 Sensor Simulation Module (STM32)
    Purpose: Simulate the behavior of a real PSM 5003 sensor for testing purposes.
    Functionality:

    • Implements adjustable PM2.5 values. Uses the ADC to read an input from a potentiometer, allowing dynamic adjustment of PM2.5 concentration.
    • Generates a 32-byte data frame, identical to those specified in the PSM 5003 datasheet.
    • Simulates real-time air quality conditions to test the LPC1769 modules.
  6. Task Management Module with FreeRTOS (STM32)
    Purpose: Manage task scheduling and system stability using FreeRTOS.
    Functionality:

    • Manages specific tasks for sensor simulation and data transmission, each operating with a 500 ms interval.
    • Monitors stack usage with the high-water mark method to prevent stack overflows.

Components communication

ADC-UART Communication (STM32)

ADC-DAC Communication (LPC1769)

UART Communication (interaction Between LPC1769 and STM32)

UART-PWM Communication (LPC1769)


Hardware Specifications and Schematics

Hardware Description

STM32 Microcontroller:

LPC1769 Microcontroller:

Sensors and Actuators:

Interconnection

Schematic Circuit

The provided schematic circuit will be used to identify the main connections.

image

Physical Configuration Guide

UART Connection:

Fan:

Indicator LED:

Power Supply: