Yes, it's electric. There was no resistor supplied, but I used an 18 AWG(oversized) wire to prevent any possible drop.