Calculate the perfect shutter speed using the 500 rule to avoid star trails
About the 500 Rule
The 500 rule helps astrophotographers determine the longest shutter speed they can use before stars begin to show trailing due to Earth's rotation. Simply divide 500 by your effective focal length (focal length × crop factor) to get the maximum shutter speed in seconds.