Zeldaboy14, I'd like to help, really, but I need some information before I can. First, what simple animations have you done in Blender? Second, how many of the 578 videos on Youtube that relate to the Walschearts valve gear have you looked at already? I don't want to refer you to a tutorial you may already have viewed. Have you consulted the Wikipedia article on the Walschearts gear? The section "technical details" gives a good explanation of the various parts of the gear, and should be helpful in communicating with experienced steamers about the details of what you want to do.
Meanwhile, in one one of the other trainsim universes, a bloke by the name of Mike Adams did a Walschearts tutorial using Blender 2.49, which is downloadable. You'll have to log into the site to download, and to be honest, I didn't try to do it, so I don't know what all that entails.
Good luck.
ns