Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pinecil V2 won't switch to 20V on 5v/20v only capable powerbank #1853

Closed
kitor opened this issue Dec 12, 2023 · 6 comments
Closed

Pinecil V2 won't switch to 20V on 5v/20v only capable powerbank #1853

kitor opened this issue Dec 12, 2023 · 6 comments
Assignees

Comments

@kitor
Copy link

kitor commented Dec 12, 2023

Describe the bug
I have a Dell Power Companion PW7015M power bank with original USB-C cable. It is capable of running either [email protected] or [email protected], nothing in between.

My Pinecil V2 is negotiating power and stuck in 5V. Entering PD debug menu shows both voltages available.

I'm running on firmware 2.22, but due to #1810 I tried downgrading to 2.21 - without luck. Thus I believe that's a different issue than linked report.
For testing I used 65W USB-C charger of my Lenovo laptop (capable of [email protected]) - this switches into 20v immediately.

@Ralim
Copy link
Owner

Ralim commented Dec 12, 2023

Hello,
[email protected] is not enough power, which is why 20V is not being selected.
The tip on a Pinecil is resistive, so I=V/R (ohms law) is the rule here.
For a 6.2 ohm tip, you require a power supply that can do 20V/6.2Ohms = 3.2A
For a 8.0 ohm tip you require a power supply that can do 20V/8.0Ohms = 2.5A

2.25A is low enough that the Pinecil will never select the 20V profile.

@kitor
Copy link
Author

kitor commented Dec 12, 2023

Thank you. It seems that ability to precisely set the maximum power limit lead me into a confusion - that device is able to control the power output directly and PSU just limits what is the maximum power available. Turns out I was wrong.

@kitor kitor closed this as completed Dec 12, 2023
@kitor
Copy link
Author

kitor commented Dec 12, 2023

Thinking about it - am I wrong?
How the power limit is achieved on barrel jack single voltage power supply?
Is there any resource I can read on power related internals? (I'm quite new to this kind of soldering irons)

According to https://ralim.github.io/IronOS/Power/ there's mosfet based regulation - isn't it possible to limit power usage via PWM (btw, is that what "power limit" in menu does)? Or this will trip overcurrent protection on PSUs?

@Ralim
Copy link
Owner

Ralim commented Dec 12, 2023

Power limit is an average power limited for the PWM.

It limits the PWM duty cycle to keep average power below the user set limit.

PWM does not limit the "peak" power, the mosfet is either on or off. So when it turns on, we are basically just shorting the tip resistance across the power rail. This means whenever the mosfet turns on, we pull the full current.

USB-C PSU's in general will trip off if that peak current is higher than their rated current (to within some margin).

@kitor
Copy link
Author

kitor commented Dec 12, 2023

I see, I'm used to power regulation circuits in non resistive loads (notebooks motherboards, etc) and this is, as you mentioned - purely resistive load.
Thanks for explanation!

@Ralim
Copy link
Owner

Ralim commented Dec 12, 2023

Yeah there is no inductor/diode to smooth out the current waveform, so its purely resistive in nature.

I hope it helps make some sense :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants