Using I/O pins


Author Message
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1694
Posted: 11:29pm 11 Dec 2019      

Sorry, ignore the bent pin idea. I didn't note that you had tried other pins.

If you are grounding the pin with your sensor and still reading a logic '1' on the pin, it could be that the 'ground' you are using is elevated above the true 0 volts. Maybe the sensor is drawing a lot of current through the ground? Have you disconnected the sensor and tried shorting to ground with a piece of wire or a clip lead. You may need to use a different ground point.

As others have said, check the logic '0' input when using the sensor with a meter - it should be less than 0.65v

Bill
Keep safe. Live long and prosper.