Pinyin is a useful tool, which (teach) in China to school kids. It has proved to be a useful toolfor Chinese people to learn standard pronunciation in (they) early education. However, it is not used by westernerslike you. So how do you learn pinyin well?
The first step is to learn how (pronounce) each letter in pinyin correctly and the meaning of thetone (声调). Thenyou have to do as many exercises as you can. Turn thata game. It can be (much)interesting than you would expect. Start with single syllables (音节) and then syllable pairs. Slowlymove on to larger groups. Understand the initial (声母), final (韵母) and the tones.
But most importantly, what you need is good feedback. You'd betterhave someone that can correct your(mistake) immediately. So find a native Chinese, pronunciationis quite perfect to correct you. If you take Chinese classes, the teacher will(probable)have you do exercises in every class. Take it very seriously. If you areself-studying, try to meet native Chinese people and ask them to give you somefeedback. Thirdly, try to be self-critical and listen very carefully. Good(listen) is more than50% of it takes to pronounce correctly.