I am designing a circuit for a PCB that will incorporate an ultra-sound sensor (HCSR04.)
The sensor needs 5V for supply and its input pin also requires 5 V. The MCU that I am using has pins that can only send 3.3 V.
I thought I could use a 3.3 V output pin and connect it to the sensor like the picture.
But now I am skeptical about it.
I think it will only send 3.3 V to the sensor pin. Should I switch the pin location so that the 3.3 V pin (PC7) is connected to the resistor instead, and place the 5V pin is where PC7 is? Or is there a better way?