PicoBoot icon indicating copy to clipboard operation
PicoBoot copied to clipboard

Question on extra Pico pins

Open Bobby-McGonigle opened this issue 2 years ago • 5 comments

Answer some general questions first
Are you my GitHub sponsor? no 😢
Did you check older issues to see if it was requested before? yes

I'm interested in adding 3 to 6 Neopixel LEDs to my GameCube

  • Is there any issue modifying the Pico boot script to add in the Neopixel library, then loop some colors on the device? Or would that impact performance in any way?

  • is there enough power to drive 3 to 6 Neopixel LEDs off of one of the Pico pins (between 150ma to 300ma of power needed at max brightness)? Or could this cause an issue to either the GameCube or Pico?

I'm a novice tinkerer and have built with ws2812b neopixels before, but not on anything this complicated

But I think there is plenty of IO, just matter of will I negatively impact the script and if there is enough amperage yo drive the LEDs

Love PicoBoot by the way, I've installed 2 myself, such a great solution!

Bobby-McGonigle avatar May 19 '23 18:05 Bobby-McGonigle

Hey @Bobby-McGonigle

I don't think there are any reasons why it wouldn't work. I think someone ported PicoBoot to RP2040-Zero board which has Neopixel LED on board. It's just something I'm not interested in doing myself since I'd like to keep PicoBoot as simple as possible. But I encourage people to fork the project and add more features like that.

Answering your 2nd question about power draw - it'll work from the internal power regulation circuitry BUT I'd be careful to not put too many LEDs because GameCubes start to show their age and most consoles would do better with fresh capacitors.

webhdx avatar May 19 '23 18:05 webhdx

BTW Here is the project I've mentioned: https://github.com/fengye/PicoBoot Its only problem is that it reverts system clock to stock 133MHz which for now doesn't really matter but in the future it will. It can be easily fixed tho - someone just needs to hook up logic analyzer and modify delays to match WS2812 specification.

webhdx avatar May 19 '23 18:05 webhdx

Thank you @webhdx

I'll give it a try, and I'll post a fork if successful.

Good note about capacitors, I'll see about re-capping before I jump into this.

Thanks!

Bobby-McGonigle avatar May 19 '23 19:05 Bobby-McGonigle

I'd run a memory profiler after each time a library is added. Running out of RAM can completely mess up your timings!

On Fri, May 19, 2023, 15:33 Bobby McGonigle @.***> wrote:

Thank you @webhdx https://github.com/webhdx

I'll give it a try, and I'll post a fork if successful.

Good note about capacitors, I'll see about re-capping before I jump into this.

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/webhdx/PicoBoot/issues/88#issuecomment-1555139370, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKZERF5T4CUQYAYWHTUXILLXG7DIXANCNFSM6AAAAAAYID35ZM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jbarker2160 avatar May 19 '23 19:05 jbarker2160

You can return the system clock to its normal setting once all of the PicoBoot code has run, basically where the tight_loop_contents() call occurs. set_sys_clock_khz(125000, true);

I've currently got a Pico W running as an Access Point serving a control website. The controls are served as a captive portal, and I've got it fairly hard-coded to run the 5 NeoPixels I installed (4 controller ports and power). I intend on uploading the code in the coming days, but I wanted to say that the power does work for me. I'd also mention that I solder a wire onto the 5V of the controller port board similar to as shown in this post , and that's the source of power for the Pico and the NeoPixels.

paulmreese avatar Sep 04 '23 20:09 paulmreese