You should plan to spend about 40$ each a day throughout the trip. Camping and camping vans can be rented at least in Brazil, not sure about Peru and this cheapen the expenses.
Check here to see some options.
http://destinia.com/guide/the-world/south-america/
brazil/1-30008-30040/10/en
I would try to plan the trip with a copy of the lonely planet (last edition as much is changing) and start by thinking what you want to see and build the trip around these places.