Add rapid fire to Daemonbite pro micro

for all subjects/topics not covered by the other forum categories
Post Reply
User avatar
msknight
Posts: 1031
Joined: Fri Apr 15, 2011 12:07 pm
Location: Sussex, UK
Contact:

Add rapid fire to Daemonbite pro micro

Post by msknight »

I'm going to show my complete noviceness here.

I have a joystick I built using a pro micro and Daemonbite's free software. Here's the overview -
https://github.com/MickGyver/DaemonBite-Arcade-Encoder

To "fire" a button, I'm connecting the pin to the ground. So far so good.

Now I want to convert it to quick fire using a 555 as per this...
https://www.instructables.com/Add-a-rap ... ng-a-555-/

Initially, I thought, "Ok, I simply wire the "To Mouse" to the pin I want to fire on.

Then I thought... hang on... if I fire a button by connecting the pin to ground, then it surely can't be that the promicro is detecting by receiving a voltage on that pin... because I'm connecting it to ground... so that must mean that the pin is generating the 5v... and if so, then how is it detecting that I've, "fired," it... and what does that mean for me wiring in the autofire 555 circuit?

I'd be grateful for insight into how this is working please, as I clearly need to learn about this.
All that I've learned - https://msknight.com/bbc
julie_m
Posts: 587
Joined: Wed Jul 24, 2019 9:53 pm
Location: Derby, UK
Contact:

Re: Add rapid fire to Daemonbite pro micro

Post by julie_m »

The "fire" input is ordinarily connected to +5V via a "pull-up" resistor (which probably is inside the microcontroller), so it reads logic high (1).

When the input is connected to 0V, either by the "fire" switch or the output switching transistor in the 555 timer, it will read logic low (0).

The pull-up resistor limits the amount of current flowing to ground.
User avatar
msknight
Posts: 1031
Joined: Fri Apr 15, 2011 12:07 pm
Location: Sussex, UK
Contact:

Re: Add rapid fire to Daemonbite pro micro

Post by msknight »

So if I read that correctly, what I need to do is use the pulse output of the 555 timer, to operate an electronic switch which will connect the Pro Micro pin to ground when there is current coming out of the 555 ?
All that I've learned - https://msknight.com/bbc
User avatar
msknight
Posts: 1031
Joined: Fri Apr 15, 2011 12:07 pm
Location: Sussex, UK
Contact:

Re: Add rapid fire to Daemonbite pro micro

Post by msknight »

Or should I be looking at doing this some other way than trying to adapt that 555 circuit?
All that I've learned - https://msknight.com/bbc
julie_m
Posts: 587
Joined: Wed Jul 24, 2019 9:53 pm
Location: Derby, UK
Contact:

Re: Add rapid fire to Daemonbite pro micro

Post by julie_m »

Pin 7 of the 555 is an open collector NPN transistor (or an open-drain N-channel MOSFET, in the low-power 7555 version) which is used to discharge the timing capacitor. So you could try connecting a diode with the cathode (business end) to pin 7 of the 555, and the anode to the side of the fire button that would originally have gone to ground. This ought to pull it low enough to read as a logic 0 when the button is pressed.

Alternatively, if there is room in the Pro Micro and you are comfortable with writing Arduino code, you could use a software timing loop to pulse the "fire" input.
User avatar
msknight
Posts: 1031
Joined: Fri Apr 15, 2011 12:07 pm
Location: Sussex, UK
Contact:

Re: Add rapid fire to Daemonbite pro micro

Post by msknight »

Many thanks. I'll give that a try.
All that I've learned - https://msknight.com/bbc
Post Reply

Return to “off-topic”