B4R Question ESP32 Looper

rodmcm

Active Member
Licensed User
I have ported a program on an ESp32 from WIFI to Bluetooth. No other changes
I was using a looper to sample a digital in for frequency measurement

The answers I now get are some 10 times less than I got with WIFI

I ran the looper program from the tutorial along with the BT and got
345.8 loops per millisecond, well down from the ESP32: 1750 loops per millisecond
in the tutorial..

Can anyone explain this please

I also tried to run the Tutorial looper along with my looper. It would not work. I had to disable my looper to get it to work
 

KMatle

Expert
Licensed User
Longtime User
I now get are some 10 times less than I got with WIFI

Don't know what your are doing exactly. Note that BT is MUCH slower than Wifi. So if you transfer data in a loop and count how many data your send, you - of course - get less "loops" (loop = send data one time).

If I'm wrong: Please show us your code to understand what you mean.
 
Upvote 0

rodmcm

Active Member
Licensed User
Yes I realise the number is lower with other activities. what surprised me was that it is 2 times slower running BT compared with WIFI for the same program. I am using the looper to trigger analog reads for wave sampling and the lesser rate affects the sampling
 
Upvote 0
Top