Published © CC BY-NC-SA

The Sanity Check

A mask that randomly glows its eyes red. Often enough so it's noticeable, but sparsely enough to make people doubt their sanity.

BeginnerFull instructions provided10 hours249
The Sanity Check

Things used in this project

Hardware components

Adafruit Feather (nRF52 Bluefruit LE - nRF52832)
×1
NeoPixel Ring: WS2812 5050 RGB LED
Adafruit NeoPixel Ring: WS2812 5050 RGB LED
×1
Lipo Battery 3.7V
×1
Slide Switch
Slide Switch
×1
Hook and Loop
×1

Hand tools and fabrication machines

3D Printer (generic)
3D Printer (generic)
Glue
Soldering iron (generic)
Soldering iron (generic)

Story

Read more

Code

Code

C/C++
#include <Adafruit_NeoPixel.h>


#define PIN        16 

#define NUMPIXELS 16 

Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);




void setup() {
  // put your setup code here, to run once:
   pixels.begin();
   randomSeed(analogRead(0));

}

void loop() {
  
  for(int i=0; i<NUMPIXELS; i++) { 
    pixels.setPixelColor(i, pixels.Color(255, 0, 0));
    
    pixels.show();   
  }
  delay(500);
  pixels.clear();
  pixels.show();  
  delay(random(30000)); 
}

Credits

Comments