Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:55 29 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Raspberry Pico - How to Get the Voltage of the Power Input

Author Message
aFox
Regular Member

Joined: 28/02/2023
Location: Germany
Posts: 76
Posted: 01:34am 08 Mar 2023
Copy link to clipboard 
Print this post

Hi

How can I get the voltage of the power input (Vsys or Vbus) like a battery without getting a shortcut?

Any ideas?

Gregor
Edited 2023-03-08 11:37 by aFox
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2141
Posted: 01:57am 08 Mar 2023
Copy link to clipboard 
Print this post

A battery (1.8V to 5.5V) can be connected to Vsys  via a Schottky diode.
See latest manual p10 "Power Supply".
.
Edited 2023-03-08 12:00 by phil99
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9139
Posted: 08:46am 08 Mar 2023
Copy link to clipboard 
Print this post

print pin(44)*3

It's in the manual

NB: not available for the WEB version as the pin is used for the wifi I/F
Edited 2023-03-08 18:47 by matherp
 
aFox
Regular Member

Joined: 28/02/2023
Location: Germany
Posts: 76
Posted: 01:46pm 08 Mar 2023
Copy link to clipboard 
Print this post

Many thanks

Yes it is.

Sorry, I overlooked this:
Pin 44 or GP29 is also ADC3 which is an analog input reading ⅓ of VSYS.


SetPin 42, DIN
SetPin 44, AIN
Print Choice(Pin(42), "VBUS is present", "")
Print Pin(44)*3, "V on VSYS"


Gregor
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024