Rainbow Electronics MG260 User Manual

Page 173

Advertising
background image

FLYFOT-MG260-MODULE

Page: 173 / 246

This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.

18.2 Analog digital converters measurements +ADC

Description:

This command gets the (DC level * 1024) of ADC A, ADC B, and possibly ADC C. These voltages are
coded on 12 bits..

Syntax :

Command syntax : AT+ADC=<n>
Response syntax : +ADC: <ADCValA>,<ADCValB>[,<ADCValC>]
Command

Possible responses

AT+ADC=?
Note : Ask for the list of possible values

+ADC: (0-1)
Note : possible values 0 or 1

AT+ADC=0
Note : Select 2 converters (mode 0)

OK
Note : 2 converters mode selected

AT+ADC?
Note : Ask for the current values of converters in
mode 0

+ADC: 500,23
OK
Note : Adc A, Adc B on 12 bits

AT+ADC=1
Note : Select 3 converters (mode 1)

OK
Note : 3 converters mode selected

AT+ADC?
Note : Ask for the current values of converters in
mode 1

+ADC: 712,23,23
OK
Note: Adc A, Adc B, Adc C on 12 bits

Defined values:

<n>

0 : Select 2 converters
1 : Select 3 converters

<ADCValA>
ADC A value, coded on 12 bits. The value returned includes the resistor bridge.
These values are updated every 10 seconds. Displayed on modes 0 and 1.

<ADCValB>
ADC B value, coded on 12 bits. Displayed on modes 0 and 1.

<ADCValC>
ADC C value, coded on 12 bits. Displayed only on mode 1.

Advertising