Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Works with USB power, not with battery? #20

Open
codepope opened this issue Oct 1, 2018 · 77 comments
Open

Works with USB power, not with battery? #20

codepope opened this issue Oct 1, 2018 · 77 comments

Comments

@codepope
Copy link

codepope commented Oct 1, 2018

Set up badgy on USB power, things behave as expected. Board LED glows flickers blue. Board boots up.

Popped a LIR2450 in with no USB connection and... nothing. Won't wake up, won't reset for new sketches, no LEDs glowing.

Pop in USB with LIR2450 in place, board LED glows bright blue (charging?) and board functions.

Any suggestions as to trouble shooting this?

@chunkysteveo
Copy link
Contributor

Just received my new (WHITE PCB) version and can echo the same here - Works fine on USB, appears to charge when an LIR2450 is in place (blue LED) and USB plugged in. Can switch on with an LIR2450 and USB connected, and interestingly when I disconnect the USB while still on it still works. Switch off and back on with just the LIR2450 and no power.. Have not looked into testing where power getting to, and also just testing another LIR2450, but this is odd behaviour indeed! It's like the USB connection trips it on, and without that initial USB trigger, it doesn't power up?

@codepope - if your board is working with both USB and LIR connected, disconnect the USB and does it still work on the battery? And then when you switch off and on, does it then fail to boot up?

Would be worth people advising which boards they have, I.E. I now have a blue PCB version with programming headers, and now a super cool white PCB with a serial-USB programming chip on the USB (very cool additon!)

@codepope
Copy link
Author

codepope commented Oct 1, 2018

That's exactly what I'm seeing. (White PCB too). USB+LIR boots, pull the USB, it carries on running, then switch off and back on and it fails to boot up.

@chunkysteveo
Copy link
Contributor

hmmmm, maybe the power regulator is not detecting the battery voltage to switch on? Trying another battery here, but sounds like a valid problem.

@codepope
Copy link
Author

codepope commented Oct 1, 2018

Seems to be another symptom - when you do the switch on with USB and then pull the USB the default sketch reports multiple incorrect directions selected when the stick is touched. Plug the USB back in and it reports as normal.

@chunkysteveo
Copy link
Contributor

Yes(!), did not notice that, but now also seeing that the button message reports randomly when going from USB to BATT, and it tends to report multiple button presses, and incorrect ones. It's actually reporting multiple presses as I type this and I am not touching it. Sounds like the button is not being de-bounced correctly, or something to do with the ground - unless on USB which may be grounding things correctly?? Could also tie in with the battery issue, maybe there is an incorrect ground issue when running on battery, so it won't boot up from battery?

@chunkysteveo
Copy link
Contributor

Also - not sure if this is part of the schematic, but if you plug in the USB with switch ON (after it runs on BATT), it does not work. Switch if off and on again with the USB still plugged in, and it still does not work. I have to remove the USB, switch OFF, and then plug in the USB and switch ON. This is not how the blue version of the board works.

Additionally to the previous post - running on BATT when you power up with USB and then remove it - the Badgy stops responding after several minutes. So maybe it's not running on battery at all, but some residual energy stored up in the capacitors, but that doesn't make much sense?!

I am going to poke about with a multimeter and see what voltages we are seeing. Have tried this with three LIR2450 batteries too.

@chunkysteveo
Copy link
Contributor

@sqfmi - any thoughts on this odd behaviour of the new boards? Noticed the use a new charge IC too, the TP4054.

@Flet
Copy link

Flet commented Oct 5, 2018

Same exact issue here :(

New white PCB. Tried two different fully charged batteries.

@sqfmi any thoughts?

@chunkysteveo
Copy link
Contributor

Oh ho.... Huston, we have a problem..! 😣

@sqfmi
Copy link
Owner

sqfmi commented Oct 6, 2018

Sounds like it could be a hardware issue with the new batch, let us investigate the issue and get back to you guys shortly.

@chadvavra
Copy link

I just received 2 white PCB units and can also confirm that they do not boot, or even power the esp on battery power.

@sqfmi
Copy link
Owner

sqfmi commented Oct 7, 2018

Brief update, it seems while on battery power only, you are able to turn it on by resetting it. This can be done by using a metal object to short the reset pin with the metal shield (e.g. paperclip, key, etc.):

image

Hacky solution for now, will continue to diagnose the root cause.

@codepope
Copy link
Author

codepope commented Oct 8, 2018

Doesn’t seem to be working for me.

@chunkysteveo
Copy link
Contributor

I can confirm this hack works for me and boots the ESP8266 on battery power.

A better connection to "tap" @codepope would be the lower pad of the Lipo JST connection (which is ground). Not the upper pad as that is the positive to BATT. The casing didn't seem to give a good reliable ground connection, but turn on the switch, put a wire (I used a dupoint breadboard wire) on the RESET pin imaged above, and then tap the lower JST pad - the ESP should flash it's blue light on boot. (don't tap the left side pads of the JST connection, these don't seem to be tied to ground, just mechanical fixings)

@codepope
Copy link
Author

codepope commented Oct 8, 2018

@chunkysteveo Yes, the JST pad is easier to tap, but still no joy. To ensure I was getting a reset, I applied USB power and ground tapping the reset line did reset.

@chunkysteveo
Copy link
Contributor

hmmm, not good. Assume battery is fully charged too? Some flake-y issues going on to be sure! Hopefully there will be a fix soon, even if it's a bodge wire fix...!?

@codepope
Copy link
Author

codepope commented Oct 8, 2018

Well, I thought it was, but testing says otherwise. Tried another battery which shows charged and it didn't play ether.

@bmv437
Copy link
Contributor

bmv437 commented Oct 9, 2018

As a temporary fix, I added a reset button between the ground pad on the JST connector, and the RST pin on the ESP8266. Also threw on a JST connector and LiPo battery since I didn't have a proper coin-cell size LiPo.

Now I just power it on, and click the reset button to boot the ESP8266.

It would be nice to know what the actual issue is, but this works for the time being.

dpcdmrmxoaapgms

@Korenchkin
Copy link

can we have schematics for this version?pretty please? :) the switch behaves strange,i want to know what i'm doing

@chadvavra
Copy link

chadvavra commented Oct 10, 2018

I put in a LIR2045 and tried the bodge wire with no luck. It does work with the USB power though.

I just probed and found that with a LiPo battery I get 4.0v at the JST connector and only 3.2 at the ESP8266 reset pin. When I ground it, it does nothing at all. Disconnected my color screen to see if that was causing something and still no response.

@sqfmi
Copy link
Owner

sqfmi commented Oct 10, 2018

@Korenchkin yes! Thank you for the reminder :) The new schematic is in the hardware folder now.

Everyone else, sorry we're still trying to debug the issue :(

@Korenchkin
Copy link

thanks for the schematic!i tried to find the problem,but this makes my head hurt..everything seems okay for starting,i'd try pulling the usb chip and stick with prog header(i'm guessing some leakage to ground),but maybe somebody will make smarter solution..like cap on reset?tried that,but did not work for me..but at least i know what the switch switches...

@sqfmi
Copy link
Owner

sqfmi commented Oct 11, 2018

Removing the CH340C does seem to work! But the reason is unclear at this point... we'll try to do some further investigation with a scope.

@chadvavra
Copy link

I would like to go on the record as saying that the CH340 is the devil's brood.

I flipping hate those things

@bmv437
Copy link
Contributor

bmv437 commented Oct 11, 2018

@sqfmi If you're looking for better alternatives to the CH340, I'm a big fan of the SiLabs CP2104. Adafruit uses them for all their newer dev boards. High data transfer rates, better driver support than the CH340, and cheaper than an FTDI.
Adafruit has more details on their product page: https://www.adafruit.com/product/3309

@Korenchkin
Copy link

Just a theory,could the ch340 be pulling down gpio0 and/or reset over the 2 transistors?maybe only on start befor it semi-charges its vcc cap?then there are only rx/tx pins,they should not do anything high or low,and that seems all the influence it can do powered off

@ibuildrockets
Copy link

@sqfmi Hmm.. Reset didn't work for me - the LED on the ESP8266 blinks when reset - but nothing. In fact, I get absolutely nothing happenng now :( sketches won't upload and the currently loaded sketch (weather) won't refresh :,( Oh, and the circled component is scortching hot -
20181017_215502

@chunkysteveo
Copy link
Contributor

Can you upload a sketch via the USB 2 serial?

@g2rHP7prvJqO
Copy link

g2rHP7prvJqO commented Oct 17, 2018

Removing the CH340C does seem to work! But the reason is unclear at this point... we'll try to do some further investigation with a scope.

I am also suffering from this major issue which makes the Badgy basically 99% useless.
@sqfmi I'm strongly considering de-soldering the CH340C but is there any other active/passive component I need to de-solder too to completely fix this issue and avoid any side effects?
Could you please confirm that I can still flash my badgy using a USB-serial adapter connected to pins 1/3 (first two pins top-right opposite of reset pin) once done with the CH340C?

@g2rHP7prvJqO
Copy link

g2rHP7prvJqO commented Oct 17, 2018

Yes(!), did not notice that, but now also seeing that the button message reports randomly when going from USB to BATT, and it tends to report multiple button presses, and incorrect ones. It's actually reporting multiple presses as I type this and I am not touching it. Sounds like the button is not being de-bounced correctly, or something to do with the ground - unless on USB which may be grounding things correctly??

@chunkysteveo I observed that too. It certainly has to do with the fact that the UP/DOWN buttons use the same pins as the Serial TX/RX and that bloody CH340 is playing on those sending "phantom button presses"...

@ibuildrockets
Copy link

@sqfmi - the issue occurred after uploading the weather sketch and resetting the ESP8266 as described in the 'Hacky solution' from October 8th above :(

Brief update, it seems while on battery power only, you are able to turn it on by resetting it. This can be done by using a metal object to short the reset pin with the metal shield (e.g. paperclip, key, etc.):

image

Hacky solution for now, will continue to diagnose the root cause.

@chunkysteveo
Copy link
Contributor

Any updates on the diagnostics, the CP "hack" PCB's, any other fixes, revisions of the PCB @sqfmi ?

@sqfmi
Copy link
Owner

sqfmi commented Jan 2, 2019

Sorry about the delay, we've had trouble finding a fab that could mass produce the CP2014 adapter boards for us. We're in discussion right now with a promising vendor at the moment. We'll keep everyone posted on any new updates and an ETA when it becomes available.

@chunkysteveo
Copy link
Contributor

That's good, was worried that the project had been abandoned. Do you have the board files available (the add-on board) for anyone that would like to make the CP2104 themselves?

@sqfmi
Copy link
Owner

sqfmi commented Jan 8, 2019

Added GERBER files for the board https://github.com/sqfmi/badgy/tree/master/hardware/CP2104_Adapter

@chunkysteveo
Copy link
Contributor

Brilliant, i'm sure it will help a lot of guys out. I may even try and solder one up...!

@chunkysteveo
Copy link
Contributor

Only just spotted your link to the original board project on Oshpark, I could have used that link, apologies!!

Just out of interest, does anyone know the difference between the CP2104-F03-QFN and the CP2104-QFN? Assume the F03 is a new version, as the "non" F03 chips are cheaper?

@ibuildrockets
Copy link

I've just ordered the PCB from OHS Park - What's the difference between CP2104-F03-GMR and CP2104-F03-GM - does it matter? Just wanting to get the IC on the way, too :)

@sqfmi
Copy link
Owner

sqfmi commented Jan 15, 2019

They are the same part, the difference is just in packaging (R stands for reel)

@jcaron23
Copy link

jcaron23 commented Feb 15, 2019

@sqfmi

Are the boards currently sold on Tindie still suffering from this issue, or have they been updated?

Thanks!

@sqfmi
Copy link
Owner

sqfmi commented Feb 28, 2019

@jcaron23 all new boards will come with the CP2104 instead of the CH340C, which does not have the battery issue.

FYI we found a fab to create the adapter boards for us, we are now waiting for the CP2104s to arrive so we can begin testing it out. If they work ok, we will be offering them to those who were affected by the issue.

rescueboards

@chunkysteveo
Copy link
Contributor

Awesome news!!

@MarquisdeGeek
Copy link

Is there any alternate fix for those of us with the old board, as shorting the reset pin didn't work for me?

@chunkysteveo
Copy link
Contributor

What's the difference between the CP2104-F03-QFN and the CP2104-QFN?

@MarquisdeGeek - you can snip the VCC pin of the CH chip to disable it. You will lose the ability to program it via USB though.

@MarquisdeGeek
Copy link

@chunkysteveo - Thanks, but that's a bit drastic for me!

@emanuelstanciu
Copy link

emanuelstanciu commented Apr 3, 2019

@sqfmi Hi, I have one of the blue PCB models which was bought in July last year and I suffer from exactly the same behaviour as described on this post. Any idea what's happening?
Works fine on USB power, but on Battery simply flashes the ESP blue LED and the nothing happens.
Any pointers are greatly appreciated - if it helps: Tindie Order #115523

@chunkysteveo
Copy link
Contributor

@emanuelstanciu - I would recommend starting a fresh issue with this problem. This issue is related to the USB to serial chip not allowing the ESP8266 to boot when on battery. The blue PCB version does not have any USB to serial chip, so whatever issue you are seeing, it isn't to do with this issue. I don't want your issue to be lost in this bigger post!

If the blue light flashes, that would indicate that it has booted and is powered. Something else is not working here?

Steve

@pingywon
Copy link

Any resolution here? I just got my badgy and was under the impression that the white REV B board did not suffer from this problem. I just got some fresh batteries and Badgy doesnt work at all on battery power.

Can someone please advise.

@sqfmi
Copy link
Owner

sqfmi commented Jul 24, 2019

Hi @pingywon, are you using LIR2450 batteries?

@pingywon
Copy link

Not exactly. I have CR2450s

@sqfmi
Copy link
Owner

sqfmi commented Jul 24, 2019

You must use the LIR2450. The CR2450 is not rechargeable, and is also not the right voltage (3.0V), Check out the README for more details.

@pingywon
Copy link

OK Great. So My original assumption that the issue has been resolved in my Badgy is correct?

@chunkysteveo
Copy link
Contributor

Yeah, REV B does not suffer the power issue on battery when using a. LIR2450 rechargeable battery.

@Carltk
Copy link

Carltk commented Jul 25, 2019

What ever happened to the offer from March 1 about the CP2104 adaptor boards. Do we have to do
anything to register our interest? I have 2 of the affected boards.

@sqfmi
Copy link
Owner

sqfmi commented Jul 25, 2019

Hey @Carltk, send us a message with your Tindie order number and we'll ship the adapter boards to your mailing address. Thanks!

@Springwald
Copy link

I also have 2 badgys with this issue. Any chance to get the adapter boards? Thanks!

@sqfmi
Copy link
Owner

sqfmi commented Jan 9, 2020

Hey @Springwald, send us a message with your Tindie order number and we'll ship the adapter boards to your mailing address. Thanks!

@MarquisdeGeek
Copy link

What is the preferred channel to send the message, since I also need an adapter board? Thanks.

@sqfmi
Copy link
Owner

sqfmi commented Jan 9, 2020

Hey @MarquisdeGeek , reach out to us via Tindie with your order number, and we'll ship the adapter boards to your mailing address. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests