Тёмный

NeoPixel LED Strip on the Raspberry Pi Pico & Pico W using CircuitPython 

John Gallaugher
Подписаться 7 тыс.
Просмотров 16 тыс.
50% 1

Learn to connect a NeoPixel LED Strip to a Raspberry Pi Pico or Pico W. Learning the proper way to wire up the strip, how to read the Pico W pinout diagram, and how to refer to the strip in your CircuitPython code. Once you complete this lesson you'll be able to use all of the NeoPixel code in CircuitPython School with a Pico or Pico W.
The URL to get the nuke.uf2 file is: learn.adafruit.com/getting-st...
This playlist is used in Prof. Gallaugher's Physical Computing course. All teachers, students, and other independent learners are welcome to use this content. If you find it helpful, PLEASE let me know! You are also most welcome to share with others and use this material in your own courses. For more info, including parts lists, suggestions for faculty, and more, see: gallaugher.com/physical-compu...

Опубликовано:

 

27 янв 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 22   
@mattkojetin8198
@mattkojetin8198 Год назад
Excellent! Thank you.
@qzorn4440
@qzorn4440 5 месяцев назад
Do you have project videos on the new Raspberry Pi5? 😎 Nice Pico NeoPixel video. Thanks.
@derekhawley9660
@derekhawley9660 4 месяца назад
Hi John, You use files from the folder 'CircuitPython School' in this video (which I am working through). Are the contents of this folder available online? I've looked on your website and I can't find them, Thanks again for a great series of videos.
@profgallaugher
@profgallaugher 2 месяца назад
Hi Derek. Sorry, I don’t offer the files online. I want my students to code the files themselves. If you go through the playlist from the first video you’ll see me saving the various examples created. Cheers!
@christopherlyons7613
@christopherlyons7613 Год назад
Hi John. Since you're powering from vBus aren't you limited to about 900ma of current to your Neopixel strip? If so, then guessing you need to be careful not to over draw that max current when displaying your colors. Each Neopixel can draw approximately 60ma (20ma for each R, G, B). So with only one color showing (Red) you're already drawing approx. (30 * 20ma = 600ma), correct?
@profgallaugher
@profgallaugher Год назад
There is some nuance but I’ve never run into any issues with the 30 we use at full brightness with the full set of animations you see here. This is a good primer, but there are also great folks on Adafruit Discord who have some quite large installations who may be able to coach you through their hard earned experience if you have projects going beyond the simple ed examples here. learn.adafruit.com/adafruit-neopixel-uberguide/powering-neopixels
@Justacec
@Justacec 10 месяцев назад
@@profgallaugher I am having the same concern. I have a 1 meter strip with 60 pixels on it. I am thinking I should power that through a separate power supply just to be safe.
@MrDrake333
@MrDrake333 6 месяцев назад
Hi Jhon i got an LED strip with 4 pins (+, G, R, B) is it just + for 5v, G connect to The control pin on raspberry and R and B for ground?
@profgallaugher
@profgallaugher 6 месяцев назад
Hi. I don’t think 4 pin strips are neopixel strips so you’d need a different library with likely different code. I did a quick search on the Adafruit site and see this is one four pin strip but there may be other standards. There is a learn guide at the end of this article but I’d also ask on the Adafruit discord channel as all these videos are for neopixels. Good luck! www.adafruit.com/product/306
@Keeping_IT_Simple
@Keeping_IT_Simple Год назад
great course is the code shared somewhere on-line?
@profgallaugher
@profgallaugher Год назад
You can find lots of code examples on the slides in the open course Google drive at gallaugher.com. You’ll see challenges and solutions we use as weekly activities in class. Good luck!
@DiegoPuentes-kc3ss
@DiegoPuentes-kc3ss Год назад
Hi, great video" but I have a question. I do all the library installations, I get the "successfully installed.." message, but everytime I try to run the code it sends me an error message "No module named 'neopixel' ". Even if in pip3 list it shows neopixel properly installed. Thanks!
@profgallaugher
@profgallaugher Год назад
Check the "lib" folder on your CIRCUITPY device. It almost certainly is missing a file named "neopixel.mpy". You'll find that in the bundle that you downloaded. There are similarly named files/folderes, so be sure this exact file is inside the "lib" folder on your CiRCUITPY. I'm sure that's the issue. Good luck!
@DiegoPuentes-kc3ss
@DiegoPuentes-kc3ss Год назад
@@profgallaugher Thanks a lot! Indeed I didn't have "neopixel.mpy". I already added it to the lib folder, but unfortunately it still tells me 'No module named neopixel'. Any other ideas? Thanks again Important thing I should say is, im using a Raspberry Pi 3 - Booster. I don't know if that's important. Thanks again
@profgallaugher
@profgallaugher Год назад
Make sure it's absolutely in the "lib" folder. Sometimes it's copied over either outside of "lib" or inadvertently dragged inside another subfolder in "lib". Here's the lesson on configuring using nearly all of the libraries I use in subsequent lessons & that my students use: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ND5UhTQlfWw.html
@rfengr1
@rfengr1 6 месяцев назад
On diagram in middle of video, you have GP15 connected to Data out on RGB strip. That should be data in as you are communicating to the strip.
@profgallaugher
@profgallaugher 6 месяцев назад
LMK the time of the issue & I’ll fix this when I re-do the course videos later this year. I suspect no one noticed this before since there is just one data connection on NeoPixels so the scheme works & it sounds like I made a labeling or speaking goof - quite common given the amount of content. I appreciate catching any gaffes. Thx.
@mistercrunch
@mistercrunch 7 месяцев назад
Found pico can't drive that many LEDs at good FPS with a similar setup. Go PI4 for 1000 LEDs at 30 fps
@user-ic9ln9ld1v
@user-ic9ln9ld1v 9 месяцев назад
ive search for serial but i dont have it
@profgallaugher
@profgallaugher 9 месяцев назад
Not sure what you are referring to here. Sorry.
@Giiker
@Giiker 3 месяца назад
help code not working?? ImportError: no module named 'board'
@profgallaugher
@profgallaugher 3 месяца назад
Sounds like CircuitPython was not installed properly or board was spelled wrong. Board is built into CircuitPython. Also check out Adafruit Discord for question advice.
Далее
The Raspberry Pi Pico WAS Overrated! But that changed!
10:18
Raspberry Pi Pico
16:16
Просмотров 304 тыс.
How To Use A Servo With Raspberry Pi Pico
11:49
Просмотров 19 тыс.
How to wire up WS2811 RGB LEDs to the Raspberry Pi
10:17
Raspberry Pi Pico - Review and Getting Started
18:32
Просмотров 74 тыс.