Тёмный
No video :(

Getting Pushy by adding a Button to the Raspberry Pi Pico (CircuitPython) 

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

In this lesson we use CircuitPython to read a button wired to a Raspberry Pi Pico or Pico W. We'll also learn about different types of buttons, how code for external buttons differs from the built-in button on the CircuitPlayground boards, and we'll see why a Pull.UP resistor is necessary as we observe floating or high impedance state.
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...

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

 

17 фев 2023

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@mightypaddle
@mightypaddle Год назад
What does the code look like to press button and turn on led. Press button again turn on the next led. Press again turn on next led. Like a visual counter I know how many times the button was pressed. Then pressing the button three times fast clears all leds.
@minkloco619
@minkloco619 5 месяцев назад
I’m trying to hook up 40 buttons what would I need?
@BuiltNotBoughtUK
@BuiltNotBoughtUK 11 месяцев назад
Hi, I'm currently using Thonny but see you are using Mu and it has autocomplete is it worth changing over to help learn?
@profgallaugher
@profgallaugher 11 месяцев назад
Mu isn’t great. My biggest complaint about working with CorcuitPython is the lack of easy integration with better development tools. I plan to look at options later in the year, but Mu is free so it’s easy to try out if you find it useful. The interface is supposed to be easier to use, for young kids, but I find it more trouble since it’s non standard. Good luck and feel free to share your experiences!
@DommoDommo
@DommoDommo 9 месяцев назад
Do I need a breadboard? I want to just connect a button directly into the raspberry pi in the bottom slots (35 onwards) I can't seem to find any videos / reading on this.
@profgallaugher
@profgallaugher 9 месяцев назад
A breadboard is useful. And you’ll want your pico to have headers soldered on, too. Check the earlier lessons in the playlist. You’ll see one on breadboards.
@bertmonkey8457
@bertmonkey8457 21 день назад
As a total newby... am getting No Module Named board or digitalio... any suggestions?
@profgallaugher
@profgallaugher 21 день назад
Are you using CircuitPython and not microphone? Those modules are built into CircuitPython. They don’t need to be added to “lib”. So if you installed CircuitPython (earlier lesson) you should be fine. Just use the import statement in your code.
@profgallaugher
@profgallaugher 19 дней назад
Also make sure you've installed the proper CircuitPython library for your board. For example: Raspberry Pi Pico W if you're using the "W" board, Raspberry Pi Pico for that board. Has that solved you issue? Good luck!
@eklabofficial
@eklabofficial Месяц назад
Could you possibly give me some links for all the pieces needed?
@profgallaugher
@profgallaugher Месяц назад
Look at the Google sheet link in the very first video at bit.ly/circuitpython-tutorials (it’s in the video description - those are below the RU-vid videos. Sometimes you have to click to expand them). That link has all of the parts, links, etc.
@eklabofficial
@eklabofficial Месяц назад
@@profgallaugher Is it ok to buy a Pico WH because that is what the link takes me to that was on the spreadsheet.
@profgallaugher
@profgallaugher Месяц назад
That's the one to get. It has the headers pre-soldered on it. You'll want to get a breadboard, too. If you're just experimenting, the CircuitPlayground Bluefruit (CPB) board is a great first board. The CircuitPython you'll learn will mostly translate to the Raspberry Pi Pico, but the CPB has a bunch of sensors, lights, and other hardware on board, and it can be easily expanded with alligator clips. Feel free to use either, or both, but the CPB is a great first choice given it has so much embedded in it. CircuitPython will be mostly standard across the >500 boards that run the language.
@profgallaugher
@profgallaugher Месяц назад
Know that the Raspberry Pi Pico-WH doesn't do a whole lot on its own. You'll likely want some additional hardware if that's the one. you go with. Get a breadboard, a neopixel light strip, pin-alligator clip wires, and most of the sensors I use (e.g. the 12-pad touch sensor, distance sensor, etc) use the STEMMA-QT standard, so this product is good to use with STEMMA-QT expansion since these devices can be daisy-chained together. www.adafruit.com/product/4209. You'll also need a STEMA-QT cable to go from the port on that product to any of the STEMMA-QT expansion items - something like this will work: www.adafruit.com/product/4210 Again, the CPB is really nice as a first board because it includes so much & you can experiment with motional detection / accelerometer, lights, sounds, light sensing, buttons, and more, all on the board. This may make it easier to choose hardware for a board like the Pico-WH in the future. Cheers & good luck. Also know that Adafruit Discord is a GREAT place to ask for help. I mention this site in the intro videos.
@eklabofficial
@eklabofficial Месяц назад
@@profgallaugher I already have A CPB do you recommend any buttons on adafruit that could hook up to alligator clips.
@drviver
@drviver Год назад
BUTTON
@timtonix308
@timtonix308 Год назад
i think i just destroyed my pico lol
@profgallaugher
@profgallaugher Год назад
Yikes. Good luck.
Далее
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
Raspberry Pi Pico - Review and Getting Started
18:32
Просмотров 75 тыс.
Hacking my garage door with the Raspberry Pi Pico W
11:50
The Petabyte Pi Project
22:27
Просмотров 2,2 млн
How To Use A Relay With Raspberry Pi Pico
11:59
Просмотров 24 тыс.
Raspberry Pi Pico W: Wireless Weather Station
17:13
Просмотров 284 тыс.
Fun with Transistors
24:33
Просмотров 80 тыс.
Programming a Raspberry Pi Pico with C or C++
19:47
Просмотров 107 тыс.
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00