# Pico Lipo not charging

**URL:** https://forums.pimoroni.com/t/pico-lipo-not-charging/23267
**Category:** Support
**Created:** [November 11, 2023, 7:11pm UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267 "2023-11-11T19:11:22Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![renato0307](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@renato0307](https://forums.pimoroni.com/u/renato0307)
#### Post date: [November 11, 2023, 7:11pm UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/1 "2023-11-11T19:11:22Z")

</div>

Hi,

Just got a Pimonori Pico Lipo with a [battery](https://mauser.pt/catalog/product_info.php?products_id=035-4577).

Flashed a simple blinking example and works on battery.

But the charging light is not on when connected with USB.

Any idea?

Thanks,  
Renato Torres

---

<div class="post-metadata">

### Author: ![renato0307](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@renato0307](https://forums.pimoroni.com/u/renato0307)
#### Post date: [November 11, 2023, 7:19pm UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/2 "2023-11-11T19:19:05Z")

</div>

On USB:  
 ![WhatsApp Video 2023-11-11 at 19.18.14](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/0/0955e6adba192a838ce77448c64761f17984dd26.gif)

---

<div class="post-metadata">

### Author: ![renato0307](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@renato0307](https://forums.pimoroni.com/u/renato0307)
#### Post date: [November 11, 2023, 7:20pm UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/3 "2023-11-11T19:20:54Z")

</div>

On battery:  
 ![WhatsApp Video 2023-11-11 at 19.19.48](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/5/5640a81e012ab4de115bfe987fb383df97d16195.gif)

---

<div class="post-metadata">

### Author: ![Shoe](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Shoe](https://forums.pimoroni.com/u/Shoe)
#### Post date: [November 11, 2023, 10:05pm UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/4 "2023-11-11T22:05:54Z")

</div>

At a guess, your battery is wired the wrong way around. Look at the +/- symbols on the board: your red (positive) wire is connected to the negative end of the charging socket.

---

<div class="post-metadata">

### Author: ![renato0307](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@renato0307](https://forums.pimoroni.com/u/renato0307)
#### Post date: [November 12, 2023, 9:02am UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/5 "2023-11-12T09:02:09Z")

</div>

It’s connected correctly, it’s just the PH connector that has the colors the other way around.

The Pico works connected to the battery. It just doesn’t charge.

The first time I connected I didn’t realize the colors where switched, maybe I burned something up on the charging circuit.

---

<div class="post-metadata">

### Author: ![Shoe](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Shoe](https://forums.pimoroni.com/u/Shoe)
#### Post date: [November 12, 2023, 9:58am UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/6 "2023-11-12T09:58:28Z")

</div>

From what I gather there’s no law around which way battery connectors need to be wired up, but they need to match the socket you’re pluging into.

The datasheet for the battery charging IC says it has reverse polarity protection, so it should be OK? I doubt it’ll charge unless you fix the polarity though. I have absolutely no idea how the board is running with the wrong polarity! The product page doesn’t mention rectifiers at all.

---

<div class="post-metadata">

### Author: ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)
#### Post date: [November 12, 2023, 1:08pm UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/7 "2023-11-12T13:08:39Z")

</div>

@Shoe If you look close I think you will find he has Battery Red connected to Plug Black and vise versa where the wires were cut.  
My best guess is the LED is backwards on the board. You should be able to run a battery example to see if its charging. I thought I had one saved for the Pico Lipo but don’t see it now.  
Found this link on the shop page.  
[pimoroni-pico/micropython/examples/pimoroni\_pico\_lipo at main · pimoroni/pimoroni-pico (github.com)](https://github.com/pimoroni/pimoroni-pico/tree/main/micropython/examples/pimoroni_pico_lipo)

---

<div class="post-metadata">

### Author: ![renato0307](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@renato0307](https://forums.pimoroni.com/u/renato0307)
#### Post date: [November 12, 2023, 1:55pm UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/8 "2023-11-12T13:55:32Z")

</div>

Yes you are right @alphanumeric.

In the first time I connected everything I did red-red / black-black without noticing the polarity of the plug.

The Pico was not booting and got a bit hot.

Only after I noticed and changed the connections.

The Pico started to boot but the battery was not charging.

I might have damaged the charging circuit.

I’ll try the example @alphanumeric, thanks.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/4/4f7be2f059abdd4be89ac3af75cf17a48ee547b5.jpeg)

---

<div class="post-metadata">

### Author: ![renato0307](https://avatars.discourse-cdn.com/v4/letter/r/5fc32e/32.png) [@renato0307](https://forums.pimoroni.com/u/renato0307)
#### Post date: [November 12, 2023, 2:07pm UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/9 "2023-11-12T14:07:24Z")

</div>

Ran the following script, for some time without USB connect to let it drain for a bit.

it went from 3.93V to 3.88V:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/4/424071d17bd5b2518d34f6ce8ef4640c08a3d469.png)

Now going to run the script with USB connected and see if it charges (even if the led is off).

```auto
from machine import ADC, Pin
import time
import os

soil = ADC(Pin(26))
readDelay=0.5
min_moisture=41498
max_moisture=65535

vsys = ADC(29) # reads the system input voltage
charging = Pin(24, Pin.IN) # reading GP24 tells us whether or not USB power is connected
conversion_factor = 3 * 3.3 / 65535

full_battery = 3.9 # reference voltages for a full/empty battery, in volts
empty_battery = 3.0 # the values could vary by battery size/manufacturer so you might need to adjust them

writeMode = True

if writeMode:
    i = 0
    try:
        os.remove("log.txt")
    except:
        pass
    while True:
        i += 1
        if i > 300:
            i = 1
            try:
                os.remove("log.txt")
            except:
                pass

        with open("log.txt","a") as f:
            voltage = vsys.read_u16() * conversion_factor
            percentage = 100 * ((voltage - empty_battery) / (full_battery - empty_battery))
            if percentage > 100:
                percentage = 100

            moisture = (max_moisture-soil.read_u16())*100/(max_moisture-min_moisture)

            print(i, charging.value(), '{:.2f}'.format(voltage) + "v", '{:.0f}%'.format(percentage), '{:.0f}%'.format(moisture))

            n = f.write('{}'.format(i) + ",")
            n = f.write('{}'.format(charging.value()) + ",")
            n = f.write('{:.2f}'.format(voltage) + "v,")
            n = f.write('{:.0f}%'.format(percentage) + ",")
            n = f.write('{:.0f}%'.format(moisture))
            n = f.write("\n")
        time.sleep(readDelay)
else:
    with open("log.txt","a") as f:
        s = f.read()
        lines = s.split('\n')
        for l in lines:
            print(l)

```

---

<div class="post-metadata">

### Author: ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)
#### Post date: [November 12, 2023, 6:28pm UTC](https://forums.pimoroni.com/t/pico-lipo-not-charging/23267/10 "2023-11-12T18:28:19Z")

</div>

> [@renato0307](#):
>
> In the first time I connected everything I did red-red / black-black without noticing the polarity of the plug.

> [@renato0307](#):
>
> I might have damaged the charging circuit.

I’d say you damaged something, as it got hot etc.
