Usage Of Gpio; Usage Of Adc - Ebyte E103-W01 User Manual

Esp8266ex uart to wifi module
Table of Contents

Advertisement

Chengdu Ebyte Electronic Technology Co., Ltd.

6.4 Usage of GPIO

No.
E103-W01 provides 5 GPIOs: GPIO4\GPIO5\GPIO12\GPIO13\GPIO14.
1
The user can set the pin through the AT+SYSIO series of instructions, the instructions are as follows:
AT+SYSIOSETCFG: Set the IO working mode;
AT+SYSIOGETCFG: Query working mode;
2
AT+SYSGPIODIR: Set GPIO work as input and output;
AT+SYSGPIOWRITE: Set the output level of GPIO;
AT+SYSGPIOREAD: Read the level status of GPIO;

6.5 Usage of ADC

No.
E103-W01 provides one ADC with 10-byte precision, with which 0.0V ~ 1.0V voltage can be detected.
1
User can get current ADC value by AT command (AT+SYSADC?), then obtain the real voltage by calculation.
2
Input voltage=ADC value/1024
3
For example, ADC value is 45, so the really voltage is equal to 45/1024=0.044V.
Copyright ©2012–2018 Chengdu Ebyte Electronic Technology Co., Ltd.
Remark
Remark
E103-W01 User Manual
19

Advertisement

Table of Contents
loading

Table of Contents