Intro to ADC Programming | Using Arduino Due Analog to Digital Converter

Поделиться
HTML-код
  • Опубликовано: 29 июл 2024
  • This video in an introduction to ADC programming. Learn about lower level commands and other tips!
    Donate: www.paypal.com/paypalme/waves...
  • НаукаНаука

Комментарии • 10

  • @goelji4777
    @goelji4777 Год назад

    Very informative and simple

  • @FreiR
    @FreiR 6 лет назад +1

    very nice explanation. I hope you continue lesson about ADC conversion. Thanks a lot!

    • @WaveShapePlay
      @WaveShapePlay  6 лет назад

      Hey Roberto - Thank you for the feedback! I plan on making more videos on the topic!

  • @mubasheer5584
    @mubasheer5584 4 года назад

    Good and informative

  • @FZVlogs1812
    @FZVlogs1812 5 лет назад

    can u help me out in this projct i am doing the samr thing but my wave form is one side sine and other is straight at 2k freq. i am giving input from function generator and in future i want to give audio input.
    thanks

  • @yalgret
    @yalgret 6 лет назад

    Can this work on the Nano?

    • @WaveShapePlay
      @WaveShapePlay  6 лет назад

      I suspect the code will not be the same, however the concepts are the same!

  • @hankhamner3671
    @hankhamner3671 Год назад

    I copied your software above and uploaded it to my Due. Next I set my signal generator to output a DC sine wave 0 - 2Vp-p 1 kHz. I am not sure the Due can handle a true sine wave going negative. I then plugged the + signal generator into the A0 pin and the ground into one of the ground pins. Next, I hooked up my oscilloscope to the DAC0 pin with the ground going to one of the ground pins. Output was only noise. What is wrong?

    • @hankhamner3671
      @hankhamner3671 Год назад +1

      My error and it appears to work okay. What I did notice is that the Due's accurate voltage output is limited to about 700mV p-p with a frequency around 1kHz max. For real work need to have a much faster processor so I am moving to a Cortex M7. The voltage out is totally inaccurate but the frequency is okay.

    • @WaveShapePlay
      @WaveShapePlay  Год назад

      That is correct. To measure your sinewave you would need a DC offset for your AC sine wave. You could center the DC offest at the midpoint threshold of the ADC pin, and see the maxium amount of voltage swing around the midpoint. By "level shifting" the sinwave you can see the "negative" swing realtive to the midpoint and not ground (0V).