I am learning to play the piano and while playing pieces, I generally find that I tend to hit some notes louder than others despite me wanting to have them at the same dynamic level. How can I develop my fingers to have the dynamic independence to have all the notes exactly the same (dynamically) and only have changes when crescendos and diminuendos are required?
We're talking keyboard?
Check your posture, arm and hand positions. Do some finger independence exercises - place five fingers over five notes, play four of the notes and hold them down, play repeated notes with the remaining finger.(Yes, it's tricky with 4 and 5 isn't it! LIFT that finger! It can't come down unless it was up first!)
Then scales, arpeggios etc. You know, all the usual piano lesson stuff :-)
And a teacher would be good. Have you got one?
Generally speaking, for almost every style of piano playing (I assume you're talking about keyboard of some sort), it is ideal to have some dynamic variation between notes. It ends up sounding robotic if you play with the exact same dynamics on every note!
If you're having issues where the notes you play are way louder than others accidentally, that sounds like a technique issue you'll want to work on with the help of a qualified teacher.