Titanfall Ejection Lever MK.2

by Xypod13 in Circuits > Arduino

608 Views, 3 Favorites, 0 Comments

Titanfall Ejection Lever MK.2

IMG_20180304_121929.jpg
IMG_20180304_132733.jpg
IMG_20180304_132943.jpg
IMG_20180304_140321.jpg
IMG_20180304_141839.jpg
IMG_20180304_143830.jpg
IMG_20180304_143852.jpg
IMG_20180304_165200.jpg
IMG_20180304_165205.jpg
IMG_20180304_121852.jpg

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!

Parts

IMG_20180304_121852.jpg
IMG_20180304_121929.jpg

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

The Switch

IMG_20180304_132733.jpg
IMG_20180304_132943.jpg

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.

Modifying the Box

IMG_20180304_140321.jpg

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.

Putting Everything in the Box

IMG_20180304_141839.jpg
IMG_20180304_143830.jpg
IMG_20180304_143852.jpg

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.

Adding It Under Your Table

IMG_20180304_165205.jpg

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!

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; } }

You're Done!

Titanfall Ejection Lever MK.2

And you're done! Have fun!

If you have any questions, let me know below!