Question about the Powerboost part used with the fairy wings project
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Froggy92030
- Posts: 97
- Joined: Wed Apr 20, 2022 8:25 pm
Re: Question about the Powerboost part used with the fairy wings project
lol that just went way over my head
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Question about the Powerboost part used with the fairy wings project
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
Dave
- Froggy92030
- Posts: 97
- Joined: Wed Apr 20, 2022 8:25 pm
Re: Question about the Powerboost part used with the fairy wings project
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 (40.2 KiB) Viewed 197 times
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Question about the Powerboost part used with the fairy wings project
Watch your indentation. It's used for structure in Python.
This is weird.
Do you have only the one CircuitPython board connected?
Dave
This is weird.
Do you have only the one CircuitPython board connected?
Dave
- Froggy92030
- Posts: 97
- Joined: Wed Apr 20, 2022 8:25 pm
Re: Question about the Powerboost part used with the fairy wings project
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.
- Froggy92030
- Posts: 97
- Joined: Wed Apr 20, 2022 8:25 pm
Re: Question about the Powerboost part used with the fairy wings project
Do you think the M4 could be bad? I have a few more on hand I can try
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Question about the Powerboost part used with the fairy wings project
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
It seems unlikely that the board is bad since it's running... just not as expected.
Dave
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Question about the Powerboost part used with the fairy wings project
You could try a simple blink demo for code.py
Something like
Dave
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)
- Froggy92030
- Posts: 97
- Joined: Wed Apr 20, 2022 8:25 pm
Re: Question about the Powerboost part used with the fairy wings project
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 (45.55 KiB) Viewed 172 times
-
- repl3.PNG (51.14 KiB) Viewed 172 times
-
- repl2.PNG (49.05 KiB) Viewed 172 times
- Froggy92030
- Posts: 97
- Joined: Wed Apr 20, 2022 8:25 pm
Re: Question about the Powerboost part used with the fairy wings project
I replaced the code on the M4 with the blink code you provided and ran REPL again. This is my result
- Attachments
-
- repl5blink.PNG (28.72 KiB) Viewed 172 times
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Question about the Powerboost part used with the fairy wings project
OK, but does the red LED by the USB connector blink? The blink demo doesn't produce any output in the REPL.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
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
- Froggy92030
- Posts: 97
- Joined: Wed Apr 20, 2022 8:25 pm
Re: Question about the Powerboost part used with the fairy wings project
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
I also renamed code.py to make sure there weren't any hidden characters and ran it through REPL again. Same result
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Question about the Powerboost part used with the fairy wings project
Not the NeoPixel, the red #13 LED by the USB connector. The blink demo should blink it endlessly.
Dave
Dave
- Froggy92030
- Posts: 97
- Joined: Wed Apr 20, 2022 8:25 pm
Re: Question about the Powerboost part used with the fairy wings project
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
- dastels
- Posts: 15608
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Question about the Powerboost part used with the fairy wings project
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
Let's rebaseline... you plug USB into the feather. CIRCUITPY shows up?
Dave
Please be positive and constructive with your questions and comments.