Arduino code that controls a series of relays and LED photo-gates to fire ferromagnetic projectiles using coils