I've gone through bouts depression, too. Having a creative outlet should help some. I'll give you the same advice I give others.
Start small.
Start simple.
Instead of jumping into a project that you might not finish - and feel worse about yourself - do something simple and small. Break off a piece of your big project and make it into a cool little prototype. Publish that and share it with the world. You will have a sense of accomplishment and know that you can achieve more results.
For that second project, again think simple, think small. You will find that you learned better ways of programming from your first project. This second project should be a much smoother process and you will wind up with that sense of accomplishment again.