I'm trying to use an infrared sensor connected to the YwRobot as power supply but I'm getting always 1's when reading the sensor.
And when I connect the ground and 5v pins direct on raspi it works correctly.
What m'I doing wrong? =(
Thank you!
The test code:
Code: Select all
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
PINO = 12
GPIO.setup(PINO, GPIO.IN, pull_up_down=GPIO.PUD_UP)
while True:
print GPIO.input(PINO)
time.sleep(0.1)


