top of page
Search

Password Holder

  • Writer: Jason Ron
    Jason Ron
  • Sep 3, 2021
  • 1 min read

In the age of passwords the solution should not be another password. This project is an electronic device that stores your password and prints your password when you blow on the microphone. The idea behind this is that you are the only one that knows that if you blow on the mic the password will show up. Also you can secure the device by tuning the potentiometer to not give a digital high when you blow on the microphone.


Tuning the potentiometer is a bit tricky, to get it to work you need to twist the potentiometer and blow on the mic until the red led flashes when you blow on the mic and does not flash when you are not blowing on the mic.


Remember to press the button then blow into the mic to activate the keybord write funtion. Feel free to change the code to print your specific password. Thank you!


Bill of materials:

(1) arduino Leonardo

(1) KY-037 Big sound sensor

(1) pushbutton

(1) resistor


Wiring Diagram:

Code ///////////////////////////////////////////////////////////////////////////////

#include <Keyboard.h>

int Analog_Pin = A0;

int Digital_Pin = 3;


const int inputpin = 7;

int lastButtonState2 = 0;

int buttonState2 = 0;

int buttonPushCounter2 = 0;

void setup ()

{

pinMode(Analog_Pin, INPUT);

pinMode(Digital_Pin, INPUT);

Serial.begin (9600);

}


void loop ()

{

float Analog;

int Digital;

buttonState2 = digitalRead(inputpin);

if (buttonState2 != lastButtonState2) {

if (buttonState2 == LOW) {

buttonPushCounter2++;

}

}

lastButtonState2 = buttonState2;

Analog = analogRead (Analog_Pin);

Digital = digitalRead (Digital_Pin);



if (buttonPushCounter2 == 1){

if(Digital==1)

{

//Serial.println(" turn on ");

Keyboard.write('p');

Keyboard.write('a');

Keyboard.write('s');

Keyboard.write('s');

Keyboard.write('w');

Keyboard.write('o');

Keyboard.write('r');

Keyboard.write('d');

delay(100);


}

else

{

Serial.println(" Not yet reached do nada ");

}

Serial.println("----------------------------------------------------------------");

delay (200);

}//keyboard

} //loop

 
 
 

Comentários


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2018 by Jason JCAD. Proudly created with Wix.com

bottom of page