You can easily take a train from Chennai to Gandikota, the expense of around 1000-1500 you have to bear. It will take you aprox 7.5 hours for the journey. Please hit upvote if you like my suggestion.
From my experience own transportation is the best way to reach gandikota from Chennai especially bike. Otherwise u can travel Chennai to Kadapa (train), Kadapa to jammalamadugu (bus), jammalamadugu to Gandikota (auto). There is a direct bus from kadapa to Gandikota (timing buses) For more Check my blog.