This works well for me. I'm in the middle of replicating someone else's research for a paper, so it's fiddly, not very exciting (I expect to confirm their conclusions, +/- some error bars), and hard to remain motivated. But I tell myself "work on this one little part for 30 minutes today" and eventually if I stack enough of those parts together it'll be done.