Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8037

MicroPython • Issue detecting I2C device on Raspberry Pi Pico W

$
0
0
Hello!

I am currently working with the external ADC chip, ADS7924, to obtain my sensor readings via I2C communication. I am also sharing my circuit here. When I try to scan for the I2C devices, I only see [ ]. I would appreciate it if anyone could help me with this. I think the circuit looks right to me. I think I followed everything mentioned in the datasheet, but I am not able to see any device.Image

Code:

import networkimport socketimport machineimport timeimport ujson as jsonimport uos as osfrom machine import I2C, Pin, Timeri2c = I2C(1, scl=Pin(3), sda=Pin(2))print(i2c.scan())ADS7924_ADDR = 0x48# ADS7924 Register addressesADS7924_MODE_CNTRL = 0x00ADS7924_INT_CNTRL = 0x01ADS7924_DATA_CNTRL = 0x02ADS7924_UPPER_THRESHOLD = 0x03ADS7924_LOWER_THRESHOLD = 0x04ADS7924_PWR_CNTRL = 0x08ADS7924_RESET = 0x09reset_pin = machine.Pin(0, machine.Pin.OUT)reset_pin.value(0)time.sleep(0.01) reset_pin.value(1)int_pin = Pin(1, Pin.IN)
Image
Thanks,
Shloka
circuit.png

Statistics: Posted by shah4s9 — Thu Jul 17, 2025 4:32 pm



Viewing all articles
Browse latest Browse all 8037

Trending Articles