esphome/esphome/components/adc
Ilia Sotnikov 7bb67ae94b
[ADC] Support measuring VCC on Raspberry Pico (W) (#5335)
* [ADC] Support measuring VCC on Raspberry Pico (W)

Added support for measuring VCC on Raspberry Pico (W) with ADC.
GPIO pin is provided as `VCC`, same as with ESP8266. VSYS is the voltage
being actually processed, and might have an offset from actual power
supply voltage (e.g. USB on VBUS) due to voltage drop on
Schottky diode between VSYS and VBUS on Rasberry Pico. The offset has
experimentally been found to be ~0.25V on Pico W and ~0.1 on Pico,
presumably due to different power consumption.

Example usage:

	sensor:
	  - platform: adc
	    pin: VCC
	    name: "VSYS"

* + Added tests for VCC measuring on `rpipicow` board
2023-09-09 04:00:45 -05:00
..
__init__.py [ADC] Support measuring VCC on Raspberry Pico (W) (#5335) 2023-09-09 04:00:45 -05:00
adc_sensor.cpp [ADC] Support measuring VCC on Raspberry Pico (W) (#5335) 2023-09-09 04:00:45 -05:00
adc_sensor.h Swap ADC back to use 'int' because C3 (#5151) 2023-07-31 09:19:06 +12:00
sensor.py Fix some configs after #5181 (#5209) 2023-08-07 11:48:23 +12:00