Connect a potentiometer and an LED to the microcontroller as shown in the image below.
Example using Arduino UNO:
Build a system where the microcontroller communicates over UART and responds to specific AT commands received from a serial terminal (e.g., PuTTY, Arduino IDE Serial Monitor).
The microcontroller should:
Refer to the AT command table below for the list of supported commands and their corresponding actions/responses.
AT-command table
Sr. No | AT Commands | Action | Response to command |
1 | AT | - | OK |
2 | AT+LED=ON | Turn ON LED | +LED:”ON” |
3 | AT+LED=OFF | Turn OFF LED | +LED:”OFF” |
4 | AT+SYS_ON_TIME? | The Arduino was powered on. | +SYS_ON_TIME:”HH:MM:SS” |
5 | AT+LED_STATUS? | Check LED is ON or OFF and respond |
or
|
6 | AT+ADC_VALUE? | Read ADC value & respond |
range of <value> is 0 to (2^n) - 1 (adc value) |
7 | AT+ADC_VOLTAGE? | Read Voltage on ADC pin and respond |
range of <value> is 0 to VCC |