Pro Trinket Code not running when on battery

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ArnoldW
 
Posts: 4
Joined: Thu Apr 20, 2023 3:25 am

Pro Trinket Code not running when on battery

Post by ArnoldW »

Hi everyone,

i am currently having issues with my pro trinket 5v and the backpack i mounted.
So whenever i run the system with only the battery the red light starts to double-blink 4 times, stops and doesn't run the code. Only the green lights stays. As soon as i attach the usb to the pro trinket it works like a charm. Even the battery charge light comes on when both are attached. Code also runs fine only with usb.
System runs like this:
Image
My LED Lights are attached to 5V, GND, and 6. I am using a 5000mAh 3,6V - 3,7V Li-Ion battery.
I attached a photo of my wiring.
Can't really figure out why it isn't working.
Help is appreciated :)

btw. unfortunately i dont have any way to check the voltage

Cheers
Attachments
Screenshot 2023-04-20 134714.png
Screenshot 2023-04-20 134714.png (96.99 KiB) Viewed 159 times
Screenshot 2023-04-20 134347.png
Screenshot 2023-04-20 134347.png (816.38 KiB) Viewed 159 times

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Pro Trinket Code not running when on battery

Post by adafruit_support_bill »

i am currently having issues with my pro trinket 5v and the backpack i mounted.
The 5v pro Trinket is designed to run on 5v. The LiPo Backpack only supplies 3.7v. to the BAT pin. There is no voltage boost circuitry on board, so you will not get 5v from the 5v pin unless you are plugged into USB.

User avatar
ArnoldW
 
Posts: 4
Joined: Thu Apr 20, 2023 3:25 am

Re: Pro Trinket Code not running when on battery

Post by ArnoldW »

adafruit_support_bill wrote: Thu Apr 20, 2023 8:20 am
i am currently having issues with my pro trinket 5v and the backpack i mounted.
The 5v pro Trinket is designed to run on 5v. The LiPo Backpack only supplies 3.7v. to the BAT pin. There is no voltage boost circuitry on board, so you will not get 5v from the 5v pin unless you are plugged into USB.
I got a 3v pro Trinket and just tried the same setup.
Still doesnt Work...
It does the same thing as before, double-blink a few times and then only the green light stays on.

Edit: So I've tried a few things now but with no success.
- Connected the battery directly to the Trinket without backback. Same problem as mentioned above.
- Tried 3 different batteries now. Same problem as mentioned above.

Do i have to integrate something in the code so he uses the battery as power supply?
Last edited by ArnoldW on Fri Apr 21, 2023 7:11 am, edited 1 time in total.

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Pro Trinket Code not running when on battery

Post by adafruit_support_bill »

Please post some photos of the front & back of the boards showing all of your soldering and connections.

User avatar
ArnoldW
 
Posts: 4
Joined: Thu Apr 20, 2023 3:25 am

Re: Pro Trinket Code not running when on battery

Post by ArnoldW »

Here you go.
Have mercy with me. I'm a bloody amateur.
Attachments
33.jpg
33.jpg (288.62 KiB) Viewed 139 times
22.jpg
22.jpg (158.41 KiB) Viewed 139 times
11.jpg
11.jpg (204.67 KiB) Viewed 139 times

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Pro Trinket Code not running when on battery

Post by adafruit_support_bill »

One very major problem is that the battery you are using is wired with the wrong polarity. All the boards and batteries with JST PH connectors in our store have compatible polarity. Some batteries from 3rd parties are wired in reverse.

It is possible to swap the wires going into the JST connector so that the polarity matches the markings on the board. But the charge controller chip is most likely damaged.

Another issue is that you are trying to power the Neopixels from the 5v pin. As explained in my previous post, there is no voltage boost circuit, so there is no 5v available when you are powering the system with a 3.7v battery.

User avatar
ArnoldW
 
Posts: 4
Joined: Thu Apr 20, 2023 3:25 am

Re: Pro Trinket Code not running when on battery

Post by ArnoldW »

oh my god, bill i love you.
i switched from the 5v pin to the 3v pin and it works like a charm.
thought the 5v just stands for power supply. guess i was wrong :)

User avatar
adafruit_support_bill
 
Posts: 88037
Joined: Sat Feb 07, 2009 10:11 am

Re: Pro Trinket Code not running when on battery

Post by adafruit_support_bill »

Good to hear that is working for you now. Thanks for the follow up.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”