• 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

what pins to connect BME280 and SSD Olel1306 on an ESP32 C3 nodeMCU 32S KIT with I2C ?

Q&A Forum › Category: ESP32 › what pins to connect BME280 and SSD Olel1306 on an ESP32 C3 nodeMCU 32S KIT with I2C ?
0 Vote Up Vote Down
René GRIESMAR asked 2 years ago

hello,
Do you have a link please ?
Thanks in advance
René

2 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
You can run the following code to find out the default I2C pins:

void setup() {
  Serial.begin(115200);
  Serial.print("SDA: ");
  Serial.println(SDA);
  Serial.print("SCL: ");
  Serial.println(SCL);
  // put your setup code here, to run once:
}
void loop() {
  // put your main code here, to run repeatedly:
}

I hope this helps.
Regards,
Sara

0 Vote Up Vote Down
LoetLuemmel answered 2 years ago

Hi René,
I just worked on the exact same project ~2 months ago.
Using Sara‘s code you can identify the I2C address of the sensor and display.
You can define suitable pins yourself. – But check the data sheet if a pin is really Input and/or Output.
I assume you are using the 1306 OLED display. – Typically this can be wired SPI or I2C.
I am familiar with that one from joy-it. Here you need to solder a solder dot or resistor.
Mine was factory defined SPI, so I think you need 2 more cables to the ESP.
If you‘re still stuck, let us know what information is missing.
 
Good Luck & happy coding!

LoetLuemmel 

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.

      Notifications