leollo98 / ad7606 Goto Github PK
View Code? Open in Web Editor NEWAD7606 library for Arduino framework
License: MIT License
AD7606 library for Arduino framework
License: MIT License
hi, i was testing the library in the commercial 8 channel module, with an ESP32 and it worked fine but when i tested it on a PCB of my design (AD7606-4) it read 0 all the time. It took me a long time to find the solution, but in the end the problem was that the DB7 and DB8 pins where sets as outputs, i seted them as inputs and then the AD7606 began to read fine.
I am using the serial interface with the internal reference, again with an ESP32. do you have any idea about what happened there? because it's weird that the commercial module worked fine since the beginning but with my PCB i had to make that little change so i would appreciate any theories.
Regards
Hello and greetings. I tried the library using with ESP32S3, but unfortunately the library did not working at all T__T.
I tried Parallel/SPI/16bit all failed to get any reading. I did using other library found on the internet, managed to get some readings from SPI...
All zero, it seems no data was collected?why?
Attache the code as follows:
#include <AD7606.h>
#include <Arduino_PortentaBreakout.h>
#define DB7 SPI1_CIPO
#define CS SPI1_CS
#define RD SPI1_CK
#define DB8 GPIO_0
#define CVA_CVB GPIO_4
#define RESET GPIO_3
#define BUSY GPIO_5
AD7606_Serial AD(DB7, DB8, RD, CS, CVA_CVB, CVA_CVB, BUSY, RESET);
void setup()
{
Serial.begin(115200);
}
void loop()
{
int16_t Data[8];
AD.read(Data);
for (uint8_t i = 0; i < 8; i++)
{
Serial.println(Data[i]);
}
}
Thanks for the library ! It really helps. I found a small point that “The function setRange(bool) can be used to set the limits to 5V (+/- 2.5V) with false or 10V (+/- 5V) with true.” According to the datasheet the analog input range is +/- 5V or +/- 10V .
你好,我是用这个库,开发AD7606的8路模拟量采集,当我只连接第1路的时候,其他7路都接地。通过print打印出AD值,当我调整第1路的输入电压时,第2、3、4路的AD值也跟着变化。当我调整第5路的输入电压时,第6、7、8路的AD值也跟着变化。这是什么原因导致的呢?
#include "AD7606.cpp"
#define DB7 16
#define DB8 17
#define CVA_CVB 18
#define CS 19
#define RD 21
#define RESET 22
#define BUSY 23AD7606_ESPI AD(DB7, DB8, RD, CS, CVA_CVB, CVA_CVB, BUSY, RESET);
void setup()
{
Serial.begin(115200);
}void loop()
{
int16_t Data[8];
AD.read(Data);
for (uint8_t i = 0; i < 8; i++)
{
Serial.printf("%06d ", Data[i]);
}Serial.println();
}
Hi Leo,
i wender which Arduino did you used with ad7606 and should i connect the ad7606 with Arduino as follows?
AD7606 | Arduino
DoutA ---> MISO
CS ---> CS
RD ---> SCLK
i did the test with this ad7606 with Arduino mega.
But unfortunately, it does not work and i got only zero as output.
Best regards
MD
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.