You nailed it. As an example, recently I got back into music, started playing with a band, and then it hit me - there is an opportunity to make some iPad apps to help when on stage and in the practice studio.
You can spend your life as an engineer always looking for other people's problems to solve, and always running out of motivation. When you have your own problem to solve, out of necessity or convenience, the motivation is there by default.