Raspberry Pi L298N motor controller
From wikiluntti
Introduction
RPi is powered by 5V, but on board it is reduced to GPIO 3.3V (GPIOs) and processors and memory (1.8V).
If needed to connect a 5V sensor to Pi, first reduce the 5V to 3.3V by using eg 2 resistors as voltage divider.
However, note that in the digital line the 1 bit is at __V.