Author Topic: AD5940 - Wemos D1 R1 (Arduino IDE)  (Read 616 times)

0 Members and 1 Guest are viewing this topic.

Offline hiepss12Topic starter

  • Newbie
  • Posts: 4
  • Country: vn
AD5940 - Wemos D1 R1 (Arduino IDE)
« on: March 20, 2025, 06:22:22 am »
Hi everyone, I'm now in trouble. Specifically, I connected my Wemos D1 R1 to 'eval-cn0565-ardz' to measure 4-wire Impedance by controlling AD5940 microcontroller (SPI). But when I used my oscilloscope, no waveform was displayed at CE0 (in the picture below). I even configured "Waveform Generator", "High Speed DAC -> Gain -> Excitation Buffer", "Switch Matrices" and enabled all of them.

Note: I did 'write to' and 'read from' registers successfully.

Someone may give me a piece of advice. Thank you so much.  :( :(
 

 

Offline jwet

  • Frequent Contributor
  • **
  • Posts: 815
  • Country: us
Re: AD5940 - Wemos D1 R1 (Arduino IDE)
« Reply #1 on: March 20, 2025, 04:35:22 pm »
Bringing up new hardware/software can be difficult.  You don't if you have a software, hardware, configuration or bad part, etc.

Let's assume that the eval board is good.  Check Vcc and ground at the device.  Watch the SPI signals with your oscilloscope and make sure that what you think you're sending is really correct.  If you can find some example code or library, study it.  Are you doing all things that you need to do to enable the output.

Looking for CE0 is a good first step.  You might post your code since there is no way you can no if its good and you can stare at it for days.

Good luck.
 

Offline ahsrabrifat

  • Regular Contributor
  • *
  • Posts: 103
  • Country: pk
Re: AD5940 - Wemos D1 R1 (Arduino IDE)
« Reply #2 on: March 27, 2025, 01:30:49 pm »
There maybe some issues in your code also.
 

Offline Terry Bites

  • Super Contributor
  • ***
  • Posts: 2686
  • Country: gb
  • Recovering Electrical Engineer
Re: AD5940 - Wemos D1 R1 (Arduino IDE)
« Reply #3 on: March 28, 2025, 11:36:55 am »
Did you compare your register set-up settings with those used in this example code?
https://github.com/analogdevicesinc/ad5940-examples
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf