I am making a coil gun for my high school physics project and I am running into some issues. I am using 400 turns of 36 gauge wire wrapped around a 1.25in diameter PVC pipe to propel a 1 inch diameter steel ball. I started with a 6v battery but that didn't move the ball at all even with the help of a slight incline. Then I taped together around 40 AAA batteries together in series but that only caused the ball to roll 2 inches down the pipe and I need to launch the ball 3 meters. The next step up I am considering is just plugging the coils directly into the wall but I am not sure how the coils would work if the magnetic field were constantly switching. How would the math work out with an AC current through the solenoid and any pointers on power sources or increasing the efficiency of the coils?