Welcome, Guest
Username: Password: Remember me

TOPIC: Testing GPIO pins on rpi

Testing GPIO pins on rpi 4 weeks 2 days ago #1807

  • swaraj
  • swaraj's Avatar
  • OFFLINE
  • New Member
  • Posts: 3
  • Thank you received: 1
  • Karma: 1
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!
The administrator has disabled public write access.

Testing GPIO pins on rpi 4 weeks 1 day ago #1809

  • Ray
  • Ray's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 621
  • Thank you received: 138
  • Karma: 38
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?
Last Edit: 4 weeks 1 day ago by Ray.
The administrator has disabled public write access.

Testing GPIO pins on rpi 4 weeks 1 day ago #1810

  • swaraj
  • swaraj's Avatar
  • OFFLINE
  • New Member
  • Posts: 3
  • Thank you received: 1
  • Karma: 1
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.
The administrator has disabled public write access.

Testing GPIO pins on rpi 3 weeks 6 days ago #1812

  • Ray
  • Ray's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 621
  • Thank you received: 138
  • Karma: 38
Ok, I get it, Have a look at the image below:
Pedal-Pi-Layout.png

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.
The administrator has disabled public write access.

Testing GPIO pins on rpi 3 weeks 6 days ago #1813

  • swaraj
  • swaraj's Avatar
  • OFFLINE
  • New Member
  • Posts: 3
  • Thank you received: 1
  • Karma: 1
Ah, thank you! I'll try those out and get back to you!
The administrator has disabled public write access.
The following user(s) said Thank You: Ray
Time to create page: 0.103 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio