<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to read two I2C (Having Same Address) sensors using NRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105857/how-to-read-two-i2c-having-same-address-sensors-using-nrf52840</link><description>Hi All, 
 
 I have a custom board where I have connected Two Sensors MAX86916 to the 0.26 and 0.27 pins of NRF52840. When I tried to scan it only shows one address 0x57. I want to use both sensors. 
 To counter check my setup I use NRF52840 SDK and connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 26 Nov 2023 09:31:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105857/how-to-read-two-i2c-having-same-address-sensors-using-nrf52840" /><item><title>RE: How to read two I2C (Having Same Address) sensors using NRF52840</title><link>https://devzone.nordicsemi.com/thread/457427?ContentTypeID=1</link><pubDate>Sun, 26 Nov 2023 09:31:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d69dc1b2-2e65-48e1-ac43-42d6fc77dd11</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Bad idea. These require quite a bit of bus bandwidth in order to read all the FIFO data.&lt;/p&gt;
&lt;p&gt;Use a set of pins for &lt;em&gt;each&lt;/em&gt; sensor, the NRF52840 has two TWIM uinits. That allows you to read the data in parallel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read two I2C (Having Same Address) sensors using NRF52840</title><link>https://devzone.nordicsemi.com/thread/457426?ContentTypeID=1</link><pubDate>Sun, 26 Nov 2023 08:33:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f42443e9-fb0c-4304-8ce9-24c2878bcde0</guid><dc:creator>Khalil Ahmad</dc:creator><description>&lt;p&gt;Yes, Interrupts are routed to different pins on the NRF52840.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read two I2C (Having Same Address) sensors using NRF52840</title><link>https://devzone.nordicsemi.com/thread/456981?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2023 15:06:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f817724d-6015-4ad6-9372-6161de29f05a</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="Khalil Ahmad"]My Question is... If nothing works then what happened now ?? Means to say as both sensors are connected with same address (The purpose of using two sensors to locate the vein to check the pulse... any of the sensor will find it and give the result). Its mean both sensors will send the data on single address.&amp;nbsp;[/quote]
&lt;p&gt;Could look like that. I assume that you have no way to disconnect one of the sensors from power?&lt;/p&gt;
[quote user="Khalil Ahmad"]As per the proximity enable option.&amp;nbsp;Lets assume if any of the sensor (the other will be in the idle mode) find the vein, so I will get the data ?????[/quote]
&lt;p&gt;Are the sensors interrupts routed to different pins on the nRF?&lt;/p&gt;
[quote user="Khalil Ahmad"]&amp;nbsp;Lets assume if any of the sensor (the other will be in the idle mode) find the vein, so I will get the data ?????[/quote]
&lt;p&gt;Well, if I2C wakes up the sensor as well, this will not work. I struggle to find if this is the case from the datasheet or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read two I2C (Having Same Address) sensors using NRF52840</title><link>https://devzone.nordicsemi.com/thread/456419?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 13:06:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f490ede6-934b-4492-8798-cd32f8e7f597</guid><dc:creator>Khalil Ahmad</dc:creator><description>&lt;p&gt;This is the link of the datasheet&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.analog.com/media/en/technical-documentation/data-sheets/max86916.pdf"&gt;Data Sheets-max86916&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I read the information provided in the link. as per my custom PCB both sensors are connected on the same pin but their interrupt is at different pins. I checked the PCB and&lt;/p&gt;
&lt;p&gt;1 - Its not possible to make any changes physically to disconnect the pins and connect to other pins&lt;/p&gt;
&lt;p&gt;2 - There is no information for selecting different address&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700484470149v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;My Question is... If nothing works then what happened now ?? Means to say as both sensors are connected with same address (The purpose of using two sensors to locate the vein to check the pulse... any of the sensor will find it and give the result). Its mean both sensors will send the data on single address.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After reading the Data Sheet I came to know that there is proximity option (which means when its enabled, the sensor will start its operation when detects the pulse)&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700485268607v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700485353815v3.png" /&gt;&lt;/p&gt;
&lt;p&gt;and&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1700485833073v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;As per the proximity enable option.&amp;nbsp;Lets assume if any of the sensor (the other will be in the idle mode) find the vein, so I will get the data ?????&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read two I2C (Having Same Address) sensors using NRF52840</title><link>https://devzone.nordicsemi.com/thread/456379?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2023 12:05:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e71512b0-9f8b-4d2c-8517-dba75a07bea7</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;See &lt;a href="https://learn.adafruit.com/working-with-multiple-i2c-devices/overview"&gt;https://learn.adafruit.com/working-with-multiple-i2c-devices/overview&lt;/a&gt; for a guide on multiple I2C devices with the same address&lt;/p&gt;
&lt;p&gt;Often, I2C slave ICs have a pin which can toggle between giving it different addresses.&lt;br /&gt;For example from &lt;a href="https://www.memsic.com/Public/Uploads/uploadfile/files/20220522/MC3479Datasheet(APS-048-0072v1.2).pdf"&gt;MC3479&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/6787.pastedimage1700481806287v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>