60. UART-Based LEDs Control

Design a system where two Arduino UNO boards communicate via UART (Serial Communication) to achieve the following functionalities:

 

Functionalities

  1. A potentiometer connected to Board1, controls the brightness of an LED2 connected to Board2.
  2. A push button switch connected to Board2, toggles the ON/OFF status of an LED1 connected to Board1.
  3. Serial monitor Data
    • Arduino Board2 prints the received ADC values [0 to 1023].
    • Arduino Board1 prints the LED1 status [ON or OFF].

Submit Your Solution