This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GPIO 3 to ground - does it harm?
#1
Hi,

I switched to a raspi 4b and op3.

The question I'm not sure about is: if a switch shortens GPIO 3 (pin 5) to ground while the raspi is running and i2c is active - does this do any harm to the system?

Background: 
1. In OP3 I can configure any free GPIO to be monitored and to trigger a shutdown to halt. Lets assume we choose GPIO 21. GPIO 3 can not be used as it is in use for I2C. Right?
2. The raspi 4b has the wake_on_gpio at GPIO 3(Pin 5) to recover from halt mode. Only GPIO 3 works for this, hard wired, not changeable.
3. If now I have one switch that drives both Pins - GPIO 3 and GPIO 21 - to ground at the same time, what happens?

While the raspi is in halt mode only the ground at GPIO 3 has an effect and makes the raspi wake up. GPIO 21 is not working in halt mode, I see no problem there.

When the raspi is up and running it might get problematic: the GPIO 21 will trigger the shutdown. But at the same time the switch brings GPIO 3 with the active I2C to ground for some milliseconds.
Does that do any harm or will that just be a strange, wrong signal for the I2C?

If it does no harm, this could be mine "one switch for power up and down" solution on board.

Looking foreward for your opions and knowledge....
_____
OP on Raspberry Pi 3+
OpenCPN tactics plugin compiled on raspbian
Step up/step down power converter
AIS and GPS over USB / Serial2USB
Speed data converted directly from Sensor to NMEA by arduino
Wind data: Davis anemometer using Pypilots weather sensor
Pypilot driving Simrad TP22 Tillerpilot

Reply
#2
Ok - looks like you folks are as clueless as I am.

So I will opt for a shutdown push button and a additional push button for GPIO 3 to ground.

Thanks anyway....
_____
OP on Raspberry Pi 3+
OpenCPN tactics plugin compiled on raspbian
Step up/step down power converter
AIS and GPS over USB / Serial2USB
Speed data converted directly from Sensor to NMEA by arduino
Wind data: Davis anemometer using Pypilots weather sensor
Pypilot driving Simrad TP22 Tillerpilot

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)