Connecting an ADS1256 to the Arduino UNO and MEGA

Поделиться
HTML-код
  • Опубликовано: 21 дек 2024

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

  • @ancelmosd
    @ancelmosd Год назад +1

    Posso traduzir seu vídeo e repostar?

  • @joseemanuelcarmonasanchez1050
    @joseemanuelcarmonasanchez1050 3 месяца назад

    Hello, Have you happened to try the code on the ESP32 WROOM microcontroller?

  • @ameliabuns4058
    @ameliabuns4058 9 месяцев назад

    I can't get this to work :( I wonder if my board is the issue?
    Also can I connect the dout/din to 5v? the Datasheet says the pins can take upt o 6v, but it doesn't say if they output 3.3v or 5v? I also wonder if arduino reads 3.3v as high

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

    How can i read voltage from geophone using this code?

  • @t.kuratomi8421
    @t.kuratomi8421 4 года назад

    Hello, is it possible to get the voltage of 4 channels (AINCOM to AIN0, AINCOM to AIN1, AINCOM to AIN2, AINCOM to AIN3) at the same time?
    And, to access AINCOM, should I connect the pin next to AINx to GND ?
    Thanks.

  • @hua-shanwu2530
    @hua-shanwu2530 4 года назад

    Hi, Mr. Bilsky, thanks to your tutorial video!
    Based on your code, I tried to enable the buffer on, but the display window would show, "Write to Register 0x0 failed!"
    However, I can still get "50", "success", "OFC1(/2/3)", " FSC1(/2/3)", "done init" and values in the following.
    Did that mean I enable the buffer on?
    If you could let me know what I did wrong, I would fix it.
    I appreciate your reply, sincerely.

  • @farmtechindonesia8048
    @farmtechindonesia8048 3 года назад +2

    I tried and got results like this "failed write register"

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

      Not sure if you are still working with ads1256 but here is your answer
      The code that i am working with which is the latest update, has this section
      "
      //SetRegisterValue(STATUS,B00110010);
      Serial.println(GetRegisterValue(STATUS));
      "
      If that is the case for you as well, the setregistervalue command for 0x00 register is commented out but the getregistervalue command which is to be printed is still there which basically returns if the write to register was successful or not. Since the write command is commented out, this will return a fail message.

  • @mrofyzk4135
    @mrofyzk4135 4 года назад

    I have a AD7606 for ADC to arduino mega but I didn't understand how to wiring. can you help me about this ??

    • @MattBilsky
      @MattBilsky  4 года назад

      I offer consulting services. If you want to engage me to help, please send me a pm

  • @acrazbahrum3412
    @acrazbahrum3412 5 лет назад

    can this example read multiple sensor at same time?

    • @MattBilsky
      @MattBilsky  5 лет назад

      If by multiple sensors you mean multiple channels on the same ADS board, then yes, the ADS 1256 can do 4 differential or 8 single ended (although this code only has for up to 3 differential written. I discuss how to expand in my video for the Teensy). But, if you mean connecting 2 ADS 1256 boards to the same SPI bus on the Arduino then no, that isn't setup.
      We are, however, about to release an updated library for both the Teensy and Arduino that is far more straight forward (and is an actual library). I have experimented and gotten multiple ADS boards to work on the same SPI bus and we are hoping to implement it in a release (maybe not the first release, but eventually). I will release a video about the library when it is posted.

    • @acrazbahrum3412
      @acrazbahrum3412 5 лет назад

      @@MattBilsky hi thankyou for the reply.. i use your library and use two sensor at same time. and i use void read_two_value then just one value are displayed at the serial monitor. then if i use read_three_value ,value 1 and value 2 are same value. and the value 3 it should be value 2.( i put the sensor pin at ain0 and ain2) how to say it :D (acrazpersib@gmail.com) thankyou

  • @charlieryan5436
    @charlieryan5436 5 лет назад

    Mr. Bilsky, i am using this code in order to hook up my own load cell to my arduino uno. I followed every instruction you have to a T yet my code is not outputting correct values. val1 and val2 are equal to each other. No value changes when i put a load on the load cell. the OFC and FSC values also vary every time i restart the code with several quirks i have discovered after recording the values. If you could let me know what i might have done wrong i will attempt to fix it and let you know how it goes. Thank you

    • @MattBilsky
      @MattBilsky  5 лет назад

      the OFC and FSC should change, those are the offsets. I'm not sure about the issue you're having. We're working on finishing up an updated and improved version of the library that will hopefully solve your issue.

    • @charlieryan5436
      @charlieryan5436 5 лет назад

      @@MattBilsky It seems to have been a faulty load cell. I replaced it just today and i can now get numbers that change with the load i apply. I will still update the library i use once the new one is released. Thank you.

    • @MattBilsky
      @MattBilsky  5 лет назад

      @@charlieryan5436 Glad that worked!

  • @MeenaSingh-vd5ur
    @MeenaSingh-vd5ur 4 года назад

    please tell me is this Bipol;ar ADC???

    • @MattBilsky
      @MattBilsky  4 года назад

      Refer to the data sheet but it can handle +/- differential signals

  • @TheRESMAT
    @TheRESMAT 5 лет назад

    Hello what is the sampling rate 100 SPS or 30000 SPS ? Thanks.

    • @MattBilsky
      @MattBilsky  5 лет назад +1

      You can change it but the library default is 30KSPS

    • @TheRESMAT
      @TheRESMAT 5 лет назад

      @@MattBilsky thanks !

  • @integratedbio
    @integratedbio 4 года назад

    Matt,
    Thanks for your contribution. Looking to push your work forward. Have you tried connecting to SAMD21 with the ADS1256? In this case a Arduino Nano 33 IoT.
    When compiling with the included library I get the typical error below. This is not a problem when compiling for an UNO.
    ERROR MESSAGE
    "Expected unqualified-id before numeric constant"
    --> #define STATUS 0x00
    LOCATION OF FILE
    C:\Users\LocalAccount\Documents\ArduinoData\packages\arduino\tools\CMSIS-Atmel\1.2.0/CMSIS/Device/ATMEL/samd21/include/component/adc.h:
    LINE OF CODE
    __I ADC_STATUS_Type STATUS; /**< \brief Offset: 0x19 (R/ 8) Status */
    Upon further inspection of this error. It would appear that both "STATUS" & "WAKEUP" are defined in other header files associated with the registers of the SAMD 21 Board(s). This seems to be the root of the problem. Can we define the ADS1256 STATUS and WAKEUP registers differently?
    FYI - Each of the PORT Multiplexing Functions imbedded in SAMD21 has a STATUS or WAKEUP id
    ADC, DAC, EIC, GCLK, NVMCTRL, RTC, SERCOM, TC, TCC, USB, WDT
    This is something that does not require the hardware to test.

    • @MattBilsky
      @MattBilsky  4 года назад +1

      I haven't tried. You can just rename the variables in the library with a find and replace all in something like notepad ++

    • @integratedbio
      @integratedbio 4 года назад

      ​@@MattBilsky Thank you for the quick response. It appears renaming the defined ADS1256 registers STATISX and WAKEUPX and associated references in the .cpp file has gotten me further in the compiling process.

  • @inktechchannel
    @inktechchannel 5 лет назад

    sir can you provide this same code for Atmel studio..?

    • @MattBilsky
      @MattBilsky  5 лет назад

      We do not have code for Atmel studio, just Arduino. Sorry.

    • @integratedbio
      @integratedbio 4 года назад

      @@MattBilsky Would the library you used work with Arduino 33 IoT w/ ARM Cortex-M0 processor?

  • @MeenaSingh-vd5ur
    @MeenaSingh-vd5ur 4 года назад

    please iii
    ----

  • @wiolettahaftowska5760
    @wiolettahaftowska5760 4 года назад

    Ok