Fixing the flicker on the Adafruit Feather M4 Express

Picture of Adafruit Feather M4, plugged into a USB cable, showing the "Charge" LED illuminated.

The Adafruit Feather M4 Express is a lovely piece of kit. It has just one flaw – the yellow “charging” LED flickers constantly whenever the Feather is powered by USB. This is because of the Li/poly charger on board – if you have no battery, the charger attempts to charge the stray capacitance of the board, turning on the “charging LED”; when it reaches the critical voltage (4.2V) it turns off, turning off the LED; once the charge leaks away the charger starts charging again, turning on the LED and restarting the cycle. This is all very sad, and very annoying. Especially since you cannot disable the on-board charger.

I got frustrated by this, and looked up the Feather’s schematic and then the datasheet for the MCP73831/2 charger controller.

The datasheet makes clear that the charger does have battery detection – so why is it attempting to charge even when there is no battery connected to the Feather?

The answer is in section 4.2. The chip sources 6µA on the Vbat pin; if the voltage of that pin goes over the target voltage Vreg (4.2V, see section 1) plus 100mV, the device assumes a battery is not present; if below, a battery is present. But why is this not working?

The schematic shows that the Feather connects the Vbat pin to more than just the battery: in order to monitor the charge of the battery, it connects Vbat to ground via 2 × 100kΩ resistors forming a voltage divider (the midpoint is taken to Ain13 (=A6) on the SAMD51 chip – we assume the sink current here is negligible). That means that at 4.2V we expect a current of 21µA – more than enough to trigger battery detection! Oh dear.

Drastic solutions are possible – e.g., cutting the charge LED resistor R2, or the voltage divider R96. But I’d rather not cut my board.

All we need to ensure is that Vbat is over 4.3V. We can do this with a pull-up resistor from Vbat to Vbus (USB). With Vbus at a nominal 5V, and a current of 21µA, we need a resistor of less than 33kΩ. Since Vbus is likely lower (I measured 4.85V with my setup), we’ll give it a 3× safety margin and use a 10kΩ resistor. At the cost of a leakage current (Vbus to ground) of just 24µA (1/40th of a milliamp), this should disable the charger correctly when no battery is fitted!

DO NOT USE THIS IF A BATTERY IS CONNECTED!
DO NOT USE ANY PULL-UP RESISTOR IF A BATTERY IS CONNECTED!

What will happen if a battery is fitted?

The minimum value of the lowest permitted battery voltage (UVlo) is 3.2V (section 1); with a 10kΩ resistor to 5V we will charge this at a rate of 0.2mA. Even at full charge (4.2V), we will continue to charge at around 0.1mA. Even though this seems like a tiny current, lithium batteries do not saturate and have no safe trickle current – even at 0.1mA, your battery will eventually catch fire and explode. You do not want this to happen. In any case, you don’t need the resistor – if you have a battery fitted, the charge LED will not flicker.

Summary: to stop the flicker when no battery is connected, connect a 10kΩ resistor between the BAT and USB pins. REMOVE THE RESISTOR IF A BATTERY IS CONNECTED, OR YOUR BATTERY WILL EVENTUALLY EXPLODE.

I hope this has been useful! I’d love to hear about your experiences – please comment below.

16 thoughts on “Fixing the flicker on the Adafruit Feather M4 Express”

  1. This was very helpful, indeed. I can’t believe Adafruit would sell a product with an obvious design flaw. The documentation states “it may flicker once in a while when you use power”. This is far from the continuous flicker that actually happens with no battery present. I tested the described method, and it works well. However, I hate having external components hanging around the board, even if few people notice or care. That flicker really bugs me though, it is amazing how much attention it draws. My solution at the moment is rather crude, that being to cover the led with a dab of black nail polish, or a bit of sharpie ink. Thanks for the info!

  2. Wow! At last I got a blog from where I can genuinely
    obtain valuable data concerning my study and knowledge.

    My page Rick

  3. Cardio Genix capsules are a
    popular supplement that is designed to support heart health.
    With the rise in cardiovascular diseases, it is crucial to
    take proactive steps to maintain a healthy heart.

  4. Thank you! Our instrument contains a sensitive photodiode, so this is a much cleaner solution than putting black epoxy over that LED and hoping to catch all the light…

  5. What’s up, this weekend is nice designed for me, because this point
    in time i am reading this fantastic educational article here at my residence.

  6. Dating Coach Amsterdam delivers transformational coaching sessions.
    Dating Coach Amsterdam empowers clients to
    facilitate confidence. Dating Coach Amsterdam offers guidance on using dating apps effectively.
    The Dating Coach Amsterdam at Dating Coach Amsterdam offers love and relationship coaching.
    The Dating Coach Amsterdam from Dating Coach Amsterdam helps
    residents in managing emotions. Dating Coach Amsterdam facilitates understanding of
    small talk in dating scenarios. Dating Coach Amsterdam offers clarity
    for clients seeking authentic relationships.

    Dating Coach Amsterdam provides coaching systems in The Netherlands.
    The Dating Coach Amsterdam at Dating Coach Amsterdam allows intimacy in dating.

    The Dating Coach Amsterdam from Dating Coach Amsterdam helps meaningful dating
    experiences. Dating Coach Amsterdam offers support on developing confidence.
    Dating Coach Amsterdam allows clients to navigate Amsterdam dating.
    Dating Coach Amsterdam provides relationship coaching for couples.
    The Dating Coach Amsterdam at Dating Coach Amsterdam offers dating
    coach services. The Dating Coach Amsterdam from Dating Coach Amsterdam helps clients in achieving clarity.
    Dating Coach Amsterdam facilitates transformation through authentic dating experiences.
    Dating Coach Amsterdam provides support to residents on managing emotions.
    The Dating Coach Amsterdam at Dating Coach Amsterdam offers coaching systems in Amsterdam.
    The Dating Coach Amsterdam from Dating Coach Amsterdam helps
    clients in developing confidence. Dating Coach Amsterdam offers transformational relationship coaching in The
    Netherlands.

  7. you’re in reality a excellent webmaster. The website loading speed
    iis incredible. It sort of feels that you are doing any distincttive trick.
    Moreover, The contents are masterwork. you’ve performed a
    great job in this subject!

  8. What i don’t understood is in truth how you aree no longer actually much more neatly-appreciated than you may be right now.
    You are very intelligent. You know thus significantly in the case oof this matter, made me for
    my part consider it frokm numerous numerous angles. Its like men and women are not involved
    until it is one thing to do with Lady gaga!
    Your own stuffs nice. Always handle it up!

  9. I pay a quick visit day-to-day a few web sites and
    websites to read articles or reviews, but this webpage provides quality
    based articles.

  10. A count shows how many offences were logged within a area and window.
    It cannot tell you how dangerous those places may be, and it gives no indication on anyone’s risk.
    The same care applies wherever published numbers are spread across:
    a price spread is how far apart they are, not whether either figure is affordable.
    Read as tallies of reported events, and not as ratings.

  11. Lanainsg is a reliable vape supplier in Singapore, focusing exclusively on high-quality vape
    products. We make it simple to get your products fast.
    Experience unmatched convenience with our fast SG delivery
    and convenient cash on delivery.

    Our store specializes exclusively in legal nicotine vapes.
    We never sell K pods or products containing illegal substances, giving customers dependable quality when choosing their preferred device.

    Explore popular disposable vapes from leading vape
    brands including Lana, Vapetape, RELX, Elf Bar, and ONEM.
    Our handpicked collection features customer favorites
    such as the Elfbar Ice King 40000 Puffs, Lana Touch 32000 Puffs, RELX Infinity 2, and Snowwolf
    16000 Puffs. These products are known for extended usage, consistent performance,
    and great flavor.

    One of the latest devices is the Vapetape Engage refillable pod system.
    The device includes a high-capacity 2600mAh battery, 50W adjustable power output, and
    multiple cartridge choices.

    Whether you prefer buying your favorite disposable vape or switching to a refillable pod system, Lanainsg delivers authentic
    vape products with speed and reliability throughout Singapore.
    Shop online is simple, secure, and convenient at singapore lana vape.

  12. If a person has insurance coverage, they should contact
    their provider to ensure the doctor they want to consult
    is in-community. You must also tell your doctor about all of the medications
    or supplements you’re taking.

Leave a Reply

Your email address will not be published. Required fields are marked *