Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
Raka Amburo
Published © CC BY-NC

Login Device With an ARDUINO Board

Login Device With an ARDUINO Board. No More Passwords, No More Logins.

BeginnerFull instructions provided1 hour192
Login Device With an ARDUINO Board

Things used in this project

Hardware components

Button
×1
micro arduino leanardo
×1
USB cable
×1

Software apps and online services

Arduino IDE
Arduino IDE
Or you can use any compatible IDE
Arduino library

Story

Read more

Schematics

Diagram

Simple connection between computer and Leonardo board.

Code

The code

C/C++
#include "HID-Project.h"

int button = 3;
void setup() {
  BootKeyboard.begin();
  pinMode(button, INPUT_PULLUP);
  Serial.begin(9600);
}
void loop() {
  if (digitalRead(button) == LOW) {
    if (BootKeyboard.getLeds() & LED_CAPS_LOCK) {
      BootKeyboard.write(KEY_CAPS_LOCK);
    }
    Keyboard.press(KEY_UP_ARROW);
    delay(5);
    Keyboard.release(KEY_UP_ARROW);
    delay(1500);
    Keyboard.print("yourPassWord");
    delay(300);
    Keyboard.press(KEY_RETURN);
    Keyboard.release(KEY_RETURN);
  }
  delay(200);
}

Repo

Credits

Raka Amburo
17 projects • 9 followers
Join me, a seasoned programmer, as we unlock the secrets of automation with Arduino and other boards. Dive into a world of technology.
Contact

Comments

Please log in or sign up to comment.