A battle with TB inspired his smart medicine dispenser, now it’s won Africa’s top engineering prize