Analog to Digital Converter [ADS1115] (Raspberry Pi)

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Official Write-up: www.piddlerint...
    ADS1115 Specifications: www.ti.com/lit...
    Required Parts:
    CanaKit Raspberry Pi 4 4GB Starter Kit - amzn.to/2Jrlbfj
    ADS1115 ADC - amzn.to/3o12cHi
    Dupont Jumper Cables - amzn.to/3n1Cql1
    Capacitive Soil Mosisture Sensor - amzn.to/3pC7WI6
    adafruit-circuitpython-ads1x15 github: github.com/ada...
    Donate to the Channel:
    / piddlerintheroot

Комментарии • 22

  • @darkpixel633
    @darkpixel633 3 года назад +1

    I've been looking for this for so long, so much help THANKS!

  • @imaduddinmuhammad9987
    @imaduddinmuhammad9987 3 года назад +1

    I will use this one today.

  • @aweandsome
    @aweandsome 2 года назад +1

    Great tutorial. Everything works great however I realized that all the GPIOS are needed by the ADS115 ADC. Can I also connect it with a Breadboard so that I have some Pins left?

  • @rasmusandersen3674
    @rasmusandersen3674 Год назад

    Great help, thx!

  • @SciHeartJourney
    @SciHeartJourney 3 года назад

    I do appreciate this code example, but the one thing I don't like about the ADS1115 driver: How do we set the address?
    I can't find any information on that.
    The ADS1115 has 4 addresses, but the Raspberry Pi code I've been running across doesn't let you enter the address.
    I have multiple ADS1115 boards; I want to give each a different address and use same I2C bus to talk them all.
    Can anyone make a suggestion? The only alternative I see is to abandon that driver and make my own I2C low-level driver that allows for addressing.
    Thank you.

  • @zoyasarang7884
    @zoyasarang7884 3 года назад

    Hey, the basic "import busio" isn't working, after running its showing "no module named busio". Please can you help me out.

  • @random_netizen
    @random_netizen 2 года назад

    finally, thanks, this is what am looking for, but how if we use 5 sensors?

  • @sharlecc3407
    @sharlecc3407 2 года назад +1

    Thanks for posting the tutorial and I am following your steps with the same equipment. However, my output of CHAN is always 0, both for raw and volt. How can I detect the problem? Is that the ADS problem or the sensor problem?(BTW I'm using RPi 3B+ instead of 4)

    • @Elb.ossama
      @Elb.ossama 2 года назад

      I have the same issue did you figure it out?

  • @sophiacothori850
    @sophiacothori850 3 года назад

    Hello, I want put a gain. What is the code please ?
    I can't find a working program...
    Thanks you.

  • @capewx
    @capewx 2 года назад

    If you are using an ADS1115, FS=3.3Vdc, for 32,768 raw. Correct? 16 bit signed is 15 bits of data. 2^15 is 32768. So, I’m not sure why it is that on channel 0 (raw is 11264) while (voltage is reading 1.408). Shouldn’t 11264 raw = 1.134Vdc? If I understand it correctly, and perhaps I don’t, 3300mV / 32768 = 0.100708 mV/bit ergo 11264 = 1134mV or 1.134Vdc; not 1.408Vdc. Can you help me out here? Thanks!

    • @mitchelvanderwaard6287
      @mitchelvanderwaard6287 2 года назад +1

      The default range is 4.069 V so 1 bit corresponds to 4.096/32768 = 0.000125. The raw value of 11264 therefore correponds to 1.408 V.

    • @capewx
      @capewx 2 года назад

      Thanks! Most Appreciated.

  • @Axymerion
    @Axymerion 2 года назад

    In your code you are using ADS1015, not 1115. You loose 4 bits of precision (16 times less precise)

  • @areefaiman440
    @areefaiman440 3 года назад

    How you attach duppont cable into header ?

  • @nagayogeendrabrahmanapalli5662
    @nagayogeendrabrahmanapalli5662 3 года назад

    what is AN0 in raspberry pi GPIO pins

  • @colbyboren3418
    @colbyboren3418 3 года назад

    I'm getting an error python setup.py egg_info' failed with error code 1 for sysv-ipc when trying to install the adafruit package. Any ideas?

    • @colbyboren3418
      @colbyboren3418 3 года назад +1

      looks like by running the commands without 'sudo' everything worked. Not sure why, still new to this ecosystem.

  • @SubstanceV
    @SubstanceV 3 года назад

    Are all the gpios taken up by the hat? I intend to use this with a pump and relay

  • @rahulrrun7730
    @rahulrrun7730 3 года назад +1

    Hey thanks for the video can u save the output to a .CSV file so we can export the file and draw cool graphic design on it

  • @kongds2946
    @kongds2946 3 года назад

    what if there are 2 analog sensors to be connected?