Please can you recommend a microcontroler with embedded DDS ( 0-40 KHZ ) that is suitable for Arduino IDE , maybe i am asking for too much , but further more if this microcontroler has a D class amplifire of 30 W , would this be a big problem !?.
Thank you in advance for any advice
Welcome to the Digikey tech forum. I’m not familiar with any devices that have the features you listed. Perhaps someone with more experience in this can jump in and offer advice.
A Direct Digital Synthesizer (DDS) may be constructed as a look up table, an indexing register, an adder to calculate the indexed jump, and a robust/ predictable timing mechanism.
If you want performance, I recommend an FPGA based solution. With a proper design, you can easily extend the output frequency into the 1 MHz range with absolute predictable timing with an accuracy limited only by the amount of money you wish to spend on the oscillator. You can use the FPGA to drive an external DAC or a PWM to drive your external power circuits such as a class D amplifier or motor drive.
Tech Tip: You can reduce the DDS lookup table size by implementing only first quadrant values of the sinusoid. Clever indexing into the table can then be used to recreate the other three quadrants.
As for microcontrollers, you can do a reasonable job using today’s 32-bit microprocessors. The lookup table is still a valid way forward. The trick is to establish deterministic timing. An interrupt service routine is a good solution. You may also want to use a Direct Memory Access (DMA) to move data to your DAC.
You specifically stated that you want to use the Arduino IDE. There are several 32-bit options including:
That’s not a misprint. There are members of the STM32 line that may be programmed from the Arduino IDE as described here.
Thank you for your response , yes probably the FPGA is the most suitable solution , after searching i discovered Alchitry cu FPGA development board ( Lattice iCE40 HX ) , i guess this will be the optimal choice , thank you very much for your helpfull advice
Jan Ibrahim .
Alchitry Cu FPGA Development Board (Lattice iCE40 HX)
śr., 25 paź 2023 o 15:41 APDahlen via Electronic Component and Engineering Solution Forum - TechForum │ Digi-Key <email@example.com> napisał(a):