Question about the Powerboost part used with the fairy wings project

Wearable electronics: boards, conductive materials, and projects from Adafruit!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
Froggy92030
 
Posts: 97
Joined: Wed Apr 20, 2022 8:25 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by Froggy92030 »

lol that just went way over my head

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by dastels »

Add calls to print in different place to see how far it's getting. Each call to print will output its argument to the REPL.

Dave

User avatar
Froggy92030
 
Posts: 97
Joined: Wed Apr 20, 2022 8:25 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by Froggy92030 »

So I entered print("blink") starting at the beginning of the code and entered it inn random places throughout. It always looks like this
Attachments
repl.PNG
repl.PNG (40.2 KiB) Viewed 197 times

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by dastels »

Watch your indentation. It's used for structure in Python.

This is weird.

Do you have only the one CircuitPython board connected?

Dave

User avatar
Froggy92030
 
Posts: 97
Joined: Wed Apr 20, 2022 8:25 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by Froggy92030 »

I tried to match my print indentation to the same print indentations that are in the original code. All I have connected is the M4.

User avatar
Froggy92030
 
Posts: 97
Joined: Wed Apr 20, 2022 8:25 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by Froggy92030 »

Do you think the M4 could be bad? I have a few more on hand I can try

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by dastels »

OK. Post you code with the added print(s).

It seems unlikely that the board is bad since it's running... just not as expected.

Dave

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by dastels »

You could try a simple blink demo for code.py

Something like

Code: Select all

import board
import digitalio
import time

led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT

while True:
    led.value = True
    time.sleep(0.5)
    led.value = False
    time.sleep(0.5)
Dave

User avatar
Froggy92030
 
Posts: 97
Joined: Wed Apr 20, 2022 8:25 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by Froggy92030 »

ok here are the random prints inserted. I even purposely mistyped one to see if i would get a differnet result. The prints that are highlighted are the ones I inserted
Attachments
repl4.PNG
repl4.PNG (45.55 KiB) Viewed 172 times
repl3.PNG
repl3.PNG (51.14 KiB) Viewed 172 times
repl2.PNG
repl2.PNG (49.05 KiB) Viewed 172 times

User avatar
Froggy92030
 
Posts: 97
Joined: Wed Apr 20, 2022 8:25 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by Froggy92030 »

I replaced the code on the M4 with the blink code you provided and ran REPL again. This is my result
Attachments
repl5blink.PNG
repl5blink.PNG (28.72 KiB) Viewed 172 times

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by dastels »

Froggy92030 wrote: Sun Aug 28, 2022 10:42 pm I replaced the code on the M4 with the blink code you provided and ran REPL again. This is my result
OK, but does the red LED by the USB connector blink? The blink demo doesn't produce any output in the REPL.

However it should never stop.

I suggest renaming code.py (well, retyping it) "code.py" to make sure there's no odd characters hidden in the filename that is causing CircuitPython to be unable to find it.

Dave

User avatar
Froggy92030
 
Posts: 97
Joined: Wed Apr 20, 2022 8:25 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by Froggy92030 »

The LED is still blinking the single green blink like it has the whole time even with the blink code. It blinks green once pauses for about 5 seonds and blinks green once again. and just repeats the blink pause

I also renamed code.py to make sure there weren't any hidden characters and ran it through REPL again. Same result

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by dastels »

Not the NeoPixel, the red #13 LED by the USB connector. The blink demo should blink it endlessly.

Dave

User avatar
Froggy92030
 
Posts: 97
Joined: Wed Apr 20, 2022 8:25 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by Froggy92030 »

There is an orange led next to the USB connector. I does a fast blink any time it is powered on no matter what code I am running

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: Question about the Powerboost part used with the fairy wings project

Post by dastels »

That's the charge indicator. It will be on while the battery is charging, and will flash fast if there's no battery connected.

Let's rebaseline... you plug USB into the feather. CIRCUITPY shows up?

Dave

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

Return to “Wearables”