Introduction: Titanfall Ejection Lever MK.2

About: Just your regular internet idiot

So after my first one breaking, and now with the POWER OF ARDUINO, i can finailly make a MK.2 version of my Ejection Lever!

Step 1: Parts

Things your gonna need:

- An arduino pro micro (their very cheap)

- A bathroom pull switch

- An electrical box (or whatever you call them)

- A piece of rope

- 2 dupont cables

- Soldering iron

And you might need:

- Some zipties

- Tape/electrical tape

Step 2: The Switch

Firstly we need to cut the dupont cables and solder them to the ends of the switch. Then some electrical tape around them so they don't make contact with each other.

Step 3: Modifying the Box

So the electrical box needs some modification for the arduino and switch to sit in it. there was a little loip in the middle that needs to go, and we need a hole for our arduino usb cable.

Step 4: Putting Everything in the Box

Since i havent really thought this through, i just used zip-ties to mount the arduino to the box :P the switch gets secured with zip-ties as well, even tho i pull on it, but just for security.

Connect the wires to digital pin 4 and ground on the arduino, doesnt matter which way.

Then i used some tape to fix the switcht to my rope, as you can see in the picture.

Step 5: Adding It Under Your Table

So everything is mounted now, so now to secure it under my table!

I just used some scews, i had an plan to be able to remove it if it sin the way, but it doesnt bother me that much, but yo ucan come up with your own idea to mount it, maybe even under your chair!

Step 6: The Code

So the best thing about this design is that it now has a arduino! So now we can let it do anything instead of wiring the whole thing to a wireless mouse.

The code is pretty simple, but as a beginner, i had a hard time coming up with the code, but here it is!

The arduino software should have the keyboard library installed, but if not, probably google has the answer ;)

also small side note: the arduino needs to be a pro micro or leonardo, because they have the right processor for the keyboard function to work.

#include <Keyboard.h>

int chain = 4;
int state = 4; int old_state = 0;
void setup() { pinMode(chain, INPUT_PULLUP); Keyboard.begin();

void loop() { state = digitalRead(chain); if (state != old_state) { Keyboard.print("e"); delay(100); Keyboard.print("e"); delay(100); Keyboard.print("e"); old_state = state; } }

Step 7: You're Done!

And you're done! Have fun!

If you have any questions, let me know below!