Charging on Redboard Artemis Nano

Hello.

I am using 900mAh Lipo Batt in Nano board now.

(There is only a cable between the board and the battery)

Connect USB-C to drive Nano and charge Lipo-bat well.

And the board is working well by removing USB-C and using Lipo.

However, sometimes the I need to be powered off of the board,

so I added a small sliding-switch on the cable connected to the Lipo.

Even in this state, the board works well using the battery.

However, Batt fell to 3.2V and connected USB-C, but it is rarely charged. It doesn’t go up from 3.2V after 8 hours.

If I remove the switch and connect the battary without the swithc, it charge well.

A switch is a very simple little sliding switch.

Why is this happening?

Is there any other condition or order for charging?

what signal / line does the switch connect/disconnect ?

Hi Paulvha~!

I am sorry, I can’t understand your question.

There are two lines(+ and - cable lines) between the board and the Lipo battery. I cut one of these(+ or -) and put a switch in between. It was a very simple works. Can’t we do this?

And I turned the switch on when I was charging(Connect USB-C). However, it was rarely charged.

there is no need for the switch. The board has an MCP73831 LIPO charger that controls charging ( or not). I have no idea why a switch would have an impact unless the resistance is too high even when closed.

Really? What should I do? Could you please give me a detailed code level example?

there is no code needed. the MCP73831 handles it… see schematics (https://cdn.sparkfun.com/assets/5/5/1/6 … s-Nano.pdf) and see datasheet (https://docs.rs-online.com/1f6e/0900766b814f3cb0.pdf)

I didn’t understand your advice,

or

I don’t think you understood my question.

I know that Artemis Nano board supports charging.

However, if I add the switch on the Lipo battary line(cabel), it will not charge. I wonder why.

And if I can control the board to charge or not-charge with SW code, I don’t need to add the physical switch.

So I asked you for a detailed example.

I understood you to be saying “the board supports charging so you don’t need to do any other devices or control”.

However, I want to control charging or not-charging while USB-C is connected to the board, either through a ‘HW switch on the battery side’ or ‘S/W CODE’.

If you already understand my question well,

Please give me more details.

I am a beginner.

I suspect there is an issue with the switch.

Normally the LIPO MCP73831-controller will detect that the LIPO has been fully charged to the right level and as such the charging will switch off and LED (connected to the STATE pin) will switch off. If your closed switch has zero resistance (which a switch should have) this will work the same way. If the LIPO is charged and you remove the USB-C connector the battery/LIPO will take over automatically. No switch needed.

If the board behaves differently with a switch, there’s a problem with the switch.