Forum Members section DIY Ferduino controller PCF8574 to expand output

PCF8574 to expand output

Ask here about your controller made with pieces purchased in other shops.

Post Number:#1 Post Sat Sep 20, 2014 12:05 pm
Posts: 19
Topics: 5
Solve rating: 0
Joined: Mon Aug 18, 2014 5:04 pm
Topics: 5
Age: 32
Gender: Male
National Flag:
Italy
Hi!
I'm working on a compact aquarium controller with Ferduino software. I've made a board with 8 solid state relay (Triac BTA12 and MOC3043M) all controlled by a PCF8574.
Can I use this expander with Ferduino to replace PCF8575 (with all the changes that are needed)?
Can you suggest me the best way to change it? With PCF8574 outputs I'll control the heater, the chiller and some other things with the timers integrated in the software.
Also can I use the same I2C bus (SDA pin 20 - SCL pin 21)for both DS1307 RTC and PCF8574?

Thank you very much
Simone

Post Number:#2 Post Sat Sep 20, 2014 12:42 pm
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

Can I use this expander with Ferduino to replace PCF8575 (with all the changes that are needed)?
Can you suggest me the best way to change it? With PCF8574 outputs I'll control the heater, the chiller and some other things with the timers integrated in the software.


Yes, use this library.

Look to this examples:

https://github.com/skywodd/pcf8574_ardu ... nBlink.ino

viewtopic.php?p=346#p346

Also can I use the same I2C bus (SDA pin 20 - SCL pin 21)for both DS1307 RTC and PCF8574?


Maybe you can find some answers using the search.

http://ferduino.com/forum/viewtopic.php ... c+i2c#p143

http://ferduino.com/forum/viewtopic.php ... c+i2c#p516

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#3 Post Mon Mar 02, 2015 9:01 am
Posts: 19
Topics: 5
Solve rating: 0
Joined: Mon Aug 18, 2014 5:04 pm
Topics: 5
Age: 32
Gender: Male
National Flag:
Italy
Hi,
thank you very much for your answer!
I'm trying the library that you've suggested me; How can I change the pin where I'll connect the expander? maybe I'll connect the PCF8574 to the pin 18 - 19
Thank you very much again
Simone

Post Number:#4 Post Mon Mar 02, 2015 9:22 am
Posts: 1699
Topics: 38
Images: 301
Solve rating: 233
Joined: Mon Mar 03, 2014 5:59 pm
Topics: 38
Age: 39
Location: São Paulo
Gender: Male
National Flag:
Brazil

Hi!

This is impossible. Use pins 20 and 21.

Best regards.
Post your doubts on forum because it can help another user too. Just PM me for support if it's absolutely necessary.

Post Number:#5 Post Mon Mar 02, 2015 4:28 pm
Posts: 19
Topics: 5
Solve rating: 0
Joined: Mon Aug 18, 2014 5:04 pm
Topics: 5
Age: 32
Gender: Male
National Flag:
Italy
Hi,
So, how can I move (directly inside of the library if it is possible) the pin of the RTC?
P.S. I'm also having some problems with the example code of the PCF8574 library; I can't compile it with the arduino IDE...




Return to DIY Ferduino controller





Who is online

Users viewing this topic: No registered users and 1 guest