I am trying to make a 24V to 5V voltage translator for an arduino input. I found the following diagram online, but I have a few question about the resistor selection. So since I am using a 2N2222A NPN, I will use hfe,min=30 and Ic,max=800mA from the datasheet. This gives:
Rb1 > 30*Rc1
Rc1 + Rb2 < 30*Rc2
Rc1 < 24 / 0.8
Rc2 < 5 / 0.8
I am just curious why the designer would have used smaller base resistors than collector resistors, seems strange to me. Also, how do we know that the Vce(on) of Q1 won't cause the Q2 to turn on (would not expect Q2 to saturate, but I feel like we can't guarantee it won't turn on a little?).
Datasheet of 2n2222a : http://www.onsemi.com/pub_link/Collateral/2N2222A-D.PDF
Rb1 > 30*Rc1
Rc1 + Rb2 < 30*Rc2
Rc1 < 24 / 0.8
Rc2 < 5 / 0.8
I am just curious why the designer would have used smaller base resistors than collector resistors, seems strange to me. Also, how do we know that the Vce(on) of Q1 won't cause the Q2 to turn on (would not expect Q2 to saturate, but I feel like we can't guarantee it won't turn on a little?).

Datasheet of 2n2222a : http://www.onsemi.com/pub_link/Collateral/2N2222A-D.PDF