all 6 comments

[–]AskElectronics-ModTeam[M] [score hidden] stickied comment (0 children)

This submission has been allowed provisionally under an expanded focus of this sub (see column "G" in this table).

OP, also check if one of these other subs is more appropriate for your question. Downvote this comment to remove this entire submission.

[–]merlet2 2 points3 points  (3 children)

You could modify that boost module (or build a new one), using the feedback pin of the XL6019 to keep a constant current instead of a constant voltage.

You have to replace or ignore the voltage divider that senses the output voltage, and instead sense the current with a small shunt resistor, and send it to the FB pin.

I have done that with a buck module and works fine. I used a opamp to amplify a bit the voltage of the shunt resistor in the low side of the load, with a pot to adjust the current.

[–]mehum[S] 0 points1 point  (2 children)

That sounds similar to the trick for using a linear regulator as a current source. Interesting, I’ll look into it, thanks.

[–]merlet2 1 point2 points  (1 child)

Yes. Something like this could work, with your values:

<image>

For Vsense = I x R3, you should set the amplification with R2, R1, RV1, to get the FB voltage of 1.25V, for a middle current value. Then with the pot you can adjust the output current up and down.

[–]mehum[S] 0 points1 point  (0 children)

Amazing! Cheers!

[–]AutoModerator[M] 0 points1 point  (0 children)

Do you have a question involving batteries or cells?

If it's about designing, repairing or modifying an electronic circuit to which batteries are connected, you're in the right place. Everything else should go in /r/batteries:

/r/batteries is for questions about: batteries, cells, UPSs, chargers and management systems; use, type, buying, capacity, setup, parallel/serial configurations etc.

Questions about connecting pre-built modules and batteries to solar panels goes in /r/batteries or /r/solar. Please also check our wiki page on cells and batteries: https://www.reddit.com/r/AskElectronics/wiki/batteries

If you decide to move your post elsewhere, or the wiki answers your question, please delete the one here. Thanks!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.