Solenoid engine is an engine which uses magnetic field created by energized solenoid to gain reciprocating motion as an output. There are many solenoid engines are available. But they all use 555IC (TimerIC) by which we can only get limited frequency for switching the solenoid coil. Our project is to use Arduino for switching the polarity of the solenoid coil.