I’ve tried the standard Minecraft one and several variations of it, but none work. The standard one below just doesn’t give the cart enough time to unload. I tried placing 3 hoppers in a row and one in a closed track circuit, but those didn’t work either.

Standard

Circuit