Search found 44 matches

by ted
Tue Jan 16, 2018 4:48 am
Forum: STM32F103 Boards
Topic: PWM modulator
Replies: 0
Views: 133

PWM modulator

This is a program for sine wave generator, to my understanding PWM is modulated by sine wave generator - part of the program. What changes need to be done to have PWM modulated by signal applayed to pin PA6 not by generator. Looking for help. #define SAMPLES 100 #include <libmaple/dma.h> dma_tube_co...
by ted
Sun Jan 07, 2018 8:49 pm
Forum: Projects
Topic: PWM basic
Replies: 23
Views: 411

Re: PWM basic

Thanks.
The first link = many years of experience in it.
The second one also is not a new one for me.
Regarding filters I think no one on forum attempted something similar
by ted
Sun Jan 07, 2018 5:06 pm
Forum: Projects
Topic: PWM basic
Replies: 23
Views: 411

Re: PWM basic

The first link - I started from it.
The second link - I'm familiar
The last - I'm studying it
by ted
Sun Jan 07, 2018 4:49 pm
Forum: Projects
Topic: PWM basic
Replies: 23
Views: 411

Re: PWM basic

(it is not "PWM basic") = it is in analog field

I expect to see the Op post code that compiles and performs some function to represent an issue.
Please look at post # 23

https://forum.arduino.cc/index.php?topic=520896.15


I'm doing this with curiosity to see the advantages of digital technology.
by ted
Sun Jan 07, 2018 4:22 pm
Forum: Projects
Topic: PWM basic
Replies: 23
Views: 411

Re: PWM basic

English is not my native language, what is meant Op? I have no problem with DAC , LC filter for PWM is working very good. Internet study are not answer my questions, there is a lot of info but when you are looking for answer for your questions is hard to find it. For example the filters, always for ...
by ted
Sat Jan 06, 2018 7:16 pm
Forum: Projects
Topic: PWM basic
Replies: 23
Views: 411

Re: PWM basic

new correction and error. input_output:3: error: 'Serial' does not name a type Serial.print(value); ^ input_output:4: error: expected constructor, destructor, or type conversion before '(' token analogWrite(outputPin, value); ^ C:\Users\OWNER\Documents\Arduino\input_output\input_output.ino: In funct...
by ted
Sat Jan 06, 2018 7:09 pm
Forum: Projects
Topic: PWM basic
Replies: 23
Views: 411

Re: PWM basic

The error comes from this line - Serial' does not name a type , mentioned line is disabled by //'
by ted
Sat Jan 06, 2018 6:20 pm
Forum: Projects
Topic: PWM basic
Replies: 23
Views: 411

Re: PWM basic

this is a draft, I am using those lines to make code work, thanks for pointing that. New code and new error. input_output:3: error: 'Serial' does not name a type Serial.print(value); ^ input_output:4: error: expected constructor, destructor, or type conversion before '(' token analogWrite(outputPin,...
by ted
Sat Jan 06, 2018 5:41 pm
Forum: Projects
Topic: PWM basic
Replies: 23
Views: 411

Re: PWM basic

This is a new code and a new error. input_output:26: error: expected constructor, destructor, or type conversion before '(' token analogWrite(outputPin); ^ exit status 1 expected constructor, destructor, or type conversion before '(' token /*pinMode(outputPin, PWM); // instead of OUTPUT ... Serial.p...
by ted
Sat Jan 06, 2018 1:54 am
Forum: Projects
Topic: PWM basic
Replies: 23
Views: 411

Re: PWM basic

This is what I did, the code and error. I know what error is saying, don't know how to fix it. input_output:17: error: 'Serial' does not name a type Serial.print(outputPin, value); ^ input_output:18: error: expected constructor, destructor, or type conversion before '(' token analogWrite(outputPin);...