Interfacing AD7367 ADC with Arduino Mega – Need Example Code & Connection Details

I’m working with the AD7367 ADC and trying to interface it with an Arduino Mega, but I’m facing some issues with the connections.

Has anyone here worked with this ADC? If so, could you please share:

  1. Example code that worked for you.
  2. Proper connection details, especially for the SPI pins (MISO, MOSI, SCLK, CS) between the AD7367 and Arduino Mega.
  3. Guidance on handling additional pins like CONVST, BUSY, ADDR, and REFSEL.
  4. Any specific voltage level considerations or SPI settings when interfacing with the Mega.
  5. Initialization sequences or troubleshooting tips that helped you get it working.

That should be very doable. Get a copy of the Arduino Cookbook and read it from cover to cover. As you are going through it try some of the examples. Several will be very close to what you want to do.

Find some libraries for that part and try the example code.

Is this for a class or project?

actually it is for a project. so if any one work with this adc can share sample code and connection details so that I can compare with my connections.(The thing is I am facing some issues after hardware connection)

Apparently you did not look very hard. This is the first thing that came up when I looked for a library. To use the AD7367 with Arduino, you can use the "AD7367" library by Rob Tillaart, which is available on GitHub

I recommend you spend some time working with the cookbook and learn the basics of what you are asking.

actually I am using the library now.. but in my set up it always reads 16383(maximum value) .so i want some example code or connection to compare..

Spend some time with the cookbook and do a few tutorials. Also post an annotated schematic showing exactly how you have wired it. Be sure to show all connections, power, ground, power sources etc. Also post a link to the technical information on each of the hardware devices.

Have you tried the examples contained in that library?

Something that adith_187 has neglected to mention:

The AD7367 library by Rob Tillaart was written especially for adith_187.

Request for AD7367 Library for Arduino

1 Like

exactly.. the thing is I made the hardware set up ...and I tried the example code.. but some issue happens.. I want to know anyone work with the adc previously..so that i can check the connection and debug the issue..

He made well structured library but I cant verify it till now..That is why I said that dedicated library (tested with hardware) is not available

What steps have you taken to debug these (undefined) "issues"?

1 Like

Please note that the library mentioned has a develop branch on GitHub.
The develop branch has functions to support all lines mentioned in the SERIAL INTERFACE in the image of post 7 + control over REFSEL and the RANGE pins below/right.

1 Like

@adith_187

1 Like

I want to cross check the schematic with mine.