🎁📬❄️📦Adafruit Holiday Shipping Deadlines 2019: Please place all UPS 2 Day orders by 11am Monday, December 16 📦❄️📬🎁
0

MO and Jewel power confusion
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

MO and Jewel power confusion

by randyfp on Mon Dec 02, 2019 10:26 pm

I got a Trinket M0 and a 7 neopixel Jewel. I plug it into my USB port and CiruitPy shows up, I modify it to fiddle with the on-board neopixel - works great (this thing appears awesome!) I hook up the Jewel, change the number of pixel to 7 in main.py (and also to 3 just to be test that it is running the modifiied code - This works great also. I'm ready to run it off a battery and deploy!
I use a (3) AA battery holder (with an on/off switch) for 4.5Vdc, wire it up to Bat and Gnd, in parallel with the Pwr and gnd of the Jewel, then run a wire from D4 to the input of the Jewel. I figure I'm done.... But NOOooo...:
The "system"works as expected with the battery pack turned on AND the USB plugged into my computer.
HOWEVER,
- Turning the Battery pack ON but without the USB cable plugged in, the program does not run and the red LED blinks. It's apparently in bootloader mode and waiting for further instruction? Pressing Reset doesn't really do anything of note.
- Plugging in the USB cable to my computer with the battery switched OFF, gives me a green light and nothing else. Switching the Battery ON, causes the program to run and rainbows to occur on the Jewel as the program (main.py) dictates.
I thought this was easy as anything, but I obviously missed something about how to wire up the power - I've read and re-read the docs, they talk alot about programming but not so much on the hardware.
Can anyone tell me what I'm missing ????? I'd really like to put this (battery operated) Jewel in a Xmas display without having to stuff my PC along with it's USB port along for the ride!

randyfp
 
Posts: 3
Joined: Mon Dec 02, 2019 10:03 pm

Re: MO and Jewel power confusion

by adafruit_support_mike on Tue Dec 03, 2019 6:15 am

Post a photo showing your hardware and connections and we'll take a look. 800x600 images usually work best.

adafruit_support_mike
 
Posts: 59708
Joined: Thu Feb 11, 2010 2:51 pm

Re: MO and Jewel power confusion

by randyfp on Tue Dec 03, 2019 2:54 pm

20191203_132452.jpg
20191203_132452.jpg (267.27 KiB) Viewed 54 times

20191203_132434.jpg
20191203_132434.jpg (357.97 KiB) Viewed 54 times

20191203_132551.jpg
20191203_132551.jpg (331.63 KiB) Viewed 54 times

randyfp
 
Posts: 3
Joined: Mon Dec 02, 2019 10:03 pm

Re: MO and Jewel power confusion

by adafruit_support_mike on Wed Dec 04, 2019 1:37 am

The solder joints look good. Could you post a photo showing how all the pieces connect to each other please?

Also, does your code try to open a Serial connection to the computer and print diagnostic info? That's often a reason for code to hang when running from a battery pack: the microcontroller is sitting there waiting for a connection that never gets made.

adafruit_support_mike
 
Posts: 59708
Joined: Thu Feb 11, 2010 2:51 pm

Re: MO and Jewel power confusion

by randyfp on Wed Dec 04, 2019 9:26 am

The code is a stripped down version of the Neopixel "strandtest", (i.e. I deleted several sections but added nothing) so no I don't think it has much in the way of debug prints, but I'll double check as that makes good sense regarding what I'm seeing...

randyfp
 
Posts: 3
Joined: Mon Dec 02, 2019 10:03 pm

Re: MO and Jewel power confusion

by adafruit_support_mike on Thu Dec 05, 2019 1:29 am

Try adding a line that turns on the Feather's built-in LED, and see if that executes.

Start by putting it right at the top of setup(), and if it works there, move it to the beginning of loop(). Keep going until the LED doesn't light up, then work backward to find the line of existing code where things stall.

adafruit_support_mike
 
Posts: 59708
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.