Arduino string / password keyboard emulator using reset button

Arduino has a nice Keyboard library that allows it to pretend to be a keyboard to any host it is connected to. This allows you to automatically “type” passwords or strings, eliminating a potential source of error (though this still obviously exists while programming the arduino). Unlike other examples, this does not require you to have an external button or the like. The reset button will simply act as the activator.

To start the “typing” of the string, either plug the arduino into the USB port or if already connected to the USB port, simply press the arduino’s reset button and it will print the programming string. On the Arduino Due, you will have to connect the USB cable to the “native USB” port, rather than the programming port.

Here’s the code arduino code:

void setup() {
  // do not remove this delay or you will brick the arduino
  Keyboard.println("replace with string to be printed");

void loop() {
  // put your main code here, to run repeatedly:

Now read this

Apple Watch’s Digital Crown Mess!

In my short period with the Apple Watch, I noticed how confused people are when clicking on the digital crown, including Apple Store employees. The digital crown is Apple Watch’s primary button, akin to the iPhone’s home button. Being... Continue →