oxullo / Arduino-MAX30100

Arduino library for MAX30100, integrated oximeter and heart rate sensor
GNU General Public License v3.0
192 stars 135 forks source link

Using two MAX30100 together in one Arduino #41

Closed yiank closed 6 years ago

yiank commented 6 years ago

Hello, Is it possible to use two MAX30100 together in one Arduino? If yes, how I will wire them?

oxullo commented 6 years ago

Given the fact that MAX30100 has a fixed I2C address, you can't put them in a shared bus. Either use one hardware I2C bus and connect the second unit to arbitrary pins, instantiating a software I2C (eg: https://github.com/felias-fogg/SoftI2CMaster ). Anyway this is quite pointless, since the software bus will be too slow to allow the PulseOximeter class to operate properly and anyway the average computing power for a single PulseOximeter is almost capping a 16MHz ATMega328p. Switch to a more powerful platform or simply use one micro per sensor

yiank commented 6 years ago

Thank you for your reply. So, if I use and arduino due that has 2 I2C buses, how I define witch bus each sensor will use?