Tuesday 29 November 2011

Airsoft Thermostat - Design

Background

As a user of gas blow-back replicas, many skirmishers know the annoyances of cool-down due gas expansion within the magazines.
If not, here's a quick explanation. The way a gas blowback mechanism works, is by taking a liquid propellant, typically stored in the magazine, and boiling it to convert it to a gas, to be used as a propellant and fire the bb. This boiling process is triggered by a pressure change, due to a hammer knocking a valve and releasing some of the gas.
Now the boiling process needs to get its energy from somewhere, and that is the surrounding heat. This is the very cause of cooldown. As things cool down, the internal pressure drops, gas usage increases and this leads to poor efficiency, lower power and much more gas being kicked out and wasted.
There are of course 3 ways to deal with this:
  1. Don't fire. No pressure change, no trigger, no cool-down and usually results in you either cowering a corner somewhere or being shot in the face several times.
  2. Build the pistol with enough tolerance to still function reasonably well with the effects of cool-down. This is down to the build material (e.g. plastic frames and light slides/bolts on pistols and rifles are poor conductors of heat and thus raise efficiency) however this is not possible on all replicas for various reasons.
  3. Add a control system to help battle the cooldown and keep the magazine and internal workings of the pistol at a constant temperature.
This project is mainly inspired by me being both as unsatisfied as I was experienced with methods 1 and 2, and is a good way for me to (finally) put my degree to use.

Specifications and Requirements

My plan is to design a small, scalable system, which will have the following features:
  • Powered by Lipo batteries due to their compact size, range of form factors and light weight
  • Include a built in charger and reliable under-voltage protection.
  • Automatically turn off at an adjustable temperature cutoff
  • accept additional external power sources.
  • Be applicable to pistol grips, GBBR bodies/mag-wells, magazine pouches and holsters
  • Be as energy efficient as possible
Simply put, the goal is to create a completely stand-alone thermostat-come-heater-come-lipo-charger design and stick it everywhere, where there is gas nearby.
The complexity comes with me setting the rather ambitious goal of using a Detonics replica as the pistol to house this within. It is one of the smallest pistols on the market. If I can fit this in here, it proves that it is possible pretty much anywhere. It also, like most 1911-based replicas, has a really convenient little window between the mags and the grips to attach the heating element into... but that's getting ahead of things

Elements of this device

Here is the most up to date design of the unit and below I will walk you through, from left to right, the aspects of this build

The charger

Thankfully this bit is quite easy. Thanks to mobile phones and cameras and pretty much all modern electronics having switched to li-ons, the chargers are common and cheap. Only hard bit was picking one! And I picked the MCP73831T, as it's common, cheap, easy to customise and better still, is available in loads of electronics libraries, even including Upverter. Yay!

The protection

As mentioned before, this is tricky. I have gone through several different designs for this, discarding them one by one for being too complex, too expensive or just too.. awkward. I think I have settled with a method which employs a very low reference voltage set by a 2.something Zener diode. Using the remaining 3 pins on our LM393 comparator, we compare it to the voltage of the cell, voltage-divided down to be at the same value as the zener at 3.3v. Nifty, eh? Well, not yet.
It has the potential to start vibrating on and off when the power gets low, as activating a power drain drops the voltage of a battery slightly, so we will need to add a bit of hysteresis into the mix to stop this happening. How much? Don't know yet, but enough to stop that happening.

The power source

For this project, the chosen power source is a 1s?p, 3.7v Lithium Polymer cell. Lipo's, as a power source are almost in every way superior to your typical NiMh/NiCad etc. cells. They are small, powerful and come in a load of different sizes. Great, right? As always, with great power comes with great responsibility, as this post explains in gory details. In short, they need to be charged safely, not allowed to go above 4.2v or below 3v. Fail to do any of those there and they have a chance of exploding in a rather impressive ball of fire and poisonous gas. And this thing will be pressed up against your hand.
Finding a way to tame this cell is the reason why I have struggled with this project and all the existing items are, shall we say, inadequate to put it lightly. 2.7v cutoff points are completely unacceptable. I expect to be able to use this over and over and over, not simply 'prevent an explosion'...

The heat control unit itself

The control circuit itself must serve one function: To flick the heater on when the mag is cold and off when it's hot. This can all be done electrically with an NTC Thermistor as one half of a potential divider circuit and a trim-pot as the other half, to set the cutoff temperature. Compare the two resulting voltages with an LM393 comparator and you are done :)
It has been mentioned here the a comparator only kicks out a very limited amount of current, so it may be a good idea to connect it to a mosfet's gate and use it as a signal instead. Will have to see.

Aaaand Finally. The Heater itself

Almost forgot this bit! You guys are probably interested how I will make the heat itself, which is fair enough. Well, originally I bought a couple of sets of cheap usb powered hand warming gloves, and after taking them apart, unsurprisingly, the heat source is from a set of very thin wires, called resistance wire. This will bring costs down and make the shape more easily customisable.
And that is that! I will be updating this as I go along. Once the build itself begins, a new entry will be made to cover the many issues I am sure I will bump into there. Thanks for reading! Nikolay.