Several embodiments of a Nitric Oxide Inhaler that uses an electrical spark to produce Nitric Oxide from Air, optimized to maximize the production of Nitric Oxide and minimize the production of Nitrogen Dioxide through hardware and control system. Further disclosed is a system to control such inhalers.