Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: Stephane80 on January 22, 2013, 10:31:51 PM

Title: Olinuxino A13 and PCF8574 - I2C IO Expander
Post by: Stephane80 on January 22, 2013, 10:31:51 PM
Hello , I have a PCF8574  I2C IO Expander like this:
http://cgi.ebay.fr/ws/eBayISAPI.dll?ViewItem&item=280844356391
from my arduino
can I use it with the Olinuxino A13
if so, on what pins?
Can I drive 5v items with it ?

thanks
Title: Re: Olinuxino A13 and PCF8574
Post by: Stephane80 on January 25, 2013, 09:30:39 PM
nobody has an idea?
I can safely test?
Or there is a risk by plugging the module supplied with 5v?
thanks
Title: Re: Olinuxino A13 and PCF8574
Post by: JohnS on January 25, 2013, 09:49:37 PM
It should be obvious to check manuals and circuit diagrams for both items as you could easily damage one or both items if you fail to do that.

If that is too hard then you should find/hire someone competent to do it for you.
Title: Re: Olinuxino A13 and PCF8574 - I2C IO Expander
Post by: Stephane80 on February 01, 2013, 11:15:13 PM
Thank you for your answer
I think I'll try anyway
I have not found anyone to test
I think anyway voltage transitan on sda / scl must be standardized (i2c)
+5 vdc should be for input / output
Title: Re: Olinuxino A13 and PCF8574 - I2C IO Expander
Post by: jeroends on February 01, 2013, 11:36:51 PM
First read the data sheet of the chip.
The chip can be powered with 3.3v but than your outputs will also be at 3.3v. If this is not a problem for you, nothing can go wrong.
If you want to power the chip at 5v you'll have to use a level convertor to convert to 3.3v i2c bus to 5v and backwards. (ex https://www.sparkfun.com/products/8745 (https://www.sparkfun.com/products/8745))
If you don't use this, your a13 chip will get 5v at it feets and will crash!!
Title: Re: Olinuxino A13 and PCF8574 - I2C IO Expander
Post by: JohnS on February 01, 2013, 11:48:39 PM
Permanent damage or complete destruction of the A13 is a risk.

Do not use 5V unless you KNOW it will be OK.
Title: Re: Olinuxino A13 and PCF8574 - I2C IO Expander
Post by: Stephane80 on February 02, 2013, 12:00:10 AM
Ok thank you
I think I had not properly understood the datasheet
I have read
QuoteDC CHARACTERISTICS
Supply
VDD supply voltage min 2.5 max 6.0 V

Input SCL; input/output SDA
VIL LOW level input voltage min -0.5V  max +0.3VDD
VIH HIGH level input voltage min 0.7VDD max VDD + 0.5V
reading quickly I understood
-0.5v / +0.3 V for sda scl :-(

I'm looking to buy a level convertor

I have to control a 5v arduino relay board  so I need 5v
thanks for your help !
Title: Re: Olinuxino A13 and PCF8574 - I2C IO Expander
Post by: JohnS on February 02, 2013, 01:16:25 AM
Look on the net, there are simple ways to do that using a transistor or some of the boards allow 3V for the input (and 5V for the relay).

John
Title: Re: Olinuxino A13 and PCF8574 - I2C IO Expander
Post by: Stephane80 on February 02, 2013, 02:20:09 PM
Thank you, I found on ebay