Zachary J. Fields
Published © MIT

Snooze Button for Blues Wireless Notecard Alerts

The Notecard is great at generating alerts. How about a Snooze Button to pause those alerts until you've had a chance to deal with them?

BeginnerFull instructions provided1 hour127
Snooze Button for Blues Wireless Notecard Alerts

Things used in this project

Hardware components

Pushbutton Switch, Momentary
Pushbutton Switch, Momentary
×1
General Purpose Transistor PNP
General Purpose Transistor PNP
×1
General Purpose Transistor NPN
General Purpose Transistor NPN
×1
Resistor 10k ohm
Resistor 10k ohm
×2
Resistor 2.21k ohm
Resistor 2.21k ohm
×1
Male/Male Jumper Wires
×5

Software apps and online services

Falstad Circuit Simulator

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Schematics

Schematic Diagram

Follow this design to recreate the circuit

Code

Programatic Interaction

C/C++
The Arduino compatible code detailing how to interact with the Soft Snooze Button.
#define SOFT_SNOOZE_PIN 5 // Replace `5` with the pin connected to the yellow wire.

// Check the pin status
::pinMode(SOFT_SNOOZE_PIN, INPUT);
bool snooze_state = ::digitalRead(SOFT_SNOOZE_PIN);
// If snooze_state is true, then SNOOZE state has been previously set (as shown below).
// If snooze_state is false, then SNOOZE state has never been set, or the physical
// button has been pressed to reset the state.


// Set the pin into SNOOZE state
::pinMode(SOFT_SNOOZE_PIN, OUTPUT);
::digitalWrite(SOFT_SNOOZE_PIN, HIGH);
::delay(1);
::digitalWrite(SOFT_SNOOZE_PIN, LOW);
// As long as the soft snooze button remains powered, it will stay in the SNOOZE
// state (regardless of the MCU behavior), until the physical button is pressed.

Credits

Zachary J. Fields

Zachary J. Fields

18 projects • 149 followers
I like to make stuff.

Comments