Giter VIP home page Giter VIP logo

ad7606's People

Contributors

leollo98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

huawangl hojoonch

ad7606's Issues

DB7 and DB8 pinmode problem

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

ESP32S3 not working at all

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...

Compile Error with Arduino Board

I tried compile for the Arduino Uno R4 Minima, Mega2560 and Raspberry Pi Pico boards but failed with compilation error. Could u please help to fix thoses issues so I can use this library.
微信截图_20240127173008

Test serial example on Arduino H7 with breakout board

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]);
	}
}

Analog input range correction.

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 .

当我调整第1路的输入电压时,第2、3、4路的AD值也跟着变化。

你好,我是用这个库,开发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 23

AD7606_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();
}

tested Arduino

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.