The Raspberry Pi Pico has four analog inputs. In this article we will use this feature to measure the analog input voltages of the terminals and to measure the internal temperature. ADC in Raspberry Pi Pico The RP2040 has an internal A/D converter, which is connected to the external input pins GPIO[26] to GPIO[29] and the internal temperature sensor as shown in the figure below. The A/D converter is a 12-bit SAR type with a sampling rate of 500kS/s when using a 48MHz clock. ADC in Raspberry Pi Pico A/D conversion of an external analog voltage input Hardware connections Below is the connection between the I/O pins of the Raspberry Pi Pico. 3.3V supply voltage is divided by a variable resistor, and the voltage between the tap and GND is input to the ADC0 pin. Schematics Connection Software (Micro Python code) As before, we will use Micro Python. Referring to
Read more