1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Got it working at last!!

Discussion in 'Members Lounge' started by Nigel Goodwin, Oct 3, 2017.

  1. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,295
    Likes:
    647
    Location:
    Derbyshire, UK
    For a while now I've been playing with an AD9833 waveform generator board, trying to get it to work with a PIC24F, I based my project on this website:

    http://www.vwlowen.co.uk/arduino/AD9833-waveform-generator/AD9833-waveform-generator.htm

    And while I've got my display working fine, using a smaller LCD than the link and configured how I wanted, and the encoders working fine, I've been unable to get any output at all from the AD9833. I've been fiddling with it off and on for a while now, and presumed my problem was to do with the SPI connection.

    Anyway, I've recently bought some Arduino 3.3V Pro Mini's, so thought I'd wire one of those up and use the code direct from the link - but again, everything worked - except the output from the AD9833.

    So eventually, I tried a different AD9833 breakout module - and it worked. Tried the old one, didn't work - tried the new one again, did work. So I tried the working one in my 24F setup, worked in that as well!!!!!! :banghead: :banghead: :banghead: :banghead: :banghead:

    Makes you wish you'd tried a different AD9833 a long time ago :rolleyes:

    Here's a (poor) picture of the MiniPro version, feeding a little scope:

    Generator.png
     
    • Like Like x 4
  2. jpanhalt

    jpanhalt Well-Known Member Most Helpful Member

    Joined:
    Jun 21, 2006
    Messages:
    5,987
    Likes:
    511
    Location:
    Cleveland, OH, USA
    ONLINE
    Don't tell me you have succumbed to the Duinovirus? There is no known cure short of rebooting your brain.

    John
     
    • Like Like x 1
  3. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,295
    Likes:
    647
    Location:
    Derbyshire, UK
    The PIC version works as well - I was reduced to the Arduino version to see if it worked on that or not (and it didn't) :D

    But to be fair, I quite like the ProMini, nice small form factor and easy to use.
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. ericgibbs

    ericgibbs Well-Known Member Most Helpful Member

    Joined:
    Jan 4, 2007
    Messages:
    21,220
    Likes:
    644
    Location:
    Ex Yorks' Hants UK
    ONLINE

    Morning Nigel,
    Nice project.
    Hope you don't mind, honing my PhotoShop skills on your image.;)
    Eric
    Generator.png
     
    Last edited: Oct 4, 2017
  6. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,251
    Likes:
    911
    Location:
    Rochdale UK
    I like that "Pro mini" but they have retired it... Is there another in the pipeline?
     
  7. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,295
    Likes:
    647
    Location:
    Derbyshire, UK
    No idea, but mine are just Chinese clones anyway :D
     
  8. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,251
    Likes:
    911
    Location:
    Rochdale UK
    You shoud just become a Bangood supplier here in Blighty!! LOL..


    5 pieces for £6.29... Free delivery...
     
  9. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,295
    Likes:
    647
    Location:
    Derbyshire, UK
    OK, having been given some pain about the Arduino :D, here's the PIC version running:

    PIC_Gen.png

    Notice this is using a smaller display.
     
    • Like Like x 1

Share This Page