Page 1 of 1

gpio0 pin as input, but is value is unstable

Posted: Thu Aug 06, 2015 7:57 am
by evaxige
Hi, all
My VoCore info: OpenWrt/Linaro GCC 4.8-2014.04 r44078
I find a question make me confused about gpio0 input value, and wiring diagram as shown below.
20150806_153235副本.jpg
VoCore_1
20150806_153235副本.jpg (90.29 KiB) Viewed 6170 times


gpio0 can not connected anything, execpt short wire, but when I check gpio0 value, result is:
Screen Shot 2015-08-06 at 3.43.30 PM.png
gpio0_test
Screen Shot 2015-08-06 at 3.43.30 PM.png (38 KiB) Viewed 6170 times


@^@, who can tell me why?

Re: gpio0 pin as input, but is value is unstable

Posted: Thu Aug 06, 2015 12:53 pm
by Vonger
I think maybe you have to add one pull-up resistor if you want to use gpio as input.

Re: gpio0 pin as input, but is value is unstable

Posted: Fri Aug 07, 2015 2:40 am
by evaxige
Thanks Vonger, as you said add one pull-down resistor, active-hign, works well.

20150807_101915.jpg
VoCore_Sensor
20150807_101915.jpg (106.26 KiB) Viewed 6151 times

Re: gpio0 pin as input, but is value is unstable

Posted: Sun Aug 09, 2015 5:15 am
by Vonger
Looks good :)