Also, define milestones for your project. If you have a big project then you should use them to feel that you're doing some progress. I shouldn't recommend long breaks. Probably, you will forgot what you're doing or your goals and then you'll lose interest on the project.