Need Circuit help for Airsoft Project

  • Thread starter Thread starter BlackMesa
  • Start date Start date
  • Tags Tags
    Circuit Project
AI Thread Summary
A user seeks assistance in designing a circuit for an airsoft project that requires adding a fourth firing mode to a replica weapon, allowing it to fire three BBs per trigger pull. The circuit needs to output a HIGH signal for about three seconds regardless of how long the trigger is held. Suggestions include using a 555 timer, but it won't drive a motor directly, necessitating a transistor or relay to handle the motor's current. Recommendations for components include the ULN2003A for driving relays and the TIP120 for directly controlling small motors. The discussion also touches on the importance of protecting the circuit from inductive kickback and the potential use of programmable microcontrollers for more complex functionalities.
BlackMesa
Messages
5
Reaction score
0
I am posting here because someone I know needs help designing a circuit for an airsoft project. I have taken some high school electronics classes but I can't seem to wrap my brain around this one. Basically Airsoft involves replica models of weapons that fire plastic BBs in a game similar to paintball. These replicas have 3 fire modes, Safe- The gun cannot fire, Semi Auto- The gun is limited to firing one BB per trigger pull based on a mechanical restriction and Full Auto in which it fires as long as the trigger is held down. It does this by having the trigger complete a circuit which turns a small electric motor which operates the firing mechanism.

The problem is that he wants to add a 4th firing mode which will cause the gun to fire a burst of 3 BB's per one trigger pull. I can see that a circuit will be needed to cause an output to go HIGH for about 3 seconds and then go low, no matter how long the trigger is held, until it is released and repulled. The other problem is figuring out what combination of resistors and capacitors is needed to attain the desired length for the HIGH signal. Any help regarding schematics and parts would be most appreciated.
 
Engineering news on Phys.org
A 555 timer would be a simple and inexpensive way to build any timer that doesn't need to go for too long a period of time (seconds ok, minutes get sketchy). Note that it can either deliver continuous pulses or a single pulse.

You can search and find more info, here is a very informative page with example circuits.

http://www.uoguelph.ca/~antoon/gadgets/555/555.html

EDIT: This IC wouldn't deliver enough current to drive a motor (its about enough to light an LED) so you'll need to use a transistor or a relay to convert its output to one suitable to drive a motor.
 
Last edited by a moderator:
I hate to be the fly in the ointment here but I don't think a 555 will even drive a relay by itself. You probably need a darlington between the 555 output and the relay. Try getting a ULN2003A if you can. Also you have the relay going right to the 555 timer output---this is bad for most IC's because the inductive kick will destroy the 555 timer. If you forgo the darlington you at a minimim need a flyback diode to prevent hours of headache and destroyed parts. http://www.acroname.com/robotics/info/articles/drivers/drivers.html

For your resistor/capacitor values you might want to use this because I don't think you values are right:
http://www.priory.bromley.sch.uk/students/electronics/reference/555monostable.asp

You can invert the output if you need to and use that to drive the darlington.

Good luck.
 
Last edited by a moderator:
Good catch faust9 - I was thinking of one of those solid state relays. IIRC the 555 is good for like 20mA or so, but some are so fragile I've killed them on power-up at just under their max rated voltage so the vendor/batch could come into play too.

Blackmesa 2 ohm * .000002F = 4 microseconds = 1/250,000th of a second! You may want to use the calculator faust9 linked to above. :smile:

Yes, they're easy parts to find. A reasonably priced place with no minimum order is http://www.mouser.com and they have something like the ULN2003A referenced above for $0.42 so that's pretty reasonable.

If you're lucky you might find a RadioShack that is stocked with parts and has a helpful staff member, but this is highly unlikely since their strategy is no longer serving the tinkering market and instead selling high profit items like batteries and cell phones. A couple years ago I had to drive to 2 stores just to buy the last package of 2N2222 style transistors because I was trying to finish something on a Sunday, very frustrating.
 
Last edited by a moderator:
Couple more quick things:

You have the motor on the NC contact of the relay, likely want them on the NO contact.

Also you might want to swap the 5.8k resistor for a 1k and a 5k linear potentiometer so you can fine tune the timing over a much larger range of time in case 3 seconds isn't exactly correct.
 
Im still confused on a couple things. My memory of certain things is failing me :) I can't seem to find the saturation current or voltage drop form the sheets. Do you have any recomendations for either a specific low voltage relay or a specification I should ook for? Or if I use a higher voltage on the darlington, what should I use to make it work but not destroy it.
 
BlackMesa said:
Im still confused on a couple things. My memory of certain things is failing me :) I can't seem to find the saturation current or voltage drop form the sheets. Do you have any recomendations for either a specific low voltage relay or a specification I should ook for? Or if I use a higher voltage on the darlington, what should I use to make it work but not destroy it.

Here:
http://www.fairchildsemi.com/ds/2N/2N6427.pdf

Look for the spec labeled V_BE(sat) which is 0.5mA. At the saturation current the voltage V_BE is 2.0 volts. Your voltage drop across the CE junction will be about 1.5V@500mA so account for that also. If you use a 5v relay it will need 5v to operate correctly. Go to Digi-key, Jameco, or Mouser for parts if you don't have a lockal electronics shop.

We're talking about a small motor are we not? You can loose the relay all togeter and drive the motor via a TIP120. You could even use a mosfet as a switch however, mosfets are pretty sensative.
 
So for the resistor would it be 3.5v/.5A? Also should the darlington be the ULN2003A or the one you just posted the data sheet from. I don't know the motor draw but its probably around 9.6v with maybe a 1700mAh battery. I can find that out for sure though later. Would a TIP120 be able to handle something like that. Also will the output only remain high for those 3 seconds as long as the trigger is held high or can the trigger return to low yet the output will be high?
 
Not .5A, .5mA. The pdf above was for the darlington you have in the schematic. I'd use the 2003 personally. Motors don't draw voltage they draw current and the 1700mAh is how long the battery pack will last i.e. if your motor draws 1A then the battery pack would last 1.7 hours(not really though). A TIP120 can easily handle a small motor. Add a heat sink and use a 390ohm 1/4W base resistor and it should work.

I'll have to read a 555 timer data sheet before I answer your last question. I have not used a 555 in quite some time because I find PIC12F675's much more functional for only a slight increase in price. I 'think' the copnfiguration you have is non-retriggerable meaning pull the trigger and the system will do its thing for 3 seconds no matter what you do after the initial trigger pull.
 
  • #10
Im going to go with the darlington you suggested, the only reason I had a different one in the schematic is becuase Ciruit maker did not have that model. Judging from the data sheet here: http://www.st.com/stonline/books/pdf/docs/5279.pdf It looks like it is more than one darlington in one IC. Would that mean that IN 1 is the base, OUT 1 is the collector and Pin 9 is the emitter? What is the TIP120 referred to as? I can't seem to find it in Circuit Maker. PIC12F675 A PIC is one that's programable right? Is that really necessary for a project like this and if so is it hard to program? Thanks so much for your help so far.
 
  • #11
I have another question. Is it possible at all to do anything like this using a single capacitor. I know that in series it will store energy and then stop and that in parallel it will discharge the stored energy as needed but is it possible to have it store the energy and then discharge it even if the draw does not change?
 
Back
Top