• 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

ESP32 I2C Micropython

Q&A Forum › Category: ESP32 › ESP32 I2C Micropython
0 Vote Up Vote Down
self.raymond asked 4 years ago

I am working with an ESP32S that has 38Pins.  I have not been able to get the I2c bus to recognize a DS3231 RTC

I have try to scan the bus with no luck.  Any help would be greatly appreciated. I have 2k pull up resistors on both lines.

import machine
i2c = machine.I2C(-1, scl=machine.Pin(5), sda=machine.Pin(4))
print('Scan i2c bus...')
devices = i2c.scan()
if len(devices) == 0:
print("No i2c device !")
else:
print('i2c devices found:',len(devices))
for device in devices: 
print("Decimal address: ",device," | Hexa address: ",hex(device))
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
I’ve answered your question here: https://rntlab.com/question/ds3231/#answer-43790
Regards,
Sara

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] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

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

Copyright © 2013-2023 · 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.