Search found 7 matches

by Folny82
Tue Aug 07, 2018 1:53 pm
Forum: ESP32 Arduino
Topic: 40khz Timer setup
Replies: 6
Views: 6867

Re: 40khz Timer setup

When I use ledc library so the output signal is OK even at 80khz but as suddenly I use my code using the timer so the signal is unstable
by Folny82
Tue Aug 07, 2018 9:42 am
Forum: ESP32 Arduino
Topic: 40khz Timer setup
Replies: 6
Views: 6867

Re: 40khz Timer setup

The picture is just an example of it being seen only a problem with the timer ledc library works correctly that i tried but i need to set the timer to the frequency of 40khz my project.
by Folny82
Tue Aug 07, 2018 5:55 am
Forum: ESP32 Arduino
Topic: 40khz Timer setup
Replies: 6
Views: 6867

Re: 40khz Timer setup

Hi

I have in mind that the timer is unstable as it is seen in this photo.

Image
by Folny82
Mon Aug 06, 2018 11:04 pm
Forum: ESP32 Arduino
Topic: 40khz Timer setup
Replies: 6
Views: 6867

40khz Timer setup

Hi Can you please tell me why this setting is unstable and the oscilloscope output can see bending as otherwise I could set the timer to be stable at 40Khz thank you for your advice. my code #include "driver/timer.h" static intr_handle_t s_timer_handle; void init_timer(uint64_t timer_period_us) { ti...
by Folny82
Wed Jun 06, 2018 4:11 pm
Forum: ESP32 Arduino
Topic: Arduino Uno convert code to ESP32 help
Replies: 0
Views: 4197

Arduino Uno convert code to ESP32 help

Hello Friends Please give me some advice on the code I'm trying to adjust for ESP32 for a long time but still does not want to work properly please advise me how to modify line 38 (uint8_t ctr = TCNT0;) to work correctly. here is my code for ESP32 who does not want to work and flood code for Arduino...
by Folny82
Fri Feb 09, 2018 1:43 am
Forum: ESP32 Arduino
Topic: Code help
Replies: 3
Views: 5521

Re: Code help

Hello

I do not know how to set timers i am not totally sure how to edit this code for ESP32 i do not have any experience with ESP32 development board :(
by Folny82
Wed Feb 07, 2018 2:01 am
Forum: ESP32 Arduino
Topic: Code help
Replies: 3
Views: 5521

Code help

Hello friends Can anyone advise me how to edit this sketch to work with ESP32 in advance thanks for your reply. https://github.com/dc42/arduino/blob/master/MetalDetector/MetalDetector.ino Problem is with this frequent code ISR(TIMER1_OVF_vect) { ++ticks; uint8_t ctr = TCNT0; int16_t val = (int16_t)(...