Build a system where two microcontrollers communicate via UART (Serial Communication) to achieve the following functionalities-
Functionalities
- A potentiometer connected to the microcontroller1 controls the brightness of an LED2 connected to the microcontroller2.
- A push button switch connected to the microcontroller2 toggles the ON/OFF status of an LED1 connected to the microcontroller1.
- 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
