I am designing the Vishay VCNL4010 proximity sensor into one of my PCBs. This sensor has an interrupt pin that I don't need to use. Is it OK to just leave this pin floating ("unconnected"), or will this cause problems somehow?

  • 1
    \$\begingroup\$ Yeah, normally an unused input should be grounded, while an unused output may need to be loaded appropriately (eg, with a pull-up resistor). Depends on the sort of technology used. \$\endgroup\$
    – Hot Licks
    Oct 28, 2014 at 20:57

3 Answers 3


Normally I'd say it won't be a problem: it's an output pin, so it won't be floating as the device itself will drive it.

However, if we look at the datasheet, page 5, first note:

The interrupt pin is an open drain output. The needed pull-up resistor may be connected to the same supply voltage as the application controller and the pull-up resistors at SDA/SCL. Proposed value R2 [a pull-up for the INT pin] should be >1 kΩ , e.g. 10 kΩ to 100 kΩ.
Proposed value for R3 and R4, e.g. 2.2 kΩ to 4.7 kΩ, depend also on the I2C bus speed. For detailed description about set-up and use of the interrupt as well as more application related information see AN: “Designing VCNL3020 into an Application”.

If we look at this application note, Designing VCNL3020 into an Application, page 2:

The SCL and SDA as well as the interrupt lines need pull-up resistors.

I suppose that this is only needed when this line is actually used. However, it's always good to follow the datasheet, and that extra resistor will still fit in your circuit, hopefully. So I'd recommend you to use a pull-up resistor between 10kOhm and 100kOhm (as suggested in the datasheet excerpt) to the input voltage.

  • 2
    \$\begingroup\$ I'll add the pull-up resistor just in case. \$\endgroup\$ Oct 28, 2014 at 21:02

Well depends...

Input pins should NEVER be left floating else your circuit will do unpredictable things. Output pin are OK to left unconnected. They will not be "floating" because they are driven to some voltage by them self.

In your case the "interrupt" pin can be left floating as it is an output pin. This pin in an open-collector, which is a output of special kind (that can be connected to other open-collector output) but can be left unconnected.

  • 1
    \$\begingroup\$ +1 Some inputs have a pullup or pulldown internally, and that information will be in the datasheet. Sometime the input is even 3-state (ground/Vdd/open) to select one of three options. \$\endgroup\$ Oct 28, 2014 at 12:56
  • \$\begingroup\$ Some pins have one or more "floating" modes that are neither input nor output; in most such cases, there's nothing wrong with having pins which are floating during the time that they're not configured as inputs. For example, an external switch to ground which a battery-powered device needs to be read once per second might be set to "floating" most of the time, but occasionally have a pull-up switched on, then set to "input", read, then get set back to "floating" and have its pull-up disabled. \$\endgroup\$
    – supercat
    Oct 28, 2014 at 20:13

Unused pins are usually ignored. They may be floating or unpredictable, but your circuit isn't using the pin anyway. The floating value will never be read. An example is the unused pins on the GPIO of a Raspberry Pi computer.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.