Go Down

Topic: 360 controller rapid fire (Read 1 time) previous topic - next topic

tinker78

Hey everyone this is my first post and i am very much a newbie when it comes to programming, im not asking for help though advice is as always welcome. I just wanted to post about my controller i modded with a arduino uno. the code i used is the very simple and easy to understand blink sketch, i adjusted the delays of course to suit my needs, high to 25 and low to 43.

Then all i had to do is open up my controller and test it out, connected pin 13 to the high side of my trigger, middle pin,,,, and the a ground wire to the trigger top pin, fired up the game and bingo. had rapid fire. since it worked like a champ i went ahead and modded the board to fit inside my controller. that was the difficult part, i removed everything it didnt need to run, even the usb port which i later added to the controller in a different spot so i can make adjustments to the code as needed.

 but since it needed 5v to run and the controller needs 3v i got rid of the battery pack and just run it off a battery operated phone charger and connected the controllers power wire to the 3.3v pin on the arduino.

 only issue i had was the program runs non stop so therefore i fired constantly which is no good at all. well i resolved that issue and just cut the pin 13 wire running to the trigger and put a button on it so it only connects to the trigger when i want it to.

i plan on taking pics soon and maybe doing a video, i know alot of people arent interested in simple things like this but i figured i would share what little i know with you all so the few who are racking their brains trying to do this can very easilly.

seadanzig

well done mate look forward to seeing the pics

tinker78

#2
Sep 24, 2016, 08:40 pm Last Edit: Sep 24, 2016, 08:47 pm by tinker78
ok here are the pics

tinker78

a couple more. going to be doing a video soon too.

seadanzig


tinker78

I have a question, im currently using this controller for call of duty black ops 2 and the guns in that game have a speed cap, in other words if you fire too fast then the gun jams usually during a fight resulting in death lol. different guns have different speeds. so what im want ing to do and wondering if there is even a way to do it is i want to have two buttons, one to speed up the blink and one to slow down the blink, each button to change the delay by only about 5ms or so. im currently doing research on it and i have been learning alot but am not quite sure where to start. im no longer using the blink code for my rapid fire, instead im using the other one, blink without delay that uses millis, probably spelled that wrong.

Go Up