There are a lot of ways to come up with a project idea - Take inspiration from other projects, try something new, ask friends for suggestions, brainstorm, etc. The best way is to combine everything and rule out the best one to work on.
1. Get Ideas From Your Field Of Interest
This is one of the best ways to select a project to work on. When you are working on something that interests you, you will enjoy building it and also try to learn different things to complete it on your own. For example, if you like photography then you might build a website where you can share, edit and download photos.
2. Take Inspiration From Google
Now that you have selected the area to work on, look for related projects on google to work on. Look at other people's projects and ideas and try to take inspiration from those projects to build your own unique project. Taking inspiration from google also means you might come up with an incredible idea by yourself from those inspirations combined which in turn would make your project more interesting.
3. Ask for Others' Review
Now that you have some projects to work on, ask for others' input. Ask them what features they would like to have in your project, Any updates that need to be done, and whether they would use it after its completion. Asking for others' reviews is one of the important steps which would enable you to make your project more user-focused.