I learned that a moving charge creates a magnetic field perpendicular to its direction of motion. I also learned that charged particles like electrons have spin and they also create a magnetic field because of their magnetic dipole moment. I don't understand what magnetic dipole moment is, and I can't find a decent explanation for it by using Google.
First, Can someone please explain magnetic dipole moment arising from spin in an effective way?
Second, is my main question; Does a magnetic field arise from a moving charge or from its spin, or both?
Third, I am very confused. I think I am mixing together the classical electrodynamics description of magnetic field, (moving charge), with quantum mechanics description of magnetic field, (magnetic dipole moment due to spin?)