<?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>Driver for ADC1115 with nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107541/driver-for-adc1115-with-nrf9160</link><description>Hello I am trying to understand how to use the sensor API. As an example I want to connect ADS1115 to the I2C0 pin 11,12. For reference I take the code from the sensor documentation https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/hardware</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Jan 2024 15:38:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107541/driver-for-adc1115-with-nrf9160" /><item><title>RE: Driver for ADC1115 with nrf9160</title><link>https://devzone.nordicsemi.com/thread/466284?ContentTypeID=1</link><pubDate>Fri, 26 Jan 2024 15:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:deaedd32-44e4-4355-a199-5cbff1da22e6</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You may see the suggestion regarding ADC on I2C in this ticket:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92293/how-to-read-adc-data-using-i2c-in-nrf52840"&gt;ADC using I2C&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="Roman Veselskyi"]I have a working implementation in which I just use I2C to configure the sensor and read data from it. But now, I want to understand how to use it with the built-in driver in Zephyr for it[/quote]
&lt;p&gt;The compatible property in the overlay specifies the driver to be used; that should match your vendor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Driver for ADC1115 with nrf9160</title><link>https://devzone.nordicsemi.com/thread/465100?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 15:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93eb5b8e-3e2a-437f-be04-8195d74c334d</guid><dc:creator>Roman Veselskyi</dc:creator><description>&lt;p&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/naeem-maroof"&gt;Naeem Maroof&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your reply, but I think the issue is more fundamental. I want to use the ADS1115, which is a multi-channel ADC that communicates over I2C. As I understand it, it is not a sensor and can&amp;#39;t be used with the sensor API. &lt;br /&gt;I need to configure it as an ADC that communicates over I2C. Here, I am confused about how to do it. I have a working implementation in which I just use I2C to configure the sensor and read data from it. But now, I want to understand how to use it with the built-in driver in Zephyr for it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Driver for ADC1115 with nrf9160</title><link>https://devzone.nordicsemi.com/thread/465095?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2024 15:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ef2d8cc-28d6-47e5-978e-c1f87cd47940</guid><dc:creator>Naeem Maroof</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How many devices you are connecting? Your scanner output is showing multiple devices connected.&lt;/p&gt;
&lt;p&gt;The use of sensor api is shown in sample like &lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/sensor/bme280#:~:text=This%20sample%20shows%20how%20to%20use%20the%20Zephyr%20%3Aref%3A%60sensor_api%60%20API%20driver%20for%20the%20Bosch%20BME280%20environmental%20sensor."&gt;bme280&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You may also look at ADC samples if you are using adc&lt;/p&gt;
&lt;p&gt;The TI_HDC sample uses TI sensor driver to get temp/humidity from I2C connected sensor:&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/sensor/ti_hdc"&gt;TI-HDC Sample&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>