Testing GPIO pins on rpi

4 años 11 meses antes #1807 por swaraj
Hi guys. I think I've soldered everything properly with everything fixed, but when I run the pedal and test the ADC output it usually jumps up to being constantly at about 3200 unless I move the pi around to (probably) connect the gpio pins internally. Is there any way I can test from my pi if it can properly communicate with the pedal for individual gpio pins? I'm experienced in programming and linux, but don't know anything about electronics so would appreciate some help.

Thanks!

Por favor, Identificarse para unirse a la conversación.

4 años 11 meses antes - 4 años 11 meses antes #1809 por Ray
Respuesta de Ray sobre el tema Testing GPIO pins on rpi
I have deleted the other topic in the wrong forum, thanks for creating this here.

I am not sure if I am fully understanding your question. In the troubleshooting topic (www.electrosmash.com/forum/pedal-pi/205-...oot-pedal-pi?lang=en) we have a code can test code, so you can read all the individual pins:
www.electrosmash.com/forum/pedal-pi/244-...nd-adc-pedal-pi-code

Is that what you need?

Por favor, Identificarse para unirse a la conversación.

4 años 11 meses antes #1810 por swaraj
Respuesta de swaraj sobre el tema Testing GPIO pins on rpi
Thanks Ray, I tried that script out before, but it doesn't really help me isolate the problem.

Basically, when I plug my rpi into the pedal, unless I angle it (and push down on it) at a certain angle I don't get a normal reading of the adc. I was wondering if it's because I might have not properly soldered one of the gpio pins correctly (soldering n00b here) and if maybe that pin causes some bit of the value read as input to be fixed or something like that. Does that even make sense? It's for this reason that I was wondering if there was some code I could write to individually test if each of the 20 pins was properly connected to the board, but I don't really know how gpio works and don't want to accidentally kill anything by inputting to an output pin or something like that.

Por favor, Identificarse para unirse a la conversación.

4 años 11 meses antes #1812 por Ray
Respuesta de Ray sobre el tema Testing GPIO pins on rpi
Ok, I get it, Have a look at the image below:

In the "red" layer you can see 4 thin tracks gong from the ADC to the GPIO, these 4 lines are probably the ones that are giving you trouble. You can try testing continuity with a multimeter and maybe resoldering those pins. That's a normal problem so I am sure that you can fix it.
Adjuntos:

Por favor, Identificarse para unirse a la conversación.

4 años 11 meses antes #1813 por swaraj
Respuesta de swaraj sobre el tema Testing GPIO pins on rpi
Ah, thank you! I'll try those out and get back to you!
El siguiente usuario dijo gracias: Ray

Por favor, Identificarse para unirse a la conversación.

Tiempo de carga de la página: 0.089 segundos
Gracias a Foro Kunena
Joomla SEF URLs by Artio