A 24-hour badminton challenge has raised more than £2,000 for the Tata Foundation.