Search found 11 matches

by g-knight
09 Oct 2016 19:31
Forum: Z-Uno
Topic: GPIO inputs without pullup (HiZ) problem
Replies: 12
Views: 5702

GPIO inputs without pullup (HiZ) problem

Hi, I need to use Hi impedance digital inputs. I connected the input pin through a resistor divider using 100 K / 150 K. My input before the divider varies from 0 to 4.9 V. So output is expected to be between 0 & 2.95 V. I used the following code: #define PIR_PIN 9 pinMode(PIR_PIN, INPUT); pirState ...