So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By schufti
#80913 the 1k goes between gpio and Vcc.
the base resistor has to be higher so the potential at gpio is higher than 1/2 of Vcc, so theoretically even 1k could be ok as the base itself pulls the level up ~0.7V. So its up to you to find your optimum value.