User avatar
Shastarocks
Posts: 5
Joined: Fri Aug 26, 2016 11:27 pm
Location: Fort Worth

Ground GPIO off?

Thu Jan 26, 2017 2:24 am

I lately took apart a old vcr that didn't work and salvaged the LCD display, and it fits perfectly into the breadboard. The problem is I need to flash it very quickly to display something. In order to do that I will need to turn off the ground GPIO pens to put letters or numbers.
The image shows where the found pins are and how you use each pin to display each text block. If I want to display more then one block, I have to rapidly switch from one of the negative pins and and a few positive, to another negative and a few positive.. all I need is part of a python script to turn on and off the ground pins. Like GPIO.setup ([ground pins #],GPIO.out and GPIO.output([ground#],True)

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Ground GPIO off?

Thu Jan 26, 2017 7:02 am

The pins designated as Ground on the 40-way header of an RPi are not controlled by the gpio circuitry of the RPi and cannot be manipulated under program control. The Ground pins are always Ground.

pcmanbob
Posts: 9464
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Ground GPIO off?

Thu Jan 26, 2017 9:49 pm

Hi.

If you want to switch Ground you can use a ULN2803A Darlington Transistor Array. :- http://www.ti.com/lit/ds/symlink/uln2803a.pdf
Each chip has 8 channels, that you can drive directly from the GPIO pins, only the logic is reversed , so a high input will give you a ground on the corresponding output, but that should not be a problem its a simple matter to code it that way.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Return to “Python”