Hillo everyone I am needing to have two air flow sensors for my system I have a code up and running for at least one but am not sure how to go about setting it up for two. So it needs ports for SDA and SCL. That should not be to much of an issue probably just run the wire or something. Any way I will attach my current code to this email. There is a second set of separate code that is used to get pressure readings. Any help would be great.
Okay sweet good to know :). Next question then how do you setup for two. Its been awhile since I have done any programming so not quite sure how to go about doing this. I have the code attached and have it working for one. But am not sure how to alter the code so that it will work for two. Please let me know what you can on this matter and refer to attached code for what I already have.
SCL is only from master to slave in your application.
Run SCL thru 2 gates of 74HC125 or comparable 3.3V device if needed, and only enable one gate or the other, so only one part or the other sees the clock.
Can't do the same with SDA as the slave needs to be able to drive SDA back to the master.