Equipment = the necessary items for a particular purpose
Device = a thing made or adapted for a particular purpose
Several types of heavy equipment are needed to build an airport runway, but only one device is used to paint the surface once it has been finished.