SparkFun Forums 

Where electronics enthusiasts find answers.

General project discussion / help
Did you make a robotic coffee pot which implements HTCPCP and decafs unauthorized users? Show it off here!
By Gabriele Bolamperti
#188827
Hello everyone, i am using an Arduino Mega 2560 with the sparkfun's barometric sensor BMP180 and lux sensor TSL2561, they work perfectly but i'm having a problem while i want to use both in the same sketch, infact i am asking how i have to wire them to the arduino if i have only 1 exit SDA and 1 exit SDA, the thing is that i need 2 of each, to use both sensors at once. thanks for reading this
User avatar
By Ross Robotics
#188833
i have only 1 exit SDA and 1 exit SDA
What? Please proofread before posting.

They communicate by I2C and will allow multiple devices on one bus as long as they have different addresses. What seems to be the problem? Are you having issues with the code not reading one sensor? If you think it's the code, why haven't you posted it (in code tags)?