I am using a PCF8574 IO Expansion Board I/O Expander I2C-Bus Evaluation Development Module with the Arduino and I am able to trigger HIGH and LOW in LED light. the observation is that the LED light is very low. using multimeter:
input voltage 5v output of P0 pin is 0.23v
input voltage 3.3v output of P0 pin is 0.17v
what is the reason behind that?
my application I would like to trigger a 5v relay using this extender.
In what circuit do you measure? Do you measure HIGH or LOW?
It has "pseudobidirectional" pins - it has only two states, using Arduino terminology OUTPUT HIGH and INPUT_PULLUP. It cannot source much current, only sink.
That is strange. When P0 is HIGH the measured value is too low. For P0 LOW it is too high. Did you try it without the LED, with nothing connected to P0? What about other pins?
Not clear, I think. Your words have confused @Smajdalf.
I think what you meant to say was that
when Vcc is 5V and the P0 output is set to 1 or HIGH, and the led+330R is connected, the voltage on P0 is 0.23V.
when Vcc is 3.3V and the P0 output is set to 1 or HIGH, and the led+330R is connected, the voltage on P0 is 0.17V.
You have not attempted to measure the voltage on P0 when it is set to 0 or LOW.
These readings are as expected, as already mentioned. The pcf chip is not faulty. Driving LEDs brightly requires more current than a pcf pin can source. However, it can sink more current than it can source, so if you connect the led+330R between Vcc and P0 it should be brighter (but will be off when P0 is HIGH and on when it is LOW.
A relay module may require less current to trigger it than a led requires because it may have a transistor on-board. However, some relay modules have an opto-isolator, which will require more current, like a led (an opto-isolator contains a led). If you can wire the relay module so that sinking current from the opto-isolator triggers the relay, that will be fine.
No they are not. PCF8574 should source 100 uA. I don't recall if type of LED was mentioned but even a red LED of reasonable size and quality should have about 1.5 V forward drop at 100 uA (as well as some light output).
I have tried to remove the loads (LED+330R) and measure the voltage directly from the pin. the result is 5v. however, when I connect the load again drops and the LED as low light. to test the LED, I connect it +ve side of the LED to the 5v and it works fine