← Back to search

Reading Digital Inputs | Raspberry Pi Pico Workshop: Chapter 2.4

Core Electronics 10:23

10,085 views · 187 likes Watch on YouTube ↗

🔗 *The full course* : _https://core-electronics.com.au/courses/raspberry-pi-pico-workshop/#2.4_

In this video, we will learn how to use *digital inputs* on the *Pico* through 2 examples. In the first, we will be reading the state of a *button*, and in the second we will *control* an *LED* with a button. We will also look at the relationship between *voltage* and digital input state.

🔧🔨🧰 Hardware featured in this guide:
*Pico:*
_https://core-electronics.com.au/catalog/product/view/sku/CE07564_
*LED Pack:*
_https://core-electronics.com.au/catalog/product/view/sku/CE08576_
*Breadboard:*
_https://core-electronics.com.au/catalog/product/view/sku/CE07065_
*Jumper Wires:*
_https://core-electronics.com.au/catalog/product/view/sku/CE08574_
*Button Pack:*
_https://core-electronics.com.au/catalog/product/view/sku/CE08583_
*Potentiometer:*
_https://core-electronics.com.au/catalog/product/view/sku/CE09096_

💡❓ If you have any questions about this content or want to share a project you're working on head over to our *maker forum:* _http://coreelec.io/forum_

0:00 Digital Inputs on the Pico
0:49 Digital Input Example Code
4:07 Exploring Pin Voltage and Digital Reading
5:16 Digital Inputs
6:56 Button and LED example
8:27 What can you do with this?
9:45 3 Key Takeaways

🌏🦘 *Core Electronics* is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:

• *Raspberry Pi* _https://core-electronics.com.au/raspberry-pi.html_
• *Arduino* _https://core-electronics.com.au/arduino.html_
• *Sparkfun* _https://core-electronics.com.au/brands/sparkfun-australia_
• *Adafruit* _https://core-electronics.com.au/brands/adafruit-australia_
• *Pololu* _https://core-electronics.com.au/brands/pololu-australia_
• *DFRobot* _https://core-electronics.com.au/brands/dfrobot-australia_

The following trademarks are owned by *Core Electronics Pty Ltd:*

"Core Electronics" and the Core Electronics logo
"Makerverse" and the Makerverse logo
"PiicoDev" and the PiicoDev logo
"GlowBit" and the GlowBit logo

Category (YouTube): Education

Playback is via YouTube's official embedded player. Data from YouTube; Exumo is not affiliated with YouTube.