Yes you can travel solo to Hampi. you will get autos or car on rent which takes Rs800-1200 per day to take you to nearby places a day. You have to reach hospet railway station where you get lots of stays, restaurants and transport options.
To know more, please visit my profile where I have made a 2days itinerary and will be happy to help you if you want any more infos. Do let me know about how you enjoyed in Hampi.