The sound depends on the final sound of the base verb.
/ɪd/
After /t/ or /d/: wanted, needed.
/t/
After voiceless sounds such as /p/, /k/, /f/, /s/, /ʃ/, /tʃ/: stopped, looked, washed.
/d/
After other sounds: played, lived, called.
Practise the sounds on the IPA chart.