I have a circuit where, if the battery is lower than 3v, a LED turns on. The battery is connected to a TP4056 charging module. Can I make this LED blink when I am charging?
Take a look at the BlinkWithOutDelay example from the IDE.
With this example, you can easily build a blink timer that can react to the measured voltage values.
1. How much is the Battery Voltage? How much is its Ah capacity? 2. Does B+/B- indicate that these are the Postive/Negative terminals of the Battery?
3. You need to monitor the charging current of the Battery. LED1 will keep blinking as long as charginhg is not close to zero. The following circuit may be employed.
If you like my circuit, then we can try:
Place the 0.05 ohm resistor at the negative side of the Battery. Start the Charger. With a DVM, measure the voltage across R1 and report it to decide if we need the amplifier or not.
To the original question(see the topic heading),
No, the LED won't flash, because your Arduino isn't powered.
To those who would defend, we often note on this forum that incomplete schematics mislead. Who knows exactly what the power configuration is for this circuit? Only the OP. All others are assuming, and we know where that leads.
To the OP, you may assume I'm just being difficult, but the sad reality is, we very often discover the roots of posted problems lie in the details not given, or deliberately held back, "in order to simplify". In this case, I'm very curious to see the whole circuit configuration.
From post #6, Capacity, C = 350 mah
Charging current (rule of thumb) = C/4 = 87 mA
VR1 = Vin = 87x.05 = 4.35 mV
Vo = 4.35 x 20 = 80.70 mV (max) when the ADC's resolution with 1.1V Ref is: 1.07 mV
I think 741 is not going to help much, the OP might need to use a high gain instrument amplifier like INA101(Fig-1):