Tiny Little #LifeHack:
Make a playlist for every task you need to do. Homework, writing project, dish washing, whatever... give it a playlist and use it whenever you are doing the thing.
If you can't get yourself to do the thing, play the playlist. In most cases, that gets the brain to do the work.
If you hate working with music you can use smell or location to be the trigger (or both).