0

March 25, 2016 AT 4:43 pm

Using Pushbuttons and millis() to Delay Events – Without delay() #Arduino

This is great. James “Bald Engineer” gives a thorough walkthrough, line-by-line, of an Arduino sketch to use a pushbutton and millis() to delay events, without using delay()! It’s simple and simply explained on his blog.

pushbutton-fritzing-diagram-pullup

In this example, we will use millis() to wait a few seconds after a pushbutton press to turn on an LED. Then a few seconds later, we will turn it off. All without using delay().

Read more.


Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!


Maker Business — How Intel Makes a Chip

Wearables — Tape tactics

Electronics — Ground connections cooler via more vias

Biohacking — Itch Tracker for Apple Watch

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.