Small Electronic Valve?

So I was wondering if there was anyway I could make or buy an electronic air valve. What I need is something simmilar to a sprinkler valve only smaller and with smaller holes on each side so I could attach a relatively small air hose to it (~1/4" outer diameter). I plan on using this to replace the ball valve on my homemade nerf gun. Any help is appreciated :)