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

USB-C? #24

Closed
daling opened this issue Jul 13, 2017 · 131 comments
Closed

USB-C? #24

daling opened this issue Jul 13, 2017 · 131 comments

Comments

@daling
Copy link

daling commented Jul 13, 2017

Hey, a few weeks ago I got a pretty awesome idea: would it be possible to hack this iron into having USB-C PD input?

The USB-C specs allows for 3A at 20V, or even 5A. This would mean that it would be able to power the iron from like any common available charger. Sadly I don't have the knowledge nor the skills to pull this off .

Wouldn't that be pretty awesome? :D

I did some research and fount out that the STM32F0 devices can be used for USB-C PD. The STM32 in this TS100 is a STM32F1 and seems currently not supported. But my knowledge about STM32's and USB PD is very limited, maybe someone out there is able to tell us more.

@joric
Copy link

joric commented Jul 14, 2017

USB-C QC is not that intelligent. It simply reacts to data lines voltage:

D+ D- VCC
0.6V GND 5V
3.3V 0.6V 9V
0.6V 0.6V 12V
3.3V 3.3V 20V

USB-C PD

See Qualcomm Quick Charge 2.0 protocol specification and support.

So 20 volts is actually very simple to get, except there are very few Class B (20v capable) devices on the market, most of them are 12v max. If you feed both data lines +3.3v, the power source will switch to the maximal voltage it's capable of.

Sadly USB Type-C is much larger than microusb and probably won't fit inside.

For starters you can get power from the QC-capable device using Quick Charge Adapter.

It actually works:

QC2.0 Quick Charge Adapter

QC2.0 Quick Charge Adapter

QC2.0 Quick Charge Adapter

@daling
Copy link
Author

daling commented Jul 14, 2017

Wow, I expected it to be a lot less simple.

So if I understand this Quick Charge Adapter correctly, the only thing it is doing is giving different voltages over the data lines. That's something the STM32 should be able to do as well.

I can see that the USB-C connector is too big, but we can make USB-C to DC5525 + MicroUSB adapter cables. Or MicroUSB to DC5525 + MicroUSB for QC3.0 devices.

Here's my actual feature request:
Add a mode where it sends max. voltage (3.3) over D+ and D- on the MicroUSB connector.

@Ralim
Copy link
Owner

Ralim commented Jul 14, 2017

Hi,
You are talking about two different things here: QC2.0 chargers and USB-C.
QC2.0 uses the data pins to signal higher voltages by looking at what value is present on the data pins.
USB-C requires the device to identify itself and actually ask for the higher voltages.
Working with QC2.0 chargers can be done entirely without the microcontroller using any of the available intermediate boards or by setting up a voltage regulator and resistors inline to the unit (since you would need to make a custom power cable anyway).

USB-C is completely out of the question for the STM32f1 inside to implement as the pins are just not routed in a way to make it easy to do. It would be far easier to use an external module to perform the negotiation to ask the power adapter to supply the max voltage. This could be done in a similar fashion to this article.

@perillamint
Copy link

Someone did it using Hakko handle and custom controller board.

http://hackaday.com/2017/02/24/60-watt-usb-soldering-iron-does-it-with-type-c/

I think this setup also works for TS100 iron.

@Ralim
Copy link
Owner

Ralim commented Jul 14, 2017

I think @perillamint is on the right track.
Using an external converter board that also houses the USB-C connector would make the most sense given the already compact design of the ts100 iron. Would also allow you to power other devices with the same converter board.

@gordio
Copy link

gordio commented Jul 22, 2017

@Ralim a small improvement (board with QC USB) and USB-C connectors :-D

@Ralim
Copy link
Owner

Ralim commented Jul 23, 2017

I'm currently a little bit too busy to design a dedicated pcb at this point in time. But ill come back to this when im less busy to see where the market is at for this kind of option :)

@Ralim Ralim added the wontfix label Aug 3, 2017
@qoobaa
Copy link

qoobaa commented Nov 21, 2017

I was looking for the simplest way to power TS-100 or charge my laptop out of a USB PD enabled charger, and I've just stumbled upon this guy: https://www.aliexpress.com/item/USB-PD-trap-TYPE-C-Fast-Flip-Flop-pollinpg-device-detector-trigger/32830872838.html. I've just got one and it seems to work flawlessly.

@joric
Copy link

joric commented Dec 4, 2017

@qoobaa yeah cool but one I was referring to (and already posted a link above) costs just $3 (well, $4 with shipping), not $13. Just for clarity, longer link without a caption: https://www.aliexpress.com/item/1PCS-QC2-0-qc3-0-Tester-Automatically-Detects-Phone-Quick-Charge-Voltage-Meter-Simulator-Trigger-9V/32771660912.html

@qoobaa
Copy link

qoobaa commented Dec 4, 2017

@joric I bought this one too, but it's not USB-C PD.

@joric
Copy link

joric commented Dec 4, 2017

@qoobaa ah ok it's quickcharge. Different standards.

@RRAlex
Copy link

RRAlex commented Feb 4, 2018

It'd be nice if there was a simple USB-C PD (20V) -> 5.5mm dongle adapter.
There are some batteries now that support 30W output, which is probably enough for many jobs?

@gordio
Copy link

gordio commented Feb 4, 2018

It will be nice to put this port in TS100 - USB-C Port, and use Power Bank like this (12V/1.5A) - Tronsmart-Presto USB-C
P.S. MA5887? Datasheet

@clowrey
Copy link

clowrey commented Feb 17, 2018

I would love to see USB C implementation directly on the next TS 100 - it is the elegant solution. Data + power all in one and many new laptops support this connector.

@Ralim
Copy link
Owner

Ralim commented Feb 26, 2018

The next generation (TS200) will use Quick Charge 2.0 over USB-C. Sadly it looks to be limited in power to a low power (~20W). Specs haven't been confirmed just yet though. Just looking at marketing material.

I'm personally going to stick to the TS100 for now. But will update here if I hear any more information.

@JohnEdwa
Copy link

JohnEdwa commented Feb 28, 2018

Why use QC2 (which has a maximum output of 20W), when USB-PD could provide all the way up to a 100W. Guess they just thought there are more QC2 compatible chargers around?

I couldn't find any info on the T200, mind providing a link? I'd be interested to see what they've come up with.

@Ralim
Copy link
Owner

Ralim commented Feb 28, 2018

Im guessing so? Havent really heard the reasoning, but 20W is just too little power for most things if you ask me. PD would be much nicer.

I dont have any links online im afraid :(

@Adrian-at-CrimsonAzure
Copy link

Adrian-at-CrimsonAzure commented Mar 1, 2018

@qoobaa Does that Ali board automatically try to pull the max voltage from USB-PD devices? I'm thinking about getting one and a DC5525 to make my own USB C adapter.
Does it also pass data through the 4 through-holes on the board as well?

@qoobaa
Copy link

qoobaa commented Mar 1, 2018

@Adrian-at-CrimsonAuzre it does not. It requires to push the button several times after connecting, sometimes it doesn't allow to choose the highest profile (randomly). I gave it up and ordered PD Buddy from Tindie - it works perfectly, but it's quite pricey compared to the Ali board. No idea about passing the data lines (I'd bet it does not pass anything).

@Adrian-at-CrimsonAzure
Copy link

Might end up getting one of those or making my own.
If I can cram the circuitry into a small enough board I'd probably replace the 5.5mm plug with a daughter board.

@alexnif007
Copy link

@Ralim IMHO, whatever the name of the technology is (PD or Quick Charge 2.0-3.0), everyone here wish to get possibility to make some smart battery pack, supporting higher voltage and currencies to output at least 12V with adding minimal additional external hardware for TS100. Not adding USB-Type C (it is useless, and will not give a required result). Here a man did something same with a few lines of code for ATTiny85: http://blog.rnix.de/12v-from-a-usb-powerbank/ The question is: Is it possible to add a few lines in the firmware of TS100, so, that it will be capable of giving corresponding signals through it's microUSB, for instance, selecting some menuitem or just with a press of a key, like it is described in the link, given before? Or not?

@JohnEdwa
Copy link

JohnEdwa commented Mar 11, 2018

@alexnif007
You need the resistors in the datalines to be able to pull them to 3.3V for the QC identification (which I'm pretty sure the TS100 lacks), so you would at the least need to make a special cable for it.

Doing the USB-PD thing with a 5.5mm jack in the end would be much better, as it can actually provide enough power to do stuff. QC is limited to 20W absolute max, because the micro-usb connector can't handle much more.

@Ralim
Copy link
Owner

Ralim commented Mar 11, 2018

@alexnif007
I wouldn't recommend anyone designing for QC 2/3 as its being strongly pushed out in favour of USB-PD which is available on USB-C. As well as USB-PD supporting higher voltages and higher power.

However all of these require some form of negotiation, either resistors(QC) or active messages(USB-PD).
For all of these you are going to need to make up a special cable of some kind to :

  1. Connect the power output through to the barrel jack (you cannot supply heater from USB)
  2. Interface to the standard using resistors / communications
  3. Adapt to plug in the case of USB-PD

It would be possible to put some of this inside the iron, sure, but the vast majority needs to be added externally which is why most people just purchase adapters and call it done.

I would happily support someone making a USB-C to barrel jack USB-PD cable which would be awesome, but is not really something that can be done in the iron itself.

The 20W limit on QC is a joke for a soldering iron that is going to be used for anything large.
20W is workable for low powered use (small assembly), but as soon as you try and solder a larger connection you really want the higher power available in USB-PD.

@alexnif007
Copy link

@Ralim While the months pass - still on the market I see only QC chargers, so while here discussion continues already half a year - it started 17 Jul 2017, this half year already people could use it "on the road" with the pocket battery. The TS100 itself is - not serious - it's handle getting extremely hot in a few minutes, and it has no secure stop for a hand not to slide to the heating element, so it cannot be used for something large whatsoever, but only few pinches "in the field", for which is needed portability, also of a battery, which is being in use, in this case mostly present QC on the market, if take something more powerful - TS100 losing it's main advantage - PORTABILITY, because of giantic battery, which someone has to carry to use it. For "anything large" I prefer to use butane Dremel or portasol - offering the same portability with more power on the field. Anyway, I am going to do QC bit bang with Arduino which power the TS100 using barrel, for connection of Arduino to the battery use USB. Just before didn't want another external element adding clumsines to the TS100 construction.

@perillamint
Copy link

perillamint commented Mar 13, 2018

IMO, for this kind of application, USB-PD is more suitable then QC2 or 3(reverse engineered recently). QC 2 or 3 only provide power up to 18 Watt, which doesn't enough for this kind of application. In contrast, some popular USB-PD adapters like Apple USB-PD power brick product line starts from 29W max power and Nintendo Switch power brick provides up to 39 W, which will definitely do its job.

@alexnif007
Copy link

@perillamint If talking about usage of 110V or 220V power adapter - there's no need to make it this complicated way, you can choose any even more powerful notebook charger, even 3.75A or 4A, just select needed barrel size from wide selection of chargers for some Dell, ASUS, Acer notebooks, it will be even cheaper. Here we are talking about usage of some POCKET BATTERY!

@Ralim
Copy link
Owner

Ralim commented Mar 13, 2018

@perillamint I agree that QC is not worth touching, and the growing market of the usb pd is worth working towards using as it works well for portable battery supplies as well as wall adapters that are available.

What would be nice is to create an add on that decodes the usb-c pd and communicates to the iron the available power so it can scale to the available power.

I agree @alexnif007 about this being a discussion about portable batteries, but it's important to also look at the wider use case of people who use their ts100's at a desk and like to use mains power.

@JohnEdwa
Copy link

JohnEdwa commented Mar 13, 2018

I use a tiny 19V @ 2.1A (40W) laptop charger, it has the perfect balance of size and power for me, and the lower power means the cable is thin and extremely flexible. Just slightly ruined by the gigantic EU plug (I've since swapped the travel adapter plug to a regular 0.5m cable), but there's not much I can do about that :)
If I really need to take it to the field, a 4S lipo works fine.

@Ralim

What would be nice is to create an add on that decodes the usb-c pd and communicates to the iron the available power so it can scale to the available power.

AFAIK implementing proper USB-PD is not easy to DIY, but there are plenty of dirt cheap manager chips one could use, like the FUSB302 (the chip is ~$0.35 in quantity). Here's a project/breakout board that can basically do what the second post QC adapter, but for USB-PD.
I guess why no-one has really done anything like this is the danger of having a regular USB port that is configured to output 20V@5A to anything you plug in it, which is why I'd much rather just skip that part and just make a device with a USB3-A plug in one end, the USB-PD chip in the middle with a switch to select between a few voltages, and a 5.5mm barrel jack in the other.

@Ralim
Copy link
Owner

Ralim commented Mar 14, 2018

I would only do usb-pd using an interface ic such as the one you mentioned. Your proposed is basically what I was thinking.

I think either an inline cable that provides a barrel output or a new iron entirely are the two ways we are most likely to see this.

@whitehoose
Copy link

@polarathene
ALL powerbanks are DC out - the shape of the connector doesn't dictate the shape of the output. I have adapters to convert most common outputs to fit most common inputs to plugging a usb powerbank onto an XT60 is simple enough. The stopper (if there is one) is that the TS80 requires a QC3 compatible power source while the ts100 only requires the correct voltage source with a potential to deliver sufficient power.

With qc3 you always creep up on a value then stop.
The whole point of all this is that irrespective of PD or QC - the device will initiate the negotiation for power the source controller will never "just" squirt out 20v@5A.
In the same way with an iron YOU set the temperature and it's the iron's job to maintain your chosen level. If the power isn't available you won't attain the requested value - it's not a lottery you don't just plug it in and see - imagine the consequences if on a good(?) day your iron got up to 1000c or your radio started transmitting at 100KW.

All devices are built to a spec.
In the case of PD that's mainly aimed at charging batteries or swapping power between gadgets some of those batteries are LiLon which are effectively a power black hole. You can pour masses of amps into them - so the 100w for PD is for charging a powerbank you can't pour those 100watts into a 1w LED and expect it to shine. You can have a psu with a potential to deliver - but (like a horse) you can't make the device drink it all.

Yes PD has a protocol and YES there is negotiation - it's known as "suck it and see" You start low and slowly up the game, but you have to be careful you don't exceed the capabilities of the device. So you can plug a PD into a device using a aaa cell - but whatever you do your 20v 100w device isn't going to work.
In the case of USB. On power up all the basic services work by default at a the USB1/2 5v level - but in the case of the ts80 you can't power the tip (on stock firmware) however the iron can use qc3 to negotiate with the power source for more power - if the power source doesn't understand - it maintains 5v ... if you increase the voltage manually - I'm not certain what will happen.... the ts80 won't be in the correct state to deal with 9v ... whether it can switch, compensate or what I'm interested to know.
(but not interested enough to try it!)
..... However because it's a closed loop the voltage increases to 9v. or possibly (depending on the device and bank) 12v, This isn't a maybe it's down to the spec of the device as well as the bank and needs a serious set of cells to deliver a meaningful power level @12v. I'd also expect a device that requires 12v to at least show some signs of life at 5 and 9v too.

Finally you can get a big lipo or similar - s4 or above and use a buck converter to limit what the battery is allowed to deliver to meet the spec.

In all cases you start safe (5v) and crawl through the options 20v@5A will simply fry an unprepared device
9v@5A will only consume 2a max (18w)
(or your example <65w isn't not effective) it's because at that voltage the circuit won't ..... no - CAN'T convert the amps to power because that's not how PHYSICS works!!!
back to the ts80 because the tip is 4.5v and Georg Simon Ohm (ohm's law) and James Prescott Joule decree that's what will happen (resistance trumps amps)
BUT if something shorts - it's not going to end well ... so in general your ower meets te needs of te device - rarely the other way round.

With safety in mind you'd also want some form of fuse or other limitation.

In a powerbank you have 2 config options a single 3.8v or a bank of cell(s) connected in parallel (able to deliver high current, but only a fixed 3.8 voltage) and a boost converter that makes a the designated output voltage(s) as per spec with a consequential reduction in current. so a 2000mAh cell delivers 1500mAh
The other way is a number of 3.8v cells connected in series (variable voltage 3.8, 7.2 etc , lower fixed max current) cell imbalance will have some effect - but under 20v it's not usually an issue

We now have a fixed resistance (4.5 ohm) and a variable voltage qc3 makes provision for 5-20v (20v=88.8w). That's physics. If we say watts are the ability to do work on a 4.5 ohm load 9v=18w, 12v=32w unless 18w is derived using devious means otherwise it requires a change in resistance (which in the ts80's tip isn't an option).
you can see the relationships here http://www.sengpielaudio.com/calculator-ohm.htm.

There are various sources for studying electrical theory - perhaps a 101 course would clear up a few of the many misconceptions you hold. Literally - it's not rocket science.

@polarathene
Copy link

@whitehoose That's ridiculous... That's like claiming my VGA/DVI only displays support HDMI because I can use an HDMI adapter to use HDMI from my GPU. They're not able to utilize any of the added benefits from HDMI though are they.

Yes... there are cables that will have a USB male connector on one end and a DC barrel male connector on the other end. Those are either passively sending 5V and whatever amperage(100mA?) that is sent when there is no negotiation. There are ones with converters to up the voltage and they negotiate for however much amps(I don't know how this works, perhaps they can just pull amps instead of requesting in load units like USB spec requires), which could be up to 2.4A at 5V from my power bank(12W), but going to 9 or 12 volts reduces the amperage output from that adjustment as well as additional efficiency loss, so now I end up with less than 1A/10W.

Proper DC out, allows for a higher voltage without that additional loss, it should be able to output the maximum 15W that the powerbank allows for(12V/1.25A), those few extra watts make all the difference for my requirements. With a TS100, that's not going to be sufficient either way. A more capable powerbank with DC out capable of higher wattage could work, or a USB-PD capable powerbank could utilize an adapter like PD-Buddy Sink and output to a DC barrel connector that way. Someone shared a product earlier though which is a USB-C cable that is preset to negotiate 15V or 20V and has a DC5525 output connector, I guess for amps they're just pulled as needed up to the 5A ampacity of the cable.

The whole point of all this is that irrespective of PD or QC - the device will initiate the negotiation for power the source controller will never "just" squirt out 20v@5A.

If the power isn't available you won't attain the requested value - it's not a lottery you don't just plug it in and see

As I said, I don't own a TS100, I've never even used a soldering iron, I don't know how they are working with the variable voltage and amps. I can only assume it's similar to the DC powered product I have, which supports a range of voltage input and has power requirements in watts, with some on-board circuitry to adjust the voltage to the boards operational needs and then use whatever amps are available/supported.

You can provide a direct source to TS100 of 20V/5A and it'll work with that just fine, no QC or USB-PD involved. AFAIK, it wouldn't be happy if given 10V or 30V though.

If you control the temperature through some interface on the iron, and that raises the amps drawn accordingly to get whatever wattage it needs to reach that temperature, great.

so the 100w for PD is for charging a powerbank you can't pour those 100watts into a 1w LED and expect it to shine. You can have a psu with a potential to deliver - but (like a horse) you can't make the device drink it all.

The LED just needs to receive the correct voltage and be able to draw the amps it needs. Have I said something earlier that suggests that I don't understand what you're saying here? I've only seen the specs for the TS100 that state ranges of 17W to 65W, others here seem to think that it might be possible to go beyond that limit, I linked to a discussion which confirms 65W was the limit. You or someone else were wanting 12V on QC3, even though that wouldn't really make any notable difference in wattage afaik as the max amperage is adjusted accordingly to achieve the same max wattage as you'd get with 9V.

So you can plug a PD into a device using a aaa cell - but whatever you do your 20v 100w device isn't going to work.

I never claimed such did I? If something supports USB-PD, the negotiation itself should handle what can be achieved, the device requesting the power doesn't have to be careful here. If it wants 80W via 20V/4A, but the USB-C cable only supports 3A, it already knows this and won't be able to successfully negotiate. If it was a 5A capable cable, then the e-marker will have expressed that capability and provided the power source can meet the request, the negotiation is successful and power is delivered.

In all cases you start safe (5v) and crawl through the options 20v@5A will simply fry an unprepared device

Only if the device cannot work with 20V. A device only draws amps that it needs, it could be 200 amps made available and it'd only sip in the amps it wants at 20V, the cable providing the 200 amps though would need to have the appropriate ampacity otherwise hello fire. USB-PD and QC cannot draw 20V immediately, they are drawing via USB and need to negotiate first otherwise it's not safe to try pull what can't be supplied.

9v@5A will only consume 2a max (18w) (or your example <65w isn't not effective) it's because at that voltage the circuit won't ..... no - CAN'T convert the amps to power because that's not how PHYSICS works!!!

Sorry, what? 9V/5A is 45W. If the power source can provide that, and the device can work with it, there isn't a problem. I'm not that great on physics knowledge, so feel free to link me to something that says otherwise. You can find power supplies of 9V/5A though. QC3 limits 9V to 2A due to the max 18W QC3 supports. Another reason for the lower amperage(and perhaps your physics reasoning) is the ampacity of the cable, you don't want to push 5A through a 28AWG wire for example. The TS100 won't take it because it has a min voltage requirement of 12V, the TS80 won't take more than 2A at 9V because it's exceeding QC3 protocol.

We now have a fixed resistance (4.5 ohm) and a variable voltage qc3 makes provision for 5-20v (20v=88.8w). That's physics.

At 20V with QC3, you'd probably be getting 900mA to cap at 18W. The variable voltage is being handled at the power source(power bank in this case). I'm vaguely famliar with the internals of such products, but regardless of their internals, they output currents at specific volts and amps. Those vary based on what protocols are supported and requested.

unless 18w is derived using devious means otherwise it requires a change in resistance (which in the ts80's tip isn't an option).

The TS80 negotiates for 18W over QC3 presumably not caring what the current voltage/amps are, so long as they're within that supported range, and can be adjusted through some regulator on-board if needed? I don't know how soldering irons work with electricity, but my understanding is that watts are often referred to when talking about heat dissipation from current, so if 18W is always the max supplied, then that's the maximum heat that is going to be generated for soldering?

There are various sources for studying electrical theory - perhaps a 101 course would clear up a few of the many misconceptions you hold. Literally - it's not rocket science.

It'd seem you have misconceptions of your own tbh. There's really nothing to discuss here about the T80 and it's honestly off-topic. It uses QC3, so use a capable QC3 power supply, you're not going to get more from it regardless, whatever your goal is, it's not clear. Use a QC3 capable power source that properly implements the spec and you should get your 18W that the iron needs. You cannot exceed that with QC3. Anything claiming higher will have multiple USB ports and is actually claiming total watts the product can output at once, not from a single QC3 port, or it's QC4/PD.

Some QC3 products cannot output the full 18W, such as my Xiaomi powerbank(not the latest) which has a 15W limit. Beyond that, the quality of your USB cable to provide the power is important, you want better AWG size(lower number is better), cheaper cables will be 28AWG or higher, these cannot support the amps you're likely wanting that well, try get 24AWG or lower. Beyond that, there is the cable length itself, which in addition to the AWG size affects the resistance of transferring power from one side to the other, and thus a voltage drop which can reduce the total wattage that makes it to the other end. A shorter cable or better AWG size will help reduce that loss.

So if you've been having any issues with QC3 power sources, it might be the power source itself being inadequate for your devices needs, and/or the cable used. Goodluck.

@majuss
Copy link

majuss commented Sep 18, 2019

So I tried the UM34C with my TS80 and it always shows 5 V no matter the power Source (even with QC3 enabled source). But the iron shows 8.2 V. But still, the cable works with every USB power source available, which is quite nice. I thought about ordering one and cut it open to see if there is really a QC3 chip inside (and measure the voltage directly), there would be enough space.

@whitehoose
Copy link

My UM34c shows 8.99v@0.11A standing on startup which rises or drops to 8.6v @1.87A when actively heating (values constantly fluctuate slightly until target achieved. Once target temp achieved voltage/current varies randomly to maintain temperature until thermal load applied to tip. USB Safety tester j7-t shows very similar readings as does my everyday meter. Didn't bother with Iron readout except to see which general direction temp was going. Touch soldered a couple of points just to prove the magic pixies were concentrating.

Can't explain the 5V other than the random nature of some realities appears to override the physical universe.

@LianAarts
Copy link

So after like 2 hours of plugging the TS80 into various devices I have lying around I can confirm something pretty interesting. These cables by the company Rampow have a QC3 Adapter built in, which means with the help of this cable I can plug the TS80 into virtually ANY USB-power source (every Powerbank works, MacBook Pro 2017, MacBook Pro 2010 with USB 2.0, MacBook Pro USB-C charger...) even my Mi 8 worked as a power source and it always drew 9 V and warmed up at a normal speed. A similiar C-C cable should also work fine.

I don't know if anybody said something about these cables already, so here are my infos.

Hi this is very helpful, I was wondering if you tested the C-C cable you mentioned here? I am looking for such a cable, like you said no C-C cable is working. When I use a usb C-A adapter and use a generic A-C cable it does work, very weird.

Thanks!

@majuss
Copy link

majuss commented Feb 12, 2020

Nope I had no success with the aforementioned cable.

@witnessmenow
Copy link

I've been working on a solution for this that I would love to get feedback on

img

One of the main features of what I'll be doing is incorporating an XT60 connector into the PCB so it can be used with the existing battery cables available, I find them very flexible and good to work with compared to other power supply cables I've used.

I've been doing some prototyping with existing adapters and modules. I haven't power my TS100 from anything but USB-C in about 3 months! I didn't even unpack my regular supply when I moved.

The above picture above is using an IP2721 Module, and I was happy enough with how it worked, so I designed a PCB using it, but I figured shortly after ordering that I think it will have problems.

The IP2721 only negotiates voltage, which is fine if you have a big enough power supply. But even 45W power supplies are out of spec @20V, although I just received a 45W power bank today and it did work, but it pulled more than 45W (~48W) on heat-up.

I also bought a 30W supply to test which I assume is just going to trigger the over current protection of the supply.

To ensure compatibility with all PD PSUs, the sink IC that is used should also be able to negotiate the current a supply can do, so it can drop to lower voltages if needed. I'm after buying the reference board for the STUSB4500 so I can try that out. That should allow me to configure up to 3 voltage & current profiles, which would allow it to negotiate down to 15V or even 12V if the supply was out of spec.

If people had any comments or suggestions on the project I would really like to hear it!

@JennyEverywhere
Copy link

JennyEverywhere commented Jun 4, 2020 via email

@Ralim
Copy link
Owner

Ralim commented Jun 5, 2020

At some point soon I will be adding support for FUSB302 support for the TS80P (once mine arrives).

So one option is a build for the TS100 that has that IC also enabled could be possible. That way the iron can lookup by tip resistance the ideal voltage to negotiate for to ensure that power is within limits.

The STUSB4500 is also a chip i plan to support, but probably a little but further down the line as I havent yet dug into it much yet.

If it were me i would use XT30 over XT60 for this application :)

@witnessmenow
Copy link

Thanks @JennyEverywhere , I'm not sure what chip the sink buddy uses, but the stusb4500 is configurable via i2c, so I'm hoping it will suit the needs. The nice thing about the reference board is a I can evaluate the functionality without designing a PCB for it!

Would you be planning to put the ic inside the housing then @Ralim ? I assume you have seen the otter iron project ? (it's on GitHub) it's a complete replacement PCB for the ts100 that enables PD on board.

That's interesting about measuring the resistance of tips, I was just going to base my profiles for the STUSB on a resistance of 8.5Ohm, but I guess there could be variations between tips. The adaptor I build using the STUSB (if it works out) will have the i2c pads exposed so users can change the profiles of they wish.

The XT60 is major overkill for sure, the only reason I'm using it is to take advantage of all the existing xt60 cables that are available for the ts100. Even when I was using my regular power supply I had built an adaptor to use one of these xt60 cables because of how flexible they are, I find them very nice to work with.

I have a ts80p on the way too, so I'm interested to hear about whatever progress you make with it!

@Ralim
Copy link
Owner

Ralim commented Jun 14, 2020

@witnessmenow

The sink buddy actually uses the FUSB302 and its the firmware I'm using as an implementation reference for the support im adding now :)

I personally would mod the IC module inside of the enclosure, removing the usb-micro and trimming the board to fit there (the FUSB is tiny).

Indeed I do know about and love the OtterIron; getting mine running with this firmware is on my infinite to-do list :|

Oh, you can assume 8.5+-0.3ohms roughly; just meant more that since PD has PPS (continuous voltages); its possible in theory to select the highest voltage that just keeps below the power supply current limit worst case :)

I just lopped off the XT60 and put on some nice XT30 connectors 😆

TS80P will get there soon but thats for the other thread 😂

@witnessmenow
Copy link

IMG_20200614_074657_782

I received my ip2721 version and all the parts and assembled it. After fixing a mistake I missed from the datasheet (a 100k between vcc and the SEL to set for 20v) it actually works quite well. Changing the SEL pin to floating negotiates 15v.

I did a live stream of assembling it and also testing out the stusb4500 and most of the viewers seemed happy enough with the ip2721 version, which would definitely be cheaper as the chip itself is 1/3 of the price, but the fact it doesn't need to be programmed is a huge time/cost saver.

So I fixed up my design for that and ordered a new version.

Even before I started testing the stUSB I figured that while it supports 3 profiles, which would be perfect for the ts100 as there are 3 pd voltages in the range, profile 1 is locked to 5v. I was able to configure it for 20v and 15v and it did as expected. I probably still will make up a design based on it though

I must look up the FUSB, thanks for mentioning it!

Slightly off topic, but I bought several different wattages of pd supplies for testing this board out. I have 6 of them, and only 2 out 6 (my two power banks) will power the TS80p, despite 5 of 6 being 30w or higher.

My 30w Amazon, my genuine ~60w Mac charger and my fake 87w Mac charger all meet the wattage requirements, but don't offer 12v. So it will be interesting to see how compatible it is with just random pd chargers people have lieing around

@puzrin
Copy link

puzrin commented Jun 29, 2020

The sink buddy actually uses the FUSB302 and its the firmware I'm using as an implementation reference for the support im adding now :)

@Ralim it would be very useful if you could release your USB PD support for FS302 as standalone lib with MIT license. AFAIK currently there are no useable opensource libs to just ask PPS V/A and nothing more.

  • Commercial have additional licence limits (OnSemi, Microchip, ST)
  • Buddy Sink (Google-based?) is hard-pinned to ChibiOS (requirement for 1ms would be enough)

@witnessmenow
Copy link

image

V1.1 of the IP2721 version fixes the issue with the first version. I think I need to add some ESD protection before I release it though. It's exactly as the IP2721 sample schematic recommends, but it couldn't hurt.

@puzrin There is a board on tindie with source code for the FS302, it seems super complicated though (to me anyways)

https://github.com/ReclaimerLabs/USB-PD-Breakout

@puzrin
Copy link

puzrin commented Jun 30, 2020

There is a board on tindie with source code for the FS302, it seems super complicated though (to me anyways)

That board's FW is specific kludge of "buddy sink". OS is replaced with blocking delays instead of state machine. This may be acceptable for hobby project, but not acceptable for universal library.

@Ralim
Copy link
Owner

Ralim commented Jun 30, 2020

Its not a kludge of buddy-sink; but more a port of the code from the chromebook kernel tree as far as I figured out.
I actually started with that firmware but boy was it a mess. It also barely worked.

I've been porting the buddy sink firmware across to FreeRTOS and most parts of it "look" to work; but still chasing around an issue that some messages are not being received within timeouts. Need to probe the I2C bus but soldering inside the TS80P to those wires is a pain in the ass so haven't committed the time to doing that just yet.

@Ralim
Copy link
Owner

Ralim commented Jun 30, 2020

@puzrin My port will inherit a compatible license to the buddy sink since I've built off that code. But will decide more on that once i get the damn thing working.

@puzrin
Copy link

puzrin commented Jul 1, 2020

FreeRTOS is still "too much" for library. But if you succeed with battle-tested implementaion for TS80P, that will simplify next modifications significantly.

At first glance lib requirements can be reduced to 1ms timer (instead of RTOS), and use prototread-based approach. That will simplify integration into user apps.

Also (no sure 100%), it may be useful restrict support to PPS mode only. Most of modern chargers go with it. This will simplify lib api to trivial.

Need to probe the I2C bus but soldering inside the TS80P to those wires is a pain in the ass so haven't committed the time to doing that just yet.

AFAIK, this part can be done on devboard, instead of T80P. I could not find ON-FUSB3-STM32, but ZY12PDN triggers with STM32F072F4P6 are available on ali & amazon https://www.aliexpress.com/item/4000420377026.html.

Also found noname arduino board https://www.aliexpress.com/i/4001134933824.html

@Ralim
Copy link
Owner

Ralim commented Jul 2, 2020

@puzrin
I agree that FreeRTOS may be overkill; however keep in mind that I'm not here to write universal libraries but instead to try and rollout something that functions well :)

PPS mode only is not an option as far as I'm aware at this point in time. I own 8 USB-PD power sources at the moment, and of them only the two newest implement PPS. A lot of power banks still user older designs that only implement PD2.0 standard. So if anything is going to be cut it would be PPS as PD3.0 still includes the fixed voltages of PD 2.0.

I am well aware of the development boards and have ordered some. But seeing as shipping from china is anywhere from 2-12 weeks at the moment I'm not holding my breath waiting for them to arrive 😂

@puzrin
Copy link

puzrin commented Jul 2, 2020

@Ralim

I mean, if you roll stable code, it will be not difficult for me to rewrite it into lib. Buddy sink has Apache licence for folder with PD sack. If you keep it (if you don't push with GPL), that will be awesome.

You are right, i was a bit over-optimisic about PPS support. Most promissing is still Baseus 2C1A 65W GaN charger (35$). Many modern (GaN) chargers still may go with PD 3.0 but without PPS. I've ordered some alternate chargers to check if more cheap PPS alernatives available.

PS. I'd like to have working USB PD PPS for this micro reflow. It eats ~40W at 270C. In that case strict requirement for PPS will be reasonable.

@mattkerrison
Copy link

@witnessmenow Any progress on the adapter? I need to upgrade my Power Supply for TS100 and have 2 spare 65w Mac chargers lying around, would love to just use them over buying another single use power supply.

@witnessmenow
Copy link

witnessmenow commented Jul 9, 2020

I've ordered a new design with ESD protection and the pcbs were shipped yesterday. I also am waiting on some parts too.

I would hope to have them available by the end of the month

I use my 65w Mac charger also and works great. But just to make sure it's clear (sorry if you already know this) using power delivery limits the power of the ts100 to ~50w. To draw 65w, the ts100 needs 24v, the max PD does is 20v

@mattkerrison
Copy link

I've ordered a new design with ESD protection and the pcbs were shipped yesterday. I also am waiting on some parts too.

I would hope to have them available by the end of the month

I use my 65w Mac charger also and works great. But just to make sure it's clear (sorry if you already know this) using power delivery limits the power of the ts100 to ~50w. To draw 65w, the ts100 needs 24v, the max PD does is 20v

Yea, I'm just using a 12v supply currently as its all I have with the barrel jack, so it'll be a huge upgrade anyway. I did order the generic usb-c trigger board from aliexpress and a XT-60 silicone cable to splice together, but if your design has some ESD protection built in I'll probably still grab one.

@witnessmenow
Copy link

I've ordered a new design with ESD protection and the pcbs were shipped yesterday. I also am waiting on some parts too.
I would hope to have them available by the end of the month
I use my 65w Mac charger also and works great. But just to make sure it's clear (sorry if you already know this) using power delivery limits the power of the ts100 to ~50w. To draw 65w, the ts100 needs 24v, the max PD does is 20v

Yea, I'm just using a 12v supply currently as its all I have with the barrel jack, so it'll be a huge upgrade anyway. I did order the generic usb-c trigger board from aliexpress and a XT-60 silicone cable to splice together, but if your design has some ESD protection built in I'll probably still grab one.

Ok cool! One of my first prototypes was pretty much exactly that, seemed to work fine!
IMG_20200603_141035

If you buy a Female XT60 connector (which is kind of confusing as the pins are female but the plastic housing is male) you could save splicing the cable. My board will use that same style cable and it will save you some money not having to buy that again!

@arren-ru
Copy link

Just want to add a little bit here about TS80P and TS100 being powered by PD power source unit.

I'm using a cable which contains PD Sink PCB in the USB-C connector and has DC5525 connector on the other side and fits perfectly.
IMAGE 2020-08-21 20:00:20
Cable a bit tough and gives stable 20V, peak consumption was 40~45W according to power indicator on the display.
IMAGE 2020-08-21 20:00:19

By the way DC powered TS100 still has advantages over the TS80 and even TS80P, it is power, which is greater and the possibility to "eat" any power sources even DeWalt's batteries (tried 5Ah battery pack it works fine).

@Adrian-at-CrimsonAzure
Copy link

I'm using a cable which contains PD Sink PCB in the USB-C connector and has DC5525 connector on the other side and fits perfectly.

@arren-ru Where might I find this cable? I have a PD-Buddy that I hard wired to a DC jack and this looks way more streamlined.

@arren-ru
Copy link

arren-ru commented Aug 21, 2020

I'm using a cable which contains PD Sink PCB in the USB-C connector and has DC5525 connector on the other side and fits perfectly.

@arren-ru Where might I find this cable? I have a PD-Buddy that I hard wired to a DC jack and this looks way more streamlined.

Unfortunately this cable is not available for now, but you may find similar cables on AliExpress like this one OR this one

@ElRoberto538
Copy link

ElRoberto538 commented Feb 14, 2021

@witnessmenow

The sink buddy actually uses the FUSB302 and its the firmware I'm using as an implementation reference for the support im adding now :)

I personally would mod the IC module inside of the enclosure, removing the usb-micro and trimming the board to fit there (the FUSB is tiny).

Indeed I do know about and love the OtterIron; getting mine running with this firmware is on my infinite to-do list :|

Oh, you can assume 8.5+-0.3ohms roughly; just meant more that since PD has PPS (continuous voltages); its possible in theory to select the highest voltage that just keeps below the power supply current limit worst case :)

I just lopped off the XT60 and put on some nice XT30 connectors laughing

TS80P will get there soon but thats for the other thread joy

I'm looking at porting IronOS onto the Otter Iron now - have you looked into it at all? I wouldn't want to duplicate work.

@Ralim
Copy link
Owner

Ralim commented Jun 5, 2023

Closing this as we now have USB-C iron options on the market.

@Ralim Ralim closed this as completed Jun 5, 2023
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