***************************** # vMeterIXA_pico.py (text) ***************************** #by: D@CC #on: 2022FJun11 #Article: 180.html #uSD: Fla53S import machine from machine import Pin,ADC import time # originally written for ePC Article 165 Mak Pi ADC # MakPiADC board works on 2021FJun14 # CD0 is ADC0 # Pot is ADC1 #CDS0 & pot work if SW2 & SW3 are on # modified (ver B) for ePC Article 180 RAPasc using ixProbe by D@CC # to read pico ADC0 with ADC ixProbe attenuated by 9 # to be used with the INA219 to measure the Tx and Rx signals of a USB connector # refer to ePC Article 146 for more INA219 info #output is ADC0:(3.24738+1654827017.000j) #ADC0: 3v3 # Unix Time:1654827017 is Thu Jun 09 2022 22:10:17 UTC-0400 (EDST) # ixProbe sensing pico pin 35 ADCref (atten:9) # green pico pin 33 GND # yellow pico pin 31 ADC0 # Functions Used RAPasc(nn,cvrsFactor) readADC_pico(nn,cnvrt=5.035477e-05) Pin() machine.ADC(nn) time.time() time.sleep(dt) *********************************************************************************** /vMeterIXA_pico.txt