cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Sine wave

phuocnguyenhuu96
Associate III

Does anyone already have been generate three sine wave using stm32f4?

1 ACCEPTED SOLUTION

Accepted Solutions

Only has two DACs

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

14 REPLIES 14

Only has two DACs

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
T J
Lead

use an external Quad DAC,

the easiest interface I ever did

only took 10 minutes before it worked.

T J
Lead

use an external Quad DAC,

the easiest interface I ever did

only took 10 minutes before it worked.

T J
Lead

use an external Quad DAC,

the easiest interface I ever did

only took 10 minutes before it worked.

phuocnguyenhuu96
Associate III

Thank you. But as I understand your answers, we just could generate TWO sine wave with TWO DACs? I need THREE sine wave for control 3 phase AC motor.

T J
Lead

what speed do you need in RPM ?

You need 3 Dacs for 3 sinewaves...

phuocnguyenhuu96
Associate III

Thank you for your reply. I need about 3000rpm. So can I use 3 DACs for generate sinewave? In addition, can I generate 3 sinewave use DACs with PHASE SHIFT (120 degrees).

T J
Lead

Yes of course.

so you need a Sine wave in Flash, and feed it to the DAC at the right time

if your sine wave hast 8 steps, ( which is not much of a sine wave)

how many poles does the motor have ?

3000 x 60 x Poles x 8 points(in Sinewave)

guessing 2 or 3 poles...

that's a feed rate of 2.8MHz per channel... if you want 16 bit, double that.

that is going to be difficult for a veteran.

This seems a stretch from being practicable.

there are other methods of driving motors, maybe some more research is needed.

phuocnguyenhuu96
Associate III

Thank you TJ. Your information really useful for me. And yes, there's difference method of driving AC motors, but I want to practice the simple method, is Vf control or Scalar control. I already have been made that with dsp kit of TI, but for ARM, the problem is I don't know how to generate 3 phase sine wave. That's why I post it to this forum.

Again thank you for your share.