• 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

Using alernative pins for I2C

Q&A Forum › Category: ESP8266 › Using alernative pins for I2C
0 Vote Up Vote Down
Herman Van twillert asked 3 years ago

Hello
On my ESP8266 board I would like to (or rather, I have to)  map the I2C pins to other pins like e.g.GPIO3 and GPIO1. These pins are by default  RXD0 and TXD0.
I would like to use the wire.begin instruction. Is this possibe or does it interfer with other functions?
 

Question Tags: I2C re-map
6 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
I would not use those pins as I2C because those pins are used to put the ESP8266 in boot mode so that you’re able to upload new code and then, access the Serial Monitor.
I think you’ll have problems if using those pins as I2C.
I recommend taking a look at the ESP8266 pinout here: https://randomnerdtutorials.com/esp8266-pinout-reference-gpios/
Regards,
Sara

0 Vote Up Vote Down
Herman Van twillert answered 3 years ago

nu other recommandation?  As I can not use the D1 D2 pins unfortunately
 

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

What  ESP8266 board model are you using? GPIO 13 (D7) and GPIO 12(D6) seem a good option.

0 Vote Up Vote Down
Herman Van twillert answered 3 years ago

ahhh GPIO13 is free but GPIO12 is not, so one short.
Could one of the SDDxx pins  do??

0 Vote Up Vote Down
Herman Van twillert answered 3 years ago

BTW     the boards I use are 12_E  NodeMCU

0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Try GPIO 14.

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.