ICOMP-UNC / Team-3

This project leverages the STM32F103C8T6 Bluepill microcontroller and the libopencm3 library to create an advanced conveyor belt system with adjustable speed and height-based object detection.
https://www.youtube.com/watch?v=Oym1SDomOgo
MIT License
1 stars 0 forks source link

1.1.0 #20

Open iledesma08 opened 3 days ago

iledesma08 commented 3 days ago

Summary

This update introduces UART communication to the system, enabling real-time configuration of PID parameters and setpoints through serial commands.

Added Features

  1. UART Initialization:

    • Configured USART1 for data transmission and reception.
    • Supports standard UART settings (9600 baud rate, 8 data bits, 1 stop bit).
  2. Interrupt-Driven Communication:

    • Implemented an ISR for handling received data.
    • Stores incoming characters in a buffer until a complete command is detected.
  3. Command Processing:

    • Added functionality to parse and execute commands for adjusting PID parameters:
      • Proportional gain (KP)
      • Integral gain (KI)
      • Derivative gain (KD)
      • Setpoint (SP)
    • Provides feedback via UART on command status.
  4. String Transmission:

    • Enabled UART-based string sending for user feedback.

Benefits

This pull request may close #19