Skip to main content
Bumped by Community user
Bumped by Community user
added 244 characters in body
Source Link

When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.

This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason? Is it cable?

Edit: I changed side of the cable and added some pictures. Still same. I also tried with PUD_DOWN. This time it is stable 0 but I have no movement input what so ever.

Second edit: Okay, My breadboard has two seperate part on power and ground lines. As you can see from picture I am trying to get ground and power from other side which is not connected to raspberry pi :) So problem solved thanks everybody.

[![enter image description here][1]][1]

enter image description here

enter image description here

When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.

This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason? Is it cable?

Edit: I changed side of the cable and added some pictures. Still same. I also tried with PUD_DOWN. This time it is stable 0 but I have no movement input what so ever.

[![enter image description here][1]][1]

enter image description here

enter image description here

When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.

This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason? Is it cable?

Edit: I changed side of the cable and added some pictures. Still same. I also tried with PUD_DOWN. This time it is stable 0 but I have no movement input what so ever.

Second edit: Okay, My breadboard has two seperate part on power and ground lines. As you can see from picture I am trying to get ground and power from other side which is not connected to raspberry pi :) So problem solved thanks everybody.

[![enter image description here][1]][1]

enter image description here

enter image description here

added 399 characters in body
Source Link

When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.

This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason? Is it cable?

Edit: I changed side of the cable and added some pictures. Still same. I also tried with PUD_DOWN. This time it is stable 0 but I have no movement input what so ever.

[![enter image description here][1]][1]

enter image description here

enter image description here

When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.

This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason? Is it cable?

When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.

This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason? Is it cable?

Edit: I changed side of the cable and added some pictures. Still same. I also tried with PUD_DOWN. This time it is stable 0 but I have no movement input what so ever.

[![enter image description here][1]][1]

enter image description here

enter image description here

deleted 28 characters in body; edited title
Source Link
Steve Robillard
  • 34.9k
  • 18
  • 104
  • 109

Gpio GPIO pin input goes high and low continuously

When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.

This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason  ? Is it cable  ? Can you help me? Thanks.

Gpio pin input goes high and low continuously

When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.

This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason  ? Is it cable  ? Can you help me? Thanks.

GPIO pin input goes high and low continuously

When I set GPIO pin for input and read the value, I get high and low continuously. Doesn't matter which pin I set. I couldn't even light a led yet.

This is happening when I connect 40 pin ribbon connector cable. Everything turns normal when I don't connect it. What is the reason? Is it cable?

Source Link
Loading