Take heart

To be encouraged, to feel brave and want to try something.

I took heart from my previous failure and decided to try again.