• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Is there a tutorial or how to use an I2C sensor without a library?

Q&A Forum › Category: ESP32 › Is there a tutorial or how to use an I2C sensor without a library?
0 Vote Up Vote Down
benditohd asked 4 years ago

I have an I2C sensor without a library (ADPD144RI sensor).
I searched on google, but there was no library for esp32 or Arduino IDE.
Is there a tutorial or how to use an I2C sensor without a library?

2 Answers
1 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
 
You can communicate with the sensors using the “standard” Wire.h library. Here’s a link to the library:

  • https://github.com/espressif/arduino-esp32/blob/master/libraries/Wire/src/Wire.h

We don’t have a tutorial using the Wire.h library.
 
However, I’ve found this tutorial by HowToMechatronics that provides an example reading from an I2C sensor using the sensor registers:

  • https://howtomechatronics.com/tutorials/arduino/how-i2c-communication-works-and-how-to-use-it-with-arduino/

The example provided is for the Arduino board, but the methods are compatible with the ESP32 board.
 
I hope this helps.
Regards,
Sara
 

0 Vote Up Vote Down
benditohd answered 4 years ago

 I would like to try it. Thank you very much.

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.