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
  • michaelkellett
    0 michaelkellett over 7 years ago

    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 and it isn't very hard to control.

     

    Rigol sell a 10W power amp which will work over the frequency range you need - I've never seen a cheaper one to buy than this (but I could make one much cheaper if I had to image)

     

    https://www.rigol-uk.co.uk/Rigol-PA1011-10W-Power-Amplifier-p/pa1011.htm

     

    You might still need a low power amplifier between the DDS board and the Rigol power amplifier.

     

    Do you have any funds for this project  or does it all have to be ultra cheap ?

     

    MK

    • Cancel
    • Vote Up +6 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • blisk
    0 blisk over 7 years ago in reply to michaelkellett

    Yes it should be ultra cheap and it is not for something for selling but for healing purpose with frequency for me.

     

    I know that project is a bit difficult but I think it can be made step by step, that means upgrading it until I get what I want.

     

     

    500€ is alot for this project.

    I am here for help if that is not possible than it is not possible I will accept that.

    I thought with arduino that will not be that hard to do that.

     

    I have experiences with electronics but not with micro controllers.

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

    I suggest that you create a file with the desired patterern/sequence on an sd card, and read the contents on your arduino at power on.

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

    How will I know if sequence is loaded on arduino and how will I know that device is even working?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 7 years ago in reply to blisk

    Hi Dennis,

     

    The more software features you add, the harder it will be - you've already stated you know little about programming.

    It may be better (just a suggestion) to work on some of the core functionality, and then when you are happy with that, then work on your improvements or version 2, with the extra features.

    I feel you may need to pay someone to design and write the software for you, and that's going to be more expensive than an off-the-shelf function-gen. Initially I thought you just wanted sine waves, but now I see you've got square and sawtooth on the list too.

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

    I'm not suggesting you get this one specifically (I have never tried this one - it was just a quick google search), but if you search around, you may find something suitable. It has a display too.

    https://www.ebay.co.uk/itm/Dual-channel-DDS-Function-Signal-Generator-Arbitrary-Waveform-1Hz-100MHz-X2Z4/153026952830?ha…

    This is less than $100, and has an interface to connect your computer.. once you're happy it all works you could remove the computer and replace with an Arduino.

    I'm sure there are cheaper options too, if you search long enough.

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

    this generator looks good, but still need logic which will change frequencies and run it from frist to last one.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 7 years ago in reply to blisk

    Indeed.. If you want to learn programming, then there are lots of free online courses if you google for this. That will then give you the confidence to embark on this or any other project. Most people start off by flashing an LED with some code. That's only a few steps removed from adding some timing to turn bits of hardware on and off at the times you want.

    There are lots of ideas in this thread, and at some point you may wish to decide on a path of action. It all hinges on learning a bit of programming though, so you can feel confident enough to then decide your path of action.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • rachaelp
    0 rachaelp over 7 years ago in reply to blisk

    I think shabaz is suggesting maybe you could use something like this unit for generating the different output types you need and use your PC (or possibly an Arduino) to create the actual programmed schedule you indicate you need in your first post as it can be controlled via USB:

     

    Communication function: the PC can be used to control the instrument.

     

    Best Regards,

     

    Rachael

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • blisk
    0 blisk over 7 years ago in reply to shabaz

    I have already programmed all those blinking LEDs and turning motor with potentiometer so far I know programming like 5%.

    Thing is I need to learn programing micro controllers like ATMEL and also arduino.

    What I didn't figure out how to make a DS generator and than make it change frequencies step by step and time?

    This logic still can't understand

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • blisk
    0 blisk over 7 years ago in reply to rachaelp

    I did search about communication with PC but didn't find any specifications what can I do over PC with generator!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 7 years ago in reply to blisk

    If you can't find it by searching the Internet long enough, then how can anyone else find it?

    You may need to spend a bit more and find a function generator with an instruction manual, or contact the manufacturer..

    I feel this thread is going nowhere..

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

    If you can't find it by searching the Internet long enough, then how can anyone else find it?

    You may need to spend a bit more and find a function generator with an instruction manual, or contact the manufacturer..

    I feel this thread is going nowhere..

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • michaelkellett
    0 michaelkellett over 7 years ago in reply to shabaz

    Not entirely nowhere - that generator you found is the cheapest boxed up waveform generator I've ever seen. I may well not be able to resist buying one just to check it out.

     

    I have $11 in my Paypal account - not quite enough image

     

    And I've done some good thinking about 10Mz 10W amplifiers  - mainly along the lines of how far one can take classic simple audio power amplifier design, I'm aiming for 10W into 8 or maybe 4 ohms.

     

    MK

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

    Hi Michael,

    That's very interesting, it would be cool to have a nice design for a wideband amplifier that could drive such loads. It could be a nice lab instrument, and also really useful for physics experiments. I guess you're thinking about a discrete design?

     

    Another thing of interest was a general-purpose amp x10 or x100 with switchable input offset removal and adjustable output offset. And perhaps expansion in future with 50/60Hz notch.. i.e. a lab amp. I did sketch up a circuit, but have not got any further. It was only for a 50 ohm load. I think I was shooting for 1MHz.

    The use-case for it was just that it is tiresome when experimenting with sensors to have to build up an amplifier circuit each time, just to try it out. And lots of modern sensors have a 2.5V etc offset since they are single-supply.

    Recently I picked up from ebay a 'biomedical amp', it is ancient, but I was hoping to tear it apart and see how they designed it.

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

    Here's a really quick and dirty 10MHz audio amp:

     

    image

     

    image

     

    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 no longer recommended for new designs by Rohm (but they were in LTSpice so quick to use)

     

    The input pair runs at 10mA per transistor, 20mA down Q3 and Q4 (ie 300mW quiescent - good job it's only a model)

    The output devices are only rated for 2W and that isn't enough.

     

    However, the approach looks viable.

     

    I'll locate some more suitable parts and spice models and see how it looks. Layout will matter, the response peaks horribly without the 3.3pF cap.

     

    MK

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

    That's really neat : ) Impressive frequency range! And a lot cheaper than the Rigol..

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify 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