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
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.
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.
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.
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.
@@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
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
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.
@@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.
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 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.
Posso traduzir seu vídeo e repostar?
Hello, Have you happened to try the code on the ESP32 WROOM microcontroller?
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
How can i read voltage from geophone using this code?
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.
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.
I tried and got results like this "failed write register"
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.
I have a AD7606 for ADC to arduino mega but I didn't understand how to wiring. can you help me about this ??
I offer consulting services. If you want to engage me to help, please send me a pm
can this example read multiple sensor at same time?
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.
@@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
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
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.
@@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.
@@charlieryan5436 Glad that worked!
please tell me is this Bipol;ar ADC???
Refer to the data sheet but it can handle +/- differential signals
Hello what is the sampling rate 100 SPS or 30000 SPS ? Thanks.
You can change it but the library default is 30KSPS
@@MattBilsky thanks !
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.
I haven't tried. You can just rename the variables in the library with a find and replace all in something like notepad ++
@@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.
sir can you provide this same code for Atmel studio..?
We do not have code for Atmel studio, just Arduino. Sorry.
@@MattBilsky Would the library you used work with Arduino 33 IoT w/ ARM Cortex-M0 processor?
please iii
----
Ok