From microscopic dynamics to kinetic equations