It's not about staying disciplined, so more as picking appropriately-sized projects.
I tend to be over-ambitious, and never fully finish large projects. The only ones I'm able to finish are ones that last between 3 weeks - 1.5 months. Any longer and I usually fizzle out with no energy or motivation left.