72. UART-Based LEDs Control

Build a system where two microcontrollers communicate via UART (Serial Communication) to achieve the following functionalities-

Functionalities

  1. potentiometer connected to the microcontroller1 controls the brightness of an LED2 connected to the microcontroller2.
  2. push button switch connected to the microcontroller2 toggles the ON/OFF status of an LED1 connected to the microcontroller1.
  3. Serial terminal(e.g., Putty, Arduino IDE) output
    • Microcontroller2 prints the received ADC values.
    • Microcontroller1 prints the LED1 status [ON or OFF].

Example using two Arduino UNO boards

LED-Brightness-and-Toggle-control-Via-UART

 

Submit Your Solution

Note: Once submitted, your solution goes public, helping others learn from your approach!