Ingo Lohs
Published © GPL3+

Light in the Dark of a Handbag

Things that we men have always suspected in a women's handbag now come to light.

BeginnerFull instructions provided1 hour560
Light in the Dark of a Handbag

Things used in this project

Hardware components

Adafruit Gemma Sequin Starter Pack
Needle set - 3/9 sizes - 20 needles Stainless Thin Conductive Thread - 2 ply - 23 meter/76 ft 2 x 2032 Coin Cell Battery Holder - 6V output with On/Off switch Adafruit GEMMA V2 - Miniature wearable electronic platform Adafruit LED Sequins - Warm White - Pack of 5
×1
Handbag
a large handbag at will - if possible with inner lining
×1
CR2032
2 pieces
×1

Software apps and online services

Arduino IDE
Arduino IDE
not possible to use the WebIDE

Story

Read more

Code

Handbag

C/C++
Version 1.0
    // constants won't change. They're used here to 
    // set pin numbers:
    const int internalLED = 1;  // blink 'digital' pin 1 - AKA the built in red LED
    const int buttonPin = 0;    // the number of the pushbutton pin
    const int ledPin = 2;       // the number of the LED pin
     
    // variables will change:
    int buttonState = 0;        // variable for reading the pushbutton status > the Hook&Look Tape or a Reed Switch
     
    void setup() {
      // initialize the LED pin as an output:
      pinMode(internalLED, OUTPUT);  
      pinMode(ledPin, OUTPUT);  
          
      // initialize the pushbutton pin as an input:
      pinMode(buttonPin, INPUT_PULLUP);   //  INPUT_PULLUP
    }
     
    void loop(){
      // read the state of the pushbutton value:
      buttonState = digitalRead(buttonPin);
     
      // check if the pushbutton is pressed.
      // if it is, the buttonState is HIGH:
      if (buttonState == HIGH) {     
        // turn LED on:    
        digitalWrite(ledPin, HIGH);  
        digitalWrite(internalLED, HIGH);  
      } 
      else {
        // turn LED off:
        digitalWrite(ledPin, LOW); 
        digitalWrite(internalLED, LOW);  
      }
    }

Handbag

Version 1.0

Credits

Ingo Lohs

Ingo Lohs

182 projects • 194 followers
I am well over 50 years and come from the middle of Germany.
Thanks to my wife, who gave me a look in the bag and Becky Stern, Adafruit.

Comments