74. Sleep Mode with Button Press Wake-Up

Build a power-efficient system using the microcontroller with the following functionality:

  • The microcontroller will be in power-saving mode to save power.
  • When a push button switch connected to the microcontroller is pressed:
    • Wake up from power-saving mode.
    • Read the ADC value of a potentiometer connected to the microcontroller.
    • Print the ADC value on the serial terminal (e.g., Putty, Arduino IDE).
    • Return back to power-saving mode.
  • The system repeats the process each time the push button switch is pressed.

 

Submit Your Solution

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