.1 GPIO Input
GPIO peripherals vary quite widely. In some cases, they are very simple, a group of pins that can be switched as a group to either input or output. The input and output voltages are typically, though not universally limited to the supply voltage of the device with the GPIOs on, and may be damaged by greater voltages.Some GPIOs have 5 V tolerant inputs: even on low supply voltages, the device can accept 5V without damage.
For Raspberry Pi, we present an examples of how to adapt the voltage level of a 5V sensor measure to prevent possible damage.
Components for this examples and voltage adaptation circuit can be founded in the Starter Kit for Raspberry Pi (A/V Edition)
When a GPIO pin is set as an input with a basic push button example, we can have these voltages incompatibility problems.
Vgpio = 5V·(10K/(10K+5K)) = 3.3V
ไม่มีความคิดเห็น:
แสดงความคิดเห็น