- ADC (Analog-to-Digital Converter) converts analog signals into digital signals and is commonly used in electronic devices such as audio, video processing, and sensor applications.
- The r1 development board is a 12-bit ADC.
- The r1 development board has a total of two adc channels. Here, channel 4 is taken as an example.
- When testing, connect VCC first, then GND. (As shown below)
![r1_硬件连接-001-接vcc.jpg](/%E4%BD%95%E6%B5%A9%E9%92%A7/r1_%E7%A1%AC%E4%BB%B6%E8%BF%9E%E6%8E%A5-001-%E6%8E%A5vcc.jpg)
![r1_硬件连接-002-接gnd.jpg](/%E4%BD%95%E6%B5%A9%E9%92%A7/r1_%E7%A1%AC%E4%BB%B6%E8%BF%9E%E6%8E%A5-002-%E6%8E%A5gnd.jpg)
- Click Terminal--Enter the following command
cat /sys/bus/iio/devices/iio\:device0/in_voltage4_raw
- The first test is connected to vcc, and it should be full scale at this time; the second test is connected to gnd, and the output should be empty at this time.
![r1_软件步骤_adc_-_en.png](/%E4%BD%95%E6%B5%A9%E9%92%A7/r1_%E8%BD%AF%E4%BB%B6%E6%AD%A5%E9%AA%A4_adc_-_en.png)