Introduction: Rapid Fire Mouse

You ever wanted a rapid fire mouse? Well me either but a lot of gamers do.
When the red button is pressed on the side of the mouse it simultaneously grounds both the left and right mouse buttons at 50 times a second.
Just as if you could press both buttons at the same time 50 times a second, which you could not do. 

This Instructable screams out for a video, but don't have. For now.

The original post of the Rapid fire mouse. 

Step 1: Schematic

I tried making this circuit with out transistors, Didn't work. So now we use transistors.
There is only 3 pins used plus VCC and GND.
Power and ground is taken right off of the USB connections at the mouse.
All three pins use a 1 meg pull down resistor. 

PB2 is left mouse button. Pin 7
PB3 is right mouse button. Pin 2 
PB4 is trigger button input. Pin 3
Pin 8 is ground.
Pin 4 in +5V.


Step 2: Parts

Minimal parts are used.

1) ATtiny85
1) 8 pin IC socket.
1) Small piece of proto board.
1) Push button, NO
2) 2N2222 Transistors, EBC
3) 1 meg resistors
 

Step 3: Assembly

Step 4: Push Button

Prepare the case. Drill a 9/32 hole for the push button.

Step 5: Code

 

Load this code with your favorite AVR programmer. I use WINAVR.
I have included the main.c and the make files in the rar download.
I used this Instructable to aid in programming. 


#define F_CPU 1000000UL // frequency (20MHz)
#include <avr/io.h>
#include <util/delay.h>



void on(){
        PORTB |= 1 << PB3; //led
        PORTB |= 1 << PB2; //heater
        }
void off(){
        PORTB &= ~( 1 << PB3 );//led
        PORTB &= ~( 1 << PB2 );//heater
        }


void main() {
        DDRB |= (1<<PB3)|(1<<PB2);
        int ticks;

        for (;;) { //FOREVER
                while ((PINB & _BV(PB4))==0) {} // NOT PRESSED, DO NOTHING
                for(ticks=0;ticks<125;ticks++) // CLICK FOR 5 seconds
                        {
                        on();_delay_ms(20);off();_delay_ms(20);
                        } // CLICK TAKES 1/50'th second
        }
}

Comments

author
dan3008 (author)2014-04-21

In the process of making one of these with my favourite keyboard shortcuts (in photoshop) :D

Will post back when its done :D

author
short stack (author)2013-08-07

sorry im a bit of a noob but what does VCC stand for

author
WWC (author)short stack2013-08-07

Simply copy and past this. 

http://lmgtfy.com/?q=+VCC+Electronics

author
short stack (author)2013-08-07

and can u pls put up some clearer pics

author
iceng (author)2013-05-30

Welcome to forever orange.

Nice gaming ible too.

author
WWC (author)iceng2013-05-30

I have been chasing you for it.
Most of my photo captions didn't show up. I will have to re caption 14 pics.

Thanks

About This Instructable

3,481views

16favorites

License:

Bio: Why would i buy something ready made when i can make it myself with half the features for twice the money? DIY!
More by WWC:3D Pinted Spool ReelHard Drive Tachometer for a Desktop Computer4093 Schmidt Trigger / Fan Speed Regulation
Add instructable to: