element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum programmable frequency generator
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 31 replies
  • Answers 18 answers
  • Subscribers 392 subscribers
  • Views 2983 views
  • Users 0 members are here
  • programmable function generator
Related

programmable frequency generator

blisk
blisk over 7 years ago

Can anyone help me with this.

I need programmable frequency generator which will work like described below.

 

Something I can setup like this

program 1) 20Khz sinus, 20 minutes -ON

program 2) 460Khz sinus, 25 minutes - ON

program 3) 20Hz sinus, 40 minutes - ON

program 4) 201Hz sinus, 20 minutes - OFF

program 5) 300Hz sinus, 20 minutes - OFF

program 6) 500KHz sinus, 40 minutes - OFF

program 7) 1,5Khz saw, 16 minutes - ON

program 8) 200Hz sinus, 40 minutes - OFF

program 9) 15Khz square, 16 minutes - ON

program 10) 25Khz square, 16 minutes - ON

program 11) 600Hz square, 10 minutes - ON

program 12) 100Khz saw, 5 minutes. - ON

 

Every program I can set some frequency and wave form and time how much time it will run and On or OFF for certain program. One program will run and when it ends goes to next one which is ON and skips one which is OFF until the last one with ON, after that goes to start and repeats again. But If I setup that all programs goes just one loop it will stop when last one ends

but If I setup it must take 10 or 20 loops it will goes from start to the end as many times I setup, If I setup infinity it will run whole time.

I hope it is possible to have at least three program loops (from program 1 to program 12) like this so I can choose which one to run, and hope I can set this over internet also, but it also needs to have a display where I can setup all of that if internet is not availible. Exit must go to some amplifier which give out about 10W.

 

I know this is a complicated project but can someone help me. Don't know what to use for this arduino or some Atmel or something else.

And nex I don't know nothing about programming so I will need some extra help here.

 

Something like this but with more functions like this.

[URL=www.ebay.com/.../111438305665 generator[/URL]

Thank you.

  • Sign in to reply
  • Cancel

Top Replies

  • michaelkellett
    michaelkellett over 7 years ago +6 suggested
    I'm intrigued - what is this for ? (If you are able to tell). The range of frequencies is such that the DDS based approach is by far the simplest. The board Shabaz suggests looks fine. I've used the AD5984…
  • michaelkellett
    michaelkellett over 7 years ago in reply to shabaz +6 suggested
    Here's a really quick and dirty 10MHz audio amp: It's a rather evil circuit because: 1) several of the semis are operating at the max power they can stand with 10V pk-pk output 2) The output devices are…
  • shabaz
    shabaz over 7 years ago +5 suggested
    Hi Dennis, The frequency generation bit is really easy to do, but with a DDS board attached to your Arduino (or any other microcontroller). Something like this, can attach with just a few wires: https…
Parents
  • shabaz
    0 shabaz over 7 years ago

    Hi Dennis,

     

    The frequency generation bit is really easy to do, but with a DDS board attached to your Arduino (or any other microcontroller).

    Something like this, can attach with just a few wires:

    https://www.ebay.co.uk/itm/AD9834-Signal-Generator-Module-DDS-Signal-Source-Board-Sine-Triangle-Square-Wave/282729270172?hash=item41d3fa4b9c:g:0z0AAOSwi0xaBlA2

     

    A small bit of code is needed to configure it. I'm sure someone will have done it for Arduino already, and you could modify it to suit your requirements.

    I've used it but not with an Arduino.

    Modifying an existing program to suit your requirements is not difficult, but will involve you spending a couple of days doing Arduino tutorials to get familiar with its capabilities and how to write simple programs. Anyone can code for it, but does need a day or two of reading and practice.

    Otherwise, if this is a work project, then almost any function generator will work, if you check it has USB or Ethernet connection - then you can instrument all this from your PC to meet your requirements. Jan Cumps has a series on using LabView for example, which you can check by clicking on his name and then going to his content.

    The amplifier bit is not easy to do, you might get lucky and find something off-the-shelf but it may not be cheap. You're outside of the frequency range of most audio amps, otherwise that could have been an option..

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • shabaz
    0 shabaz over 7 years ago

    Hi Dennis,

     

    The frequency generation bit is really easy to do, but with a DDS board attached to your Arduino (or any other microcontroller).

    Something like this, can attach with just a few wires:

    https://www.ebay.co.uk/itm/AD9834-Signal-Generator-Module-DDS-Signal-Source-Board-Sine-Triangle-Square-Wave/282729270172?hash=item41d3fa4b9c:g:0z0AAOSwi0xaBlA2

     

    A small bit of code is needed to configure it. I'm sure someone will have done it for Arduino already, and you could modify it to suit your requirements.

    I've used it but not with an Arduino.

    Modifying an existing program to suit your requirements is not difficult, but will involve you spending a couple of days doing Arduino tutorials to get familiar with its capabilities and how to write simple programs. Anyone can code for it, but does need a day or two of reading and practice.

    Otherwise, if this is a work project, then almost any function generator will work, if you check it has USB or Ethernet connection - then you can instrument all this from your PC to meet your requirements. Jan Cumps has a series on using LabView for example, which you can check by clicking on his name and then going to his content.

    The amplifier bit is not easy to do, you might get lucky and find something off-the-shelf but it may not be cheap. You're outside of the frequency range of most audio amps, otherwise that could have been an option..

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • Jan Cumps
    0 Jan Cumps over 7 years ago in reply to shabaz

    yes, if you include SCPI functionality in your design, you can use the usual lab automation tools to control your instrument.

    You could use the PWM module of your microcontroller to generate square waves. Fairly simple opamp circuits can be used to derive sawtooth and sinus signals from that square wave.

     

    I have a full functional SCPI square wave generator here on element14, using a TI LaunchPad. You could start from there and add the analog parts to the output.

     

    Create a Programmable Instrument with SCPI - Part 1: Parser Library

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube