I generate a PWM signal on a pin going from duty cycle 0 to 100 and back to 0% to generate a sine wave using an LC Filter. When I connect the LC filter, the output is still an PWM with some spikes.
C = 147µF
L = 47µH
f = 1,91 kHz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-11 6:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-11 6:57 AM
> When I connect the LC filter
How exactly?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-11 7:10 AM
Did this really need another topic?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-11 7:12 AM
problem of that topic is solved
facing other now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-11 7:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-11 7:44 AM
It's the same underlying issue as the other one. The STM32 isn't outputting the spikes, it's an artifact of how you're measuring.
Probably wise to reduce GPIO speed to mask some of the effect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-04-11 8:44 AM
You disconnect something ... Too maybe you need learn I=U/R (pin can drive only limited current)
Normal PWM use RC not LC .
