Unsigned_Arduino
Published © GPL3+

ABPC - Automatic Bing Point Collector

Microsoft rewards, here we come!

IntermediateFull instructions provided896
ABPC - Automatic Bing Point Collector

Things used in this project

Hardware components

Arduino Leonardo
Arduino Leonardo
Any board that can emulate a Keyboard will work
×1
LED (generic)
LED (generic)
You don' t need one if your board has a built in LED.
×1
Resistor 220 ohm
Resistor 220 ohm
You don' t need one if your board has a built in LED.
×1
Jumper wires (generic)
Jumper wires (generic)
You don' t need one if your board has a built in LED.
×1
Breadboard (generic)
Breadboard (generic)
You don' t need one if your board has a built in LED.
×1
Knowledge on operating your computer and the Arduino IDE
×1

Software apps and online services

Arduino IDE
Arduino IDE
Fritzing
Only needed if you intend to view the .fzz files

Hand tools and fabrication machines

Yourself
Computer with Arduino IDE

Story

Read more

Schematics

ABPC

Fritzing files

Code

ABPC

C/C++
Upload to Arduino Leonardo
#include "Keyboard.h"

// Before starting, make Chrome the active window.

// Use this option for Mac OSX.
// Comment it out if using Windows or Linux:
// char ctrlKey = KEY_LEFT_GUI;
// Use this option for Windows and UNIX-based OS.
// Comment it out if using Mac OSX:
char ctrlKey = KEY_LEFT_CTRL;


void setup() {
  pinMode(2, INPUT_PULLUP);
  pinMode(13, OUTPUT);
  pinMode(A0, INPUT);

  Keyboard.begin();
  randomSeed(A0);
}

void loop() {
  if (digitalRead(2) == LOW) {
    digitalWrite(13, HIGH);
    Keyboard.press(ctrlKey);
    Keyboard.press('t');
    delay(500);
    Keyboard.releaseAll();
    delay(500);
    Keyboard.println("bing.com");
    delay(5000);
    for (int x = 1; x < 10; x++) {
      Keyboard.write(random(33, 128));
    }
    delay(1000);
    Keyboard.write(KEY_RETURN);
    delay(5000);
    Keyboard.press(ctrlKey);
    Keyboard.press('w');
    delay(500);
    Keyboard.releaseAll();
  }
  digitalWrite(13, LOW);
  delay(100);
}

Credits

Unsigned_Arduino

Unsigned_Arduino

0 projects • 2 followers

Comments