Hey everyone. Last time I forgot my facebook password when I was trying to log on my facebook account from another device. And yep my phone was not there so I could not use otp. I had to be away from facebook for two days. We keep on forgetting passwords. It would be easy if your device is yours but when you try from another device and your device is not there it will be a serious problem. One idea might be to keep passwords same but your passwordn might become weak.So we need a device that displays all password. But again a person can easily take use passwords. So we have to make a device that shows password only enter the device password. So lets start
Connections:
1) Row pins to 3, 6, 7, 8
2) Col pins to 9, 10, 1, 13
3) LCD RSpin to digital pin 12
4) LCD Enable pin to digital pin 11
5) LCD D4 pin to digital pin 5
6) LCD D5 pin to digital pin 4
7) LCD D7 pin to digital pin 2
8) LCD R/Wpin to ground
9) LCD VSS pin to ground
10) LCD VCC pin to 5V LCD D6 pin to digital pin 3
11)
12) * 10K resistor:
13) ends to +5V and ground
14) wiper to LCD VO pin (pin 3)
15)
Code:
#include <Servo.h>
#include <LiquidCrystal.h>
#include <Keypad.h>
Servo myservo;
const int ROW_NUM = 4; //fourrows
const int COLUMN_NUM = 4; //fourcolumns
char keys[ROW_NUM][COLUMN_NUM] ={
{'1', '2', '3', 'A'},
{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
{'*', '0', '#', 'D'}
};
byte pin_rows[ROW_NUM] = {3, 6, 7, 8};//connect to the row pinouts of the keypad
byte pin_column[COLUMN_NUM] = {9, 10, 1, 13};//connect to the column pinouts of the keypad
Keypad keypad = Keypad(makeKeymap(keys), pin_rows, pin_column, ROW_NUM, COLUMN_NUM );
String inputString;
long inputInt;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
Serial.begin(9600);
inputString.reserve(10);
myservo.attach(10);// maximum number of digitfor a number is 10, change if needed
}
void loop() {
char key = keypad.getKey();
if (key) {
Serial.println(key);
if (key >= '0' && key <= '9'){ // only act on numeric keys
inputString += key; // append new character to inputstring
} else if (key == '#') {
if (inputString.length() > 0) {
inputInt = inputString.toInt(); // YOUGOT AN INTEGER NUMBER
inputString = ""; // clear input
// DO YOUR WORK HERE
}
} else if (key == '*') {
inputString = ""; // clear input-
}
}
if (key==3456){
myservo.write(90);
}
else{
myservo.write(0);
}
}
are you liking the project?
do you want code for your project
contact me here
https://www.freelancer.in/hireme/pranavmadhavaram
important step: I just used random passwords but you can change it in the line lcd. Print by changing letters in double inverted comma.You can add more passwords by copying that line and replacing letters inside double inverted comma
Comments