This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BQ25895: Detection of USB Port and charging Current

Part Number: BQ25895
Other Parts Discussed in Thread: TIDA-01556

Hi,

I was very curious to know that the input voltage supply fed to the BQ25895 IC using various USB Sources, i want to know,like how the internal Mechanism detects if I feed the input power  through USB using a Wall-Adapter,What settings it will take?

And Also, If I dont use a Standard USB based Charger, the input current Limit will be set to 0.5A. As mentioned in Datasheet Page 17.

I will charge through a SOlar panel whose Imax would be 1.5A, what is the settings that I need to do for 1.5A input current.

  • Hi Ayla,

    The D+/D- perform detection as specified in USB BC1.2 specification as well as additional specifications for certain adapters. If you don't want to perform detection, you can short D+=D- (setting the input current register to 3.25A) and then use the ILIM resistor to clamp the input current to 1.5A.

    I suggest you review: www.ti.com/.../tidudj2.pdf which a reference design using the BQ25895 with a solar panel.

    Regards,
    Jeff

  •  Thanks Jeff,  Indeed this solved my Problem, but a few Questions,  As Mentioned to use the ILIM resistor, what value do I need to fix for the Current of say 1.5A, and also Attaching the Screenshot of the Design , that i have finalized with BQ25895 IC for the following Specs,

    And, I'd like to use the integrated Boost Convertor of BQ25895, which provides 5.1V at PMID pin at 2A.

    Vin(min)= 3.9V

    Vin(max)=14V

    Vout=3.5V

    PMID out= 5.1V

    Ichg=1.5A

    Any apprehensions.

  • Ayla,

    The equation for the ILIM resistor is in datasheet protection 8.2.12 on page 26.

    Regarding the OTG boost mode, the charger operates in either charge mode, with VBUS applied, or boost mode, when VBUS is not applied but not both at the same time.

    Regards,
    Jeff
  • Thanks Jeff for the information,

    This solved my Problem, Can you confirm me the schematic, which i think, would be fine for my design for the requirements of the solarpanel as specified in the previous post.

  • Hi Ayla,

    For solar panel charging, I recommend reading www.ti.com/.../TIDA-01556.

    Regards,
    Jeff
  • Hi Jeff,

    I did not find anywhere the Schematic Diagram, Could you please Share that. Thanks.
  • Ayla,

    Odd.  Can you cut and paste the text http://www.ti.com/tool/TIDA-01556  or do a search for TIDA-01556 on the ti website?

    Regards,

    Jeff

  • Hi TI,

    I have designed the PCB as  per the schematic attached, the problem is, the battery is not able to charge,

      I have connected Single Li+ Battery 3000mAH. the voltage of the battery was 3.64V when i connecrted to the board.5V3AUPSR2_Schematic.pdf

    can you please help me out with this.

  • Ayla,

    I see no obvious errors with the schematic. Do you have a way to read the I2C configuration and status registers? The most common issues are:
    1. high resistive path from battery to BAT pin causing the charger to think the battery is charged or from input source to VBUS causing the line drop to put the IC into VINDPM
    2. Input current limit set per D+/D- and/or clamped by ILIM is too small to support both the SYS load and BAT current
    Regards,
    Jeff
  • Hi Jeff,

    I have cross checked all the connections, Actually it was Soldering mistake done at our end. Battery is Charging now.

    These are the input connections I'm feeding,

    I/P:  5V 2.5A

    Battery:18650 single Li+  Battery

    Output : we are trying to charge a mobile phone

    Result: The Mobile phone shows that it was able to charge slowly, In fact i guess the Current delivered is very less to the phone.

    What is the thing that I need to do to set the output current be delivered at 1.5A.

  • Ayla,

    I am confused. Is the mobile phone connected to SYS? Are you trying to charge the phone and the 18650 battery?

    Regardless, can you read the I2C registers and determine the following:
    1. The control loop that is operating (CC, CV, IINDPM, VINDPM, etc.)
    2. The TS status (normal, WARM or COOL)
    3. VBUS, VBAT, IBAT, IBUS using the ADC?

    Regards
    Jeff
  • Hi Jeff,

    I have taken a use case of a mobile phone, actually an SBC(Single Board Computer), is the thing which replaces the mobile phone in the application.

    And in both cases, 18650 Li+ battery needs to be charged as well.

    Any C language Code is available to read the internal registers of the BQ25895 using I2C protocol?

  • Ayla,

    There is some open source C code at the link below:

    github.com/.../bq25890_charger.c

    Regards,
    Jeff
  • Thanks Jeff,

    I'll try to read the internal registers of Bq25895, using the C code, and I would be posting on the updates.
  • Hi TI/Jeff,

    I had kept my Charger board under observation, Im feeding the input Solar panel Voltage to the system,Here are few things i have observed

    Solar panel Specs:
    VOC=9.8V
    Vmp:6V
    Imp=2.5A
    Pmax=15W

    1) I had kept 6000mAH capacity battery to the system(2 Parallel Li+ Batteries), the SBC(Single board computer) is drawing 0.6A average current per hour. At the time, i have connected the battery, it was not in a full charge condition,it was around 60%(nearly 4000mAH) i, it hardly ran for 4 hours, and switched off the Total power to the SBC.

    2) Now the battery ran into Deep discharge,at 2.45V, And, as we had a good sunny day, it started to Charge, but here there are some critical points i would like to highlight, As there was Enough sunlight at our place, it could not feed the system Voltage(Vsys- and thereby the Booster IC, is not able to get the enough voltage and hence the SBC was off.

    (As it should give prioritize the System above the battery charging as per the Datasheet).


    3)I have tinkered with the Board, and when i made the Load OFF/ON, the SBC was came alive and running now, and certainly will check the battery charging after some time passed from now.

    4)What are the possible chances of this system to get into functional and what are the key drawbacks and what voltages that i need to measure to ensure not repeat the same failure again?
  • Ayla,

    A solar panel is a high impedance source. Therefore, you will need to make some changes to the I2C registers as explained in .

    At minimum, you will need to select FORCE VINDPM and set the VINDPM threshold to your VMPP=6V, ILIM resistor set to 2.5A and IINDPM register set to 2.5A or higher.  I also suggest shorting D+=D-.

    Regards,

    Jeff

  • Jeff,

    I have done shorting pins D+ and D-, Now the major problem is, Load cannot be able to Power the System(SBC), automatically when enough Solar power is available.Batttery able to charge though.
  • Ayla,

    Is the VINDPM forced to the panel's MPP value via I2C? If so, is the charger regulating its VBUS voltage to that value? Is the ILIM resistor set for 2.5A or higher? Are you getting the maximum power from the panel to the charger?

    Regards,
    Jeff
  • Jeff,

    I have not at all using the I2C mode currently, All that I have done is use the default IC and built a circuit around it,adding to it, shorted D+ and D-, whether not setting the internal registers using the I2C will  going to effect the functionality? Any alternatives to tackle the Present situation  than using the I2C mode.

  • Also I have measured the Solar panel Voltage and current, its pretty good, as follows

    Vmp=9.5V
    Imp=1.8A
    Pmax=20W

    I'm sure that there is enough power available from Solar panel.
  • Ayla,

    Unfortunately, no.  You can try to limit the current to 1.8A using the resistor on ILIM pin but the BQ2589X has a relative VINDPM feature that will automatically set the VINDPM threshold to 600mV below the VBUS voltage sensed at startup.  This will not be the correct value for a HiZ solar panel.  Therefore, the charger will likely pull too much current from the panel, pulling it below its MPP.

    Regards,

    Jeff