Why delay() Makes Your Button Miss Presses (and the Fix)
Your Arduino button works sometimes and ignores you at others. Learn why delay() in loop() misses presses, and fix it with millis() on an Uno.
News from the workbench: what we shipped, how it works and guides for building with it. Follow by RSS or see every update.
Your Arduino button works sometimes and ignores you at others. Learn why delay() in loop() misses presses, and fix it with millis() on an Uno.
Moving an ESP32 WiFi project over? Sketches that join Wokwi-GUEST connect as they are in Mokxi. See the wiring, the sketch and what the simulated WiFi does.
Make one NeoPixel flicker like a candle inside a jack-o-lantern with an ESP32-C3 sketch, random brightness and smoothing, running in your browser.
Build a dusk light in Mokxi with a photoresistor sensor and an Arduino Uno, and use hysteresis so the lamp does not flicker as the light fades.
Build a Halloween talking skull on an Arduino Uno in Mokxi: a servo jaw timed to a DFPlayer track, green LED eyes and a motion sensor to wake it.
Run your Arduino Uno sketch in the Mokxi simulator on every push with the free CLI. Serial checks, a button test and a JUnit report, no account needed.
Build a Halloween motion trigger on an Arduino Uno: a PIR sensor fires a relay for a short burst, then ready and cooldown LEDs show when it can fire again.
A teacher guide to Mokxi classes: hand out a locked starter circuit, collect submissions, see what changed and auto-check an LED and button project.
Build a Halloween candy bowl in Mokxi that grabs back: an HC-SR04 spots a hand, a servo swings down, a piezo shrieks, and a cooldown resets it.
Your Arduino Uno LED jumps on instead of fading? See why analogWrite needs a PWM pin, which Uno pins have it, and how Mokxi's Circuit Doctor flags it.