Alright, it's story time:
I wanted my ammo counter to have dual functionality: count down continuously when the trigger is pulled („display function“), but also count down with each shot when I use the GBBR („airsoft function“). The solution: I programmed my counter to show the display function when the bolt is closed and the trigger is pulled, and the airsoft function when I pull the bolt back first and then pull the trigger.
More on that and my counter later.
Here‘s the problem: there‘s very little space inside the rifle, and I needed a way to electronically check if the bolt was closed or pulled back (this switch is also needed to count down with each actual shot when in airsoft mode, i.e. every time the bolt slams forward). But where?
Behind the bolt? Possible, but you’d need to run cables next to the bolt all the way back. Also, I don‘t know if the bolt really goes back all the way to hit the switch there, especially when the gas in the magazine is low.
In front of the bolt? Not if I want it to function properly.
But wait, there‘s a steel part just where the bolt sits in its closed position. This is a separate part held in place by screws on my full steel kit, not sure if it‘s molded into the upper receiver on the original WE part:
Attachment:
Corner.png [ 182.62 KiB | Viewed 1894 times ]
Now here’s what I want to show off: I recreated the part in Fusion 360, added a recess and a „cable channel“, and had it machined in steel:
Attachment:
IMG_5439.jpg [ 763.58 KiB | Viewed 1894 times ]
Attachment:
IMG_5441.jpg [ 803.08 KiB | Viewed 1894 times ]
Then I designed a „mini PCB“ with the smallest switch I could find and ordered it with pre-installed switch online. I then glued it into the recess after soldering the cables onto the PCB. I used my magnifying lamp and had a couple of beers to „steady“ my hands.

Even the glueing was a pain.
Attachment:
IMG_5442.jpg [ 673.84 KiB | Viewed 1894 times ]
Attachment:
IMG_5443.jpg [ 637.5 KiB | Viewed 1894 times ]
You can‘t appreciate how crazy small all this is until you hold the mini switch in your hand… err, I mean… fingernail?
Attachment:
IMG_5515.jpg [ 580.5 KiB | Viewed 1894 times ]
Attachment:
IMG_5516.jpg [ 750 KiB | Viewed 1894 times ]
This is the final product:
Attachment:
IMG_6019.jpg [ 765.17 KiB | Viewed 1894 times ]
Installed in the Pulse Rifle:
Attachment:
IMG_6020.jpg [ 756.43 KiB | Viewed 1894 times ]
I'll have to adjust the "bounce" settings in the code, since the impact of the bolt sometimes causes the switch to count down twice, but that should hopefully solve that.
More updates coming soon! Next the shrouds will be painted, and then all the electronics will be put in place.
Cheers!
Roman