59. AT Command System via UART

Connect the potentiometer and LED to Arduino UNO as shown below.

 

 

Build a setup where the Arduino UNO takes action based on received AT-commands and prints its response on the Serial Monitor. (as shown in below table)

 

AT-command table

Sr.NoAT CommandsActionResponse to command
1.AT-OK
2.AT+LED=ONTurn ON LED+LED:”ON”
3.AT+LED=OFFTurn 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

+LED_STATUS:”ON”

or

+LED_STATUS:”OFF”

6.AT+ADC_VALUE?Read ADC value & respond

+ADC_VALUE: <value>

range of <value> is 0 to 1023 (adc value)

7.AT+ADC_VOLTAGE?Read Voltage on ADC pin and respond

+ADC_VOLTAGE: <value>

range of <value> is 0 to 5

 

 

 

 

 

Submit Your Solution