Hi
I can't compile the program. I found that if I remove the timer component the program compiles.
Kind regards
Esp32 Timer Problem
-
- Posts: 89
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:06 am
- Location: Italy
- Has thanked: 37 times
- Been thanked: 10 times
-
- Valued Contributor
- Posts: 447
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 81 times
- Been thanked: 243 times
Re: Esp32 Timer Problem
Hi,
Looks like the Timer component is not yet compatible with ESP.
Can I suggest that you use a Timer Interrupt instead.
That can then call a macro/function that increments global variables to give you your timed events.
Looks like the Timer component is not yet compatible with ESP.
Can I suggest that you use a Timer Interrupt instead.
That can then call a macro/function that increments global variables to give you your timed events.
-
- Posts: 89
- Joined: Wed Dec 02, 2020 10:06 am
- Location: Italy
- Has thanked: 37 times
- Been thanked: 10 times
Re: Esp32 Timer Problem
Thanks Leigh
Now i've another question
I am trying to use the esp32 module to create a small test station. I need to generate a sine wave and I succeeded.
the problem is that the output is not stable and therefore every few seconds I find a glitch on the sinus. I tried to generate the wave in different ways but even putting it in the main loop I always have the same problem.
It almost seems that the output of the dac stops ...
Now i've another question
I am trying to use the esp32 module to create a small test station. I need to generate a sine wave and I succeeded.
the problem is that the output is not stable and therefore every few seconds I find a glitch on the sinus. I tried to generate the wave in different ways but even putting it in the main loop I always have the same problem.
It almost seems that the output of the dac stops ...
-
- Valued Contributor
- Posts: 447
- Joined: Mon Dec 07, 2020 1:00 pm
- Has thanked: 81 times
- Been thanked: 243 times
Re: Esp32 Timer Problem
I think the problem here could be that ESP runs an RTOS.
That's not ideal for signal generation due to task scheduling.
I think that DMA might be possible, but I've not tried it.
That's not ideal for signal generation due to task scheduling.
I think that DMA might be possible, but I've not tried it.
-
- Matrix Staff
- Posts: 1926
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 501 times
- Been thanked: 686 times
Re: Esp32 Timer Problem
Hello,
What are you using the output the sine wave, is it the internal DAC or PWM or is it via an external comms device?
What are you using the output the sine wave, is it the internal DAC or PWM or is it via an external comms device?
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Posts: 89
- Joined: Wed Dec 02, 2020 10:06 am
- Location: Italy
- Has thanked: 37 times
- Been thanked: 10 times
Re: Esp32 Timer Problem
I have a strange problem with esp32 boards.
It looks like they are programmed but fail to boot ...
I have 3 boards (1 wroom-32 and 2 wroom-32d) and all three are doing the same joke
The version is esp32_devkitc_v4, clicking the two physical buttons nothing happens.
It looks like they are programmed but fail to boot ...
I have 3 boards (1 wroom-32 and 2 wroom-32d) and all three are doing the same joke
The version is esp32_devkitc_v4, clicking the two physical buttons nothing happens.