My sketch is running fine as long as I have my USB plugged in. The charge light on the board shows charging when the battery is plugged in. I have checked the voltage of the battery and it is fully charged at 3.7V. The polarity is correct. As soon as I unplug the USB, it stops. I noticed a similar post with an Adafruit board, which was solved by reversing the leads on the battery but I don't think this is my problem. I think it would affect my MS5308 if that were the case. I need this thing to work stand alone.
A fully charged Lithium Ion Battery is usually at 4.2V
It’s marked 3.7V
Sure, that’s the nominal voltage.
Typically The voltage starts at 4.2 V maximum and drops down to about 3.7V for the majority of the battery life. Once you get close to 3.4V the battery is no longer providing enough current (and at 3.0V the cutoff circuitry if you have one disconnects the battery).
If it’s fully charged and only showing 3.7, this might be an indication that something is wrong
To your sketch question, are you waiting for Serial to be ready?
Are you powering anything from the arduino’s pins?
It's a brand new battery. Sure it may be bad from the factory but that just doesn’t seem likely. When I have the USB plugged in, the charge light will come on for a while and then goes off after a while and stays off. The only thing I have on it is the MS5803 to take temp and pressure readings. Serial is on while I have it on the USB. I am getting readings through my timer every second. I’m also Blynk.writing to a virtual pin and that’s working well. It’s just when I unplug it, it quits.
You are not supposed to use that conductive black foam the board comes with. Also try another battery, it is either the battery or you have faulty board (not impossible)
+1 on removing the black foam, it might short circuit the pins !
The doc states
Please read: black conductive foam
You should remove the black conductive foam from the board pins before usage. If you don't remove it, the board may behave erratically.
Do you have something like
while(!Serial) {}
In the setup()?
Yes I have this
Ok will remove it. I thought it was better to have it on than be touching possible conductive pins. I had just stuck the board on the foam for the photo. I had not been running it that way up to that point.
I will try another battery. Thanks.
this waits for the Serial connexion to go live. If you don't have your USB cable plugged in then it won't happen and you'll be stuck in that loop
Ok thanks. Will remove
2 posts were split to a new topic: How to handle an USB device?
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.