gpio confidence test - Raspberry Pi Forums


i have written script uses pigpio library , sort of automates confidence test of gpios.

script should run nothing connected gpios.

each (user) gpio tested follows.

1) current mode , level read.
2) gpio set output , checked see if can written high , low.
3) gpio set input , checked see if internal pull-ups/downs can pull gpio high , low. pull-down test skipped i2c gpios have more powerful external pull-ups.
4) original mode , level restored. internal pull-ups switched off.

script ends giving test summary.

i've tested using rev.1 board.

code: select all

soft ~ $ /code/gpiotest program checks pi's (user) gpios.  program reads , writes gpios.  make sure nothing connected gpios during test.  program uses pigpio daemon must running.  start daemon use command sudo pigpiod.  press enter key continue or ctrl-c abort...  testing... skipped non-user gpios: 2 3 5 6 12 13 16 19 20 26 27 28 29 30 31  tested user gpios: 0 1 4 7 8 9 10 11 14 15 17 18 21 22 23 24 25  failed user gpios: none 
http://abyz.co.uk/rpi/pigpio/code/gpiotest.zip
http://youtu.be/scjflkwaxho

thank :)

conncted b+ hd44780 lcd via breadboard, lcd test. since jumper wires using have rather narrow pins - therefore looser connection - used 4 of them in parallel redundancy ensure r/w pin on lcd grounded... don't want 5v going gpio, eh :p

used utility afterwards test gpio, , :d

thank you, god bless :)

matt.


raspberrypi



Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62