2 Parallel Loops on ESP32 No Delay using Arduino IDE

  Переглядів 19,285

Electronic Junkies

Electronic Junkies

День тому

We have all been there where we thought i wish i could do this independently of the main loop . This is a basic tutorial on multi-core programming on ESP32.
You can get both versions of the code on our website
www.electronicjunkies.net/ind...
MUSIC:
Track: ROY KNOX x WTCHOUT - Shadows (Feat. Sviivan) [NCS Release]
Music provided by NoCopyrightSounds.
Watch: • ROY KNOX x WTCHOUT - S...
Free Download / Stream: ncs.io/RWShadows

КОМЕНТАРІ: 68
@SimonWahlin
@SimonWahlin 2 роки тому
Great video! Looking forward to the next one!
@chathuva
@chathuva Рік тому
Bruh! You deserve more subscribers. Love the way you present. You earned another subscriber just now 🖤
@TheBadazzspaniard
@TheBadazzspaniard 2 місяці тому
Super easy to follow, right to the point. Fantastic tutorial
@susannadesu
@susannadesu 2 роки тому
The video i was looking foooooooor😭❤❤ thank you
@dvgelectrician1605
@dvgelectrician1605 Рік тому
What a video. thanks lot. Aap ki mehnat hiaap ki taakat hai. keep it up.
@kursorgildas
@kursorgildas Рік тому
Thank you for making this video, so helpfull
@Hasan...
@Hasan... 2 роки тому
Top quality content, I actually scrolled to check whether you have 100k subs or more... Seems like I have to check back in a month to see those numbers,. that's inevitable with such content 👍🏻 in sha Allah, keep going!
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
InshAllah Thank you so much !
@SmartieTV
@SmartieTV Рік тому
Awesome video!
@kevin2706
@kevin2706 2 роки тому
May god bless you my friend thank you
@sadamhussain816
@sadamhussain816 9 місяців тому
Thank You man
@adambeedle
@adambeedle 2 роки тому
Great video mate 👍
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
Thanks mate !
@azherbhatti5777
@azherbhatti5777 2 роки тому
Wonderful
@noobnitesh
@noobnitesh 2 роки тому
"this chip esp32 , and the things it can do " it rhymes
@nasirbhatti6853
@nasirbhatti6853 2 роки тому
Damn..it's stuck in my head now
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
😁😁😁
@AiPhile
@AiPhile 2 роки тому
Awesome 💓
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
Thank you bro .
@muhammadsaimhashmi2425
@muhammadsaimhashmi2425 2 роки тому
Superb 😍👍
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
Thanks alot bro
@AmrShtat
@AmrShtat Рік тому
Great!
@bluegizmo1983
@bluegizmo1983 6 місяців тому
0:15 Missed an opportunity there! Should've had the red LED on the timed loop and used the blue button to turn on the blue LED
@eee-bro
@eee-bro 2 роки тому
Ma-sha-allah...
@ishdemon_
@ishdemon_ 2 роки тому
you can simplify using while(true) { } instead of for loop
@hasnainbadar
@hasnainbadar 2 роки тому
Mashallah zbardast
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
Thank you jani !
@HuslevesM
@HuslevesM Місяць тому
Instead of using delay you should learn to use interrupts and timers, those run independent from the core. You won't lose so many clocks only a few.
@muzammilzafar5640
@muzammilzafar5640 2 роки тому
❤️
@athha_
@athha_ 2 роки тому
brother i have an issue on vs code it is saying functio name which is task1 is not defined in th scope of void setup how t0 initialize that name
@shaziabhatti0637
@shaziabhatti0637 2 роки тому
👍👍
@WagonLoads
@WagonLoads 6 місяців тому
WOW! I just found this... I would like to see how this can be used to send and receive json data for robotics. Like being able to control a robot, while at the same time, getting system data from the robot.. Temperature, battery level, direction, etc... And I mean for a robot that could be 1000 miles away...
@kursorgildas
@kursorgildas Рік тому
Is there any added library to download before running this program, sir?
@ElectronicJunkies
@ElectronicJunkies Рік тому
No library needed you just have to choose ESP32 dev board as your device and the functionality should be available
@nguyenvankhanh5330
@nguyenvankhanh5330 2 роки тому
You can do it because of two reasons: two-core MCU and Multi-tasking of freeRTOS, right?
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
Yes exactly . That is correct .
@muhammdhamza3583
@muhammdhamza3583 Рік тому
I've a problem with the integration of neo 6m gps with max30102 and bmp180 temperature sensor. The problem is of watchdog error I've used freeRTOS and board I'm using is esp32 devkit v1 and the platform is Arduino. Can you help me with that? Note: I'm using wifi and the is sent to the firebase.
@ElectronicJunkies
@ElectronicJunkies Рік тому
Hi Thank you for your comment . Are you using multiple processors as we show in this video or is it a sequential code ? Watchdog is usually triggered when the processor becomes unresponsive . I am assuming that ESP32 is being overloaded somehow . For details we will need to look at the complete error and code. If you have a debugger that would be great so you can debug line by line . Otherwise you can try serial.print debugging
@Allinone-vu9wo
@Allinone-vu9wo 2 роки тому
👍
@pramodjalgaonkar1221
@pramodjalgaonkar1221 Рік тому
Bro kya speed divide hogi esp 32 ki 2 loop creat karne se ? Kitne Loop creat kar sakta hu?
@ElectronicJunkies
@ElectronicJunkies Рік тому
No bro speed divide nai hogi because your code is running on different cores. 2 loops create karskte ho because only 2 cores hain.
@rahimkhizar3301
@rahimkhizar3301 Рік тому
Samagh nhi aya par acha laga😅
@wassinimag1031
@wassinimag1031 Рік тому
please i have 2 programme 1 is RFID an other is 5 button for light you can help me for make this 2 programme in one thank u
@ElectronicJunkies
@ElectronicJunkies Рік тому
Yes sure . Please contact us on facebook.
@prov_s195
@prov_s195 Рік тому
Why this channel has only 800 subs?
@ahamedm.h.a9205
@ahamedm.h.a9205 2 роки тому
mate my infinite loop shows a error message which reads "undefined reference to `loop()' " could you help me out?
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
Hi are you sure that you have the Arduino.h included ? Are you using the Arduino environment ? Please share you code . So that we can help you.
@daryl7237
@daryl7237 Рік тому
Hi can nano use this code also?
@ElectronicJunkies
@ElectronicJunkies Рік тому
Unfortunately no . We don't think nano has 2 processors
@daryl7237
@daryl7237 Рік тому
@@ElectronicJunkies ok thanks !by the way which ESP32 mode u using?
@muhammad_talha
@muhammad_talha 2 роки тому
mujy arduino uno lena chahiya yan esp32 wemos D1 lena chahiya?
@nasirbhatti6853
@nasirbhatti6853 2 роки тому
Brother kis kam k liye ?
@muhammad_talha
@muhammad_talha 2 роки тому
@@nasirbhatti6853 naya IoT me ana chahra ho to mujy in Iot board me bara me pata ni ha *want to make AI car using opencv python and deep learning*
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
@@muhammad_talha For IoT and AI at least raspberry pi is needed . ESP32 is suitable for only small applications . Thori bohat face recognition wagaira hojaegi esp32 pe but no proper AI
@ElectronicJunkies
@ElectronicJunkies 2 роки тому
@@muhammad_talha For great AI videos checkout AIphile .
@muhammad_talha
@muhammad_talha 2 роки тому
@@ElectronicJunkies there are many channel murtaza AI robotics, sentdex, python engineer but problem is hardware
@waterfallphd8040
@waterfallphd8040 6 місяців тому
Asembly language pliz
@muratalsu238
@muratalsu238 2 роки тому
Core 1 panic'ed???????? For Ds1307 ??
@sadamhussain816
@sadamhussain816 9 місяців тому
Solved?
@muratalsu238
@muratalsu238 9 місяців тому
@@sadamhussain816 it has been a long time. Maybe it's fixed because I'm using another library. I found special library for esp32. I don't remember exactly
@sadamhussain816
@sadamhussain816 9 місяців тому
@@muratalsu238 okay thank you
@zulkarnainkarim
@zulkarnainkarim 2 роки тому
Can I do the same with uno or nano?
@ElectronicJunkies
@ElectronicJunkies Рік тому
No they have only one core
How to do multiple tasks in Arduino | Beginners | millis() function
10:23
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 509 тис.
Анита просто на химии, поэтому такая сильная
00:21
Женя Лизогуб SHORTS
Переглядів 2,8 млн
ЧТО ДЕЛАТЬ, ЕСЛИ НЕ ХВАТАЕТ ДЕНЕГ НА ВОССТАНОВЛЕНИЕ ТАЧКИ?
47:52
Лизка заплакала смотря видео котиков🙀😭
00:33
[TMT] Using Both Cores Of The ESP32 Using Arduino
2:54
Brian Lough
Переглядів 23 тис.
Debugging the Arduino Uno or Nano! (No extra hardware needed!)
6:58
J's e-shack
Переглядів 55 тис.
If you don’t learn sprintf(), your code will hate you later
8:34
Programming Electronics Academy
Переглядів 48 тис.
How to use millis() function to multitask in arduino code.
10:34
Mario's Ideas
Переглядів 55 тис.
12 Useful & Interesting ESP32 Projects for Beginners!
9:41
ToP Projects Compilation
Переглядів 565 тис.
YOU can Learn the ESP32 in 15 Minutes:  Hello World!
22:52
Dave's Garage
Переглядів 277 тис.
Double your Arduino IDE Compiling Speed - ESP32, Arduino
7:59
John - Mostly Magic Smoke
Переглядів 8 тис.
Arduino IDE 2.0 - Overview and New Features
9:47
Gary Explains
Переглядів 79 тис.
ESP32 Dual Core Programming | ESP 32 Multitasking
4:37
electronic GURU
Переглядів 16 тис.
Анита просто на химии, поэтому такая сильная
00:21
Женя Лизогуб SHORTS
Переглядів 2,8 млн