LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

ARM PWM frequency as Elemental Property Node

Hi Jack,

Have you acquired the data that comes out from the PMW? Just to be sure that the your are getting the signal out from the PWM, then the sound problem might be just an amplification problem.

 

Regards,

steve.bm
AE | NI
0 Kudos
Message 11 of 24
(4,392 Views)

Hey Steve,

 

The amplifications is ok.  I can run the vi with ONLY the PWM1 node and the speaker produces a sound.

 

Any other ideas?

 

Thanks,

 

Jack

0 Kudos
Message 12 of 24
(4,387 Views)

Steve or Zach,

 

I was wondering if you had any addition suggestions on how to make the PWM1 change frequences from within the VI?  I previously attached the last change we made that Zach suggested but it did not produce any sound.

 

Thanks,

 

Jack

0 Kudos
Message 13 of 24
(4,367 Views)

Hey Jack, 

 

I got the board set up here and tested the code. It appears the buzzer on the board isn't capable of playing sound at 2000Hz. I can get it up to 1980, but it fails to make audible noise above there.

It seems like this is simply a hardware limitation. (Although I can't find any documentation on the buzzer)

 

Do you need to be able to play sound at 2000Hz? Or are you just looking to change the frequency? 

 

On a side note, you won't need the final while loop to keep the buzzer making noise. I just used two more frames, one with a 500ms wait and the other with a 0 written to the PWM1 (so that it didn't play continuously) 

 

Cheers, 

 

Zach

Applications Engineer
National Instruments
CLD Certified
0 Kudos
Message 14 of 24
(4,362 Views)

Zach,

 

Sorry for the delay in posting,  I was dealing with an installation issue. 

 

I tried what you suggested and it WORKED!!!    I can live with the 2k Hz without any problem.

 

Thanks you so much for hanging in there with me and helping solve the issue.

 

Again, thanks.

 

Jack

0 Kudos
Message 15 of 24
(4,348 Views)

Hi, I worked with the generation of pulse width to control a servo, you must configure the pre divider 1/16, works well attached a code example, luck

0 Kudos
Message 16 of 24
(4,261 Views)

further below, and a project that works fine controlling a servomotor

 

the result you can see in the video below

http://www.youtube.com/watch?v=RiLZCEEOKG4

 

0 Kudos
Message 17 of 24
(4,258 Views)

Hi. Well done. It is very good job. I have a problem. I use LV2011 version. If it is possible, can you save as LV2011 version. I will apply this project. I ordered this board. I will develop that kind of application. I need it . Thank you for your interest. Best wishes. e-mail: gazielektronik2001@gmail.com

0 Kudos
Message 18 of 24
(4,134 Views)

estimated, no problem and keep it in the version 2011 excuse the delay, hopefully useful

0 Kudos
Message 19 of 24
(4,106 Views)

Hi. Thank you for you help. This example is very helpful for me. After I build it(after generate hex file), Can it work without PC connection?

Best wishes

0 Kudos
Message 20 of 24
(4,100 Views)