From 7ab34732e1ebf6f708b8842f5cf696a4afe66d0a Mon Sep 17 00:00:00 2001 From: jbruce Date: Mon, 3 Dec 2018 10:33:58 -0500 Subject: [PATCH] - more fixing troubleshooting doc --- troubleshooting.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/troubleshooting.md b/troubleshooting.md index 4bdae29..5499c14 100644 --- a/troubleshooting.md +++ b/troubleshooting.md @@ -26,6 +26,8 @@ still worked as expected. Here's what I did to verify GPIO on my pi. ```gpio readall``` +and you'll get output that looks something like this... + ``` +-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+ | BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM | @@ -55,24 +57,24 @@ still worked as expected. Here's what I did to verify GPIO on my pi. +-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+ ``` - make sure the mode for all GPIO pins you want to test have a Mode of IN if not, set the mode for each.. -# set BCM pin 4 as an input -gpio -g mode 4 input +set BCM pin 4 as an input +```gpio -g mode 4 input``` -# verify it got set correctly using -gpio readall +verify it got set correctly using +```gpio readall``` -# enable pull-down resistor for pin 4 to make sure V stays -# zero when nothing is connected to the input -gpio -g mode 4 down +enable pull-down resistor for pin 4 to make sure V stays zero when nothing is connected to the input +```gpio -g mode 4 down``` +This will show you the output of gpio readall every 2 seconds. This way you can concentrate on +moving a wire to each gpio pin and then look up to verify V has changed as you expect without +having to type. +'''watch gpio readall''' -watch gpio readall - connect a 3V3 pin in series to a 1k ohm resistor connect the other end of the resistor to each gpio pin when it is connected V should be 1