The Aliens Legacy
http://forum.alienslegacy.com/

Building and Coding a working Pulse Rifle ammo counter
http://forum.alienslegacy.com/viewtopic.php?f=3&t=17337
Page 1 of 1

Author:  ClockworkJackal [ Wed Feb 07, 2018 9:55 am ]
Post subject:  Building and Coding a working Pulse Rifle ammo counter

I need help building an ammo counter for my pulse rifle, I need help with:
A) parts list of what I'll need,
B) designing working code,
it will need to meet the following criteria:
1) when the trigger is pulled counter decreases by four
2) after a switch is activated, when the trigger is held it decreases at a speed of 900/min until:
a) the trigger is released,
b) the counter is empty
3) the trigger does nothing when the counter is 00
4) when the ammo clip is removed the counter turns off
5) when the clip is put back in the counter starts at 99 then drops to 95

I really appreciate any help you can give me as I've never worked with electronics before :delta:

Author:  knoxvilles_joker [ Wed Feb 07, 2018 11:24 am ]
Post subject:  Re: Building and Coding a working Pulse Rifle ammo counter

You can modify Sean Maio's code to do what you want.

A simple physical contact switch with the clip as the connector completing the circuit should do the on/off functions you are looking for.

Unfortunately for the compact factor needed in a functional pulse rifle, the Evike unit is your best bet at the moment. It is completely done and functional.

Author:  ClockworkJackal [ Wed Feb 07, 2018 1:18 pm ]
Post subject: 

I don't need it to fire, I just need the counter to work

Author:  ClockworkJackal [ Wed Feb 07, 2018 1:38 pm ]
Post subject:  Re: Building and Coding a working Pulse Rifle ammo counter

knoxvilles_joker wrote:
You can modify Sean Maio's code to do what you want.

A simple physical contact switch with the clip as the connector completing the circuit should do the on/off functions you are looking for.

Unfortunately for the compact factor needed in a functional pulse rifle, the Evike unit is your best bet at the moment. It is completely done and functional.


can you send me a link to the code please?

Author:  Moosh89 [ Wed Feb 07, 2018 2:43 pm ]
Post subject: 

Sean Maio is "Outcry27" here on the forum, you can probably private message him directly :)

memberlist.php?mode=viewprofile&u=42

Author:  knoxvilles_joker [ Mon Feb 19, 2018 12:00 pm ]
Post subject:  Re: Building and Coding a working Pulse Rifle ammo counter

Sorry I have been busy with other things.

https://github.com/outcry27/crybabyFX

I have a post on forums on my build using his code.

Author:  knoxvilles_joker [ Mon Feb 19, 2018 12:05 pm ]
Post subject:  Re: Building and Coding a working Pulse Rifle ammo counter

viewtopic.php?f=3&t=16931

Once I get my smart gun fully built I will request my builds on that and the smart gun to be archived.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/