Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 5 of 5

Thread: Compatibility Issue Between the AD9833.h Library and the Teensy3.2

  1. #1
    Junior Member
    Join Date
    Aug 2020
    Posts
    7

    Compatibility Issue Between the AD9833.h Library and the Teensy3.2

    Hi Paul,

    There are a number of YouTube videos out there that show the AD9833 working well with an Arduino. I've been able to successfully, smoothly, and repeatedly able to get the AD9833 to run on a Nano using the AD9833.h library.

    However, when I apply that same schematic to a Teensy 3.2 and recompile the same code for the Teensy3.2, I get mostly squarewave garbage. I use a pot to adjust the frequency. I can get one frequency at 3.3kHz. See attached .ino file. The library file is also attached.

    I was able to implement your direct-register address sketch and it works as "advertised" - I do get 1.00kHz out. Thank you!

    Now for the questions:
    1. Are you aware of any compatibility issues between the Teensy and the AD9833.h library?
    2. Can you suggest things to try to get this sketch (that uses the AD9833.h library) to work with a Teensy?

    Thanks,
    Dave
    Attached Files Attached Files

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,496
    Where to download this library? The .h file you posted is only part of the code.

  3. #3
    Junior Member
    Join Date
    Aug 2020
    Posts
    7
    Hi Paul,

    Bill Williams 1952 library can be found on Github:
    https://github.com/Billwilliams1952/...ibrary-Arduino

    Thanks for looking at this. I've spent weeks trying to solve this thing and I had to go back to a Nano to eliminate unknowns.

    Thanks,
    Dave

  4. #4
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,680
    Quote Originally Posted by DaveC284 View Post
    Hi Paul,

    Bill Williams 1952 library can be found on Github:
    https://github.com/Billwilliams1952/...ibrary-Arduino

    Thanks for looking at this. I've spent weeks trying to solve this thing and I had to go back to a Nano to eliminate unknowns.

    Thanks,
    Dave
    Did look at digitalWriteFast only.. oh my. I don't have this chip chip, otherwise I would fix it. These tricks are all not needed for any teensy.
    It's better if someone who owns the AD does it.
    Or, Dave, just use a better library.

  5. #5
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,680

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •