Рет қаралды 278
In this video we'll make interactive NeoPixel Animations using the buttons on the micro:bit to change what animation plays. First, I'll show you how to set up the buttons in code blocks, then I'll teach you how to create animation modes that will let you toggle through the animation functions that you've created.
Ready to code? Go to MakeCode.microbit.org
Thanks for watching!
Natasha
/ technochic
/ technochic
Discord - Join the Channel for Project Help, Community, and Inspiration!
/ discord
Participate in the Element 14 Community:
community.element14.com/microbit
Ride with Bike JC:
bikejc.org/light-up-rides
The Full Playlist:
• Creative LEDs: The Ser...
Episode 01 - • Creative LEDs: The Ser...
Episode 02 - • Simple NeoPixel Contro...
Episode 03 - • Connecting NeoPixels a...
Episode 04 - • How to Set Up NeoPixel...
Episode 05 - • Designing NeoPixel Ani...
Episode 06 - • Interactive NeoPixel A... ✨ YOU ARE HERE
Episode 07 - • Syncing NeoPixels over...
Episode 08 - • Choosing NeoPixels For...
Episode 09 - • NeoPixels: Weatherproo...
Episode 10 - • Natasha's NeoPixel LED...
CHAPTERS:
00:00 - Intro and Recap: Setup and NeoPixel Functions
00:37 - Let's Use Buttons To Change The NeoPixel Animation
00:55 - What are Inputs? Microphone, Touch Sensor, Accelerometer, Buttons
01:19 - The "On Button Pressed" Block
01:29 - Event Handler Blocks in Make Code
02:09 - Setting Up Button Blocks
03:39 - Why Does the Animation Only Play Once?
04:03 - Creating Animation "Modes" For NeoPixels In Make Code
05:47 - Using Logic: The If / Else Block
08:51 - Reseting the Mode If It's Too High Or Too Low
10:15 - Why You'll See A Delay When the Mode Changes
10:42 - The NeoPixel Mode Switcher In Action!
11:22 - Up Next: Send The Mode Over the micro:bit Radio! ✨
PROJECT SUPPLIES:
(some links earn commissions)
NeoPixel LEDs:
Neopixel LED Strip with Alligator Clip Connector:
adafruit.com/product/3812
www.newark.com/adafruit/3812/...
micro:bit Controller:
amzn.to/3uRqn3x
www.newark.com/bbc-microbit?o...
LiPo Batteries for micro:bit: double check polarity before buying!
LiPo Battery (get 500 mAh or more)
amzn.to/3Tb3DE7
www.newark.com/adafruit/1578/...
LiPo Battery Charger:
amzn.to/3SPnGaW
micro:bit Cases: double check version before buying!
amzn.to/3VuQoRk
www.newark.com/MarketingProdu...
Other Accessories:
Velcro Dots (Industrial Strength!): amzn.to/4bRDsuG
Velcro Squares: amzn.to/48rcK9e
Velcro Cable Ties: amzn.to/3Ice2du
Mounting Tape: amzn.to/3OWtpum
micro:bit watch accessory: amzn.to/3uH8zbv
Link to Neopixel Bike Lights with Arduino (older LED bike version):
technochic.net/search?q=Ardui...
Battery Safety Info:
technochic.net/blogs/tech-cra...
THANK YOU!! To everyone who helped make this series possible:
Ayla Schermer, Tony Borelli, Beatriz Bofill, The Entire Bike JC Team, Matt Palasz, Casey Walker, Wozzy the Best Dog Ever, Becky Stern, Maria Paula Saba, Zach Kling, Julian C, All the workshop participants, Ian Cole, Allen Paschel, Bright Bikes, The Maker Effect Foundation, Anthony Rubalcaba, Sophy Wong, Allie Katz, Debra Ansell, Charlyn Gonda, Xyla Foxlin, Doug Malnati, Adafruit, The Element 14 Presents team, Jordan Johnson, Kelly Hensen, Pat Standley, The Jersey City Theatre Center team, Olga Levina, Lance Michel, The Jersey City Arts and Culture Trust Fund
SUPPORTED BY PUBLIC FUNDS FROM THE JERSEY CITY ARTS AND CULTURE TRUST FUND www.jerseycityculture.org/pro...