You can only perform volunteer work for up to 90 days on Brazil's visa under the visitor category. Unlike other types of employment, you will need to get a work visa in Brazil and to do that, and you must have a job contract there.