- Видео 4
- Просмотров 88 298
AbIoTs Vidya
Индия
Добавлен 17 июн 2021
तमसो मा ज्योतिर् गमय
#iot #esp32 #abiots #espidf #internetofthings #esp #esp8266 #arduino #tutorials #vscode #c++
#iot #esp32 #abiots #espidf #internetofthings #esp #esp8266 #arduino #tutorials #vscode #c++
ESP32 Project | Getting Started with the ESP32 & Pir Sensor | FreeRTOS | PlatformIO | ESP-IDF | C++
This video will help you learn how to create a ESP32 project motion detector using ESP32 & ESP IDF | ESP-IDF C++ | C++ | ESP32 using PlatfromIO in Visual Studio Code | FreeRTOS.
In this video we will explain about the following:
• Creating ESP-IDF component.
• Creating RTOS tasks.
• Reading data from GPIO pins.
• Configuration of GPIO pins.
_____________________________________________________________________________________
Requirements:-
• Esp 32 board
• Visual Studio Code
• PlatformIO
• ESP-IDF
• Pir Sensor
_____________________________________________________________________________________
Chapters:-
00:00 Introduction
00:14 Motion Detector Intro
00:30 Chapters
01:15 Adding variables to kconfig file
0...
In this video we will explain about the following:
• Creating ESP-IDF component.
• Creating RTOS tasks.
• Reading data from GPIO pins.
• Configuration of GPIO pins.
_____________________________________________________________________________________
Requirements:-
• Esp 32 board
• Visual Studio Code
• PlatformIO
• ESP-IDF
• Pir Sensor
_____________________________________________________________________________________
Chapters:-
00:00 Introduction
00:14 Motion Detector Intro
00:30 Chapters
01:15 Adding variables to kconfig file
0...
Просмотров: 1 590
Видео
ESP32 Project | Get Started with the ESP32 & Pir Sensor | FreeRTOS |PlatformIO|Visual Studio|ESP-IDF
Просмотров 4,2 тыс.Год назад
This video will help you learn how to create a ESP32 project motion detector using ESP32 & ESP IDF | ESP-IDF C | C | Getting started with PlatformIO | ESP32 using PlatfromIO in Visual Studio Code | FreeRTOS. In this video we will explain about the following: • Creating ESP-IDF component. • Creating RTOS tasks. • Reading data from GPIO pins. • Configuration of GPIO pins. Requirements:- • Esp 32 ...
Getting Started with GPIO | Esp32 | C++ | PlatformIO | ESP-IDF | Visual Studio Code | ESP IDF C++
Просмотров 21 тыс.2 года назад
This video will help you learn about ESP IDF | ESP-IDF C | C | ESP32 using PlatfromIO in Visual Studio Code. In this video we will explain about the following: • Getting started with GPIO. • GPIO Configurations. • Single Pin Mode Configuration. • Multi Pin Mode Configuration. • Simple Blink • Reading GPIO data. Requirements:- • Esp 32 board • Visual Studio Code • PlatformIO • ESP-IDF Chapters:-...
Getting started with Esp32 and PlatformIO | ESP-IDF | Visual Studio Code | ESP IDF C++ | Esp32 C++
Просмотров 62 тыс.3 года назад
In this video we will explain:- • Getting started with PlatformIO • Platformio install | esp32 platformio install • PlatformIO vscode introduction | esp32 platformio vscode introduction | Platform esp32 introduction • Getting started with ESP-IDF | ESP IDF | esp32 esp-idf | esp32 esp idf • esp idf installation • esp-idf introduction • Hello world program using C • esp-idf c | esp idf c • esp c ...
Hi, I am still not able to get the Hello World to show when monitoring the code. I have already set the log level to verbose but still no output at all actually in the terminal. Thanks.
Which esp32 model are you using?
Hello, thanks for your good content, I have a question because I am new to this PlatformIO. I have an error driver/gpio.h: No such file or directory. I already modified the CMakeLists.txt with: FILE(GLOB_RECURSE app_sources ${CMAKE_SOURCE_DIR}/src/*.*) idf_component_register(SRCS ${app_sources} REQUIRES driver) but the problem remains. Please help
Thank you very much, your response is what keeps me motivated. Have you added the following in the CMAKELists.txt REQUIRES driver ?
So to use the GPIO, you need mention in the Cmakelist.txt that your project requires it. For example: idf_component_register(SRCS "main.cpp" INCLUDE_DIRS "." REQUIRES freertos driver)
Hi, thanks by your good content, I have a question as I new to this PlatformIO, it does have an issue finding "#include "driver/gpio.h"". as im clueless please let me know what path has it or where could i find it
Thank you @juanrequena7150 you response is what keeps me motivated. Have you added the following in the CMAKELists.txt REQUIRES driver ?
So to use the GPIO, you need mention in the Cmakelist.txt that your project requires it. For example: idf_component_register(SRCS "main.cpp" INCLUDE_DIRS "." REQUIRES freertos driver)
Your videos are excellent, they are very well explained and you also teach very specific things, such as the use of the Kconfig file. Thank you very much for your dedication and effort.
Thank you very much😍 Your feedback made my day 🙏🙂. We are constantly trying to upload new videos, but we are getting held up with some personal work.
hi sir, i still waiting for your latest tutorial video.
Hi Alex, Thank you for your response. I'm trying my best to make things work out...will try my best to upload soon.
Esp32 has flash of only 4m, wonder whether c++ could take more memory,
There is esp32 s3 with 128mb flash... C or rust is the best language for embedded. But sometimes, using c++(oops) makes the code better. After using c++, I personally haven't observed any major memory consumption, and esp32 works like charm.
The main thing that makes esp32 famous is the fact that it is cheap. As far as I know the 4mb flash is the cheapest. Already the c library provided is bloated. So I am assuming that c++ will make it more flash hungry. All this matters only for 4mb flash device. Regards.
not for newbies (of 35 years or more of hardware and firmware development). sorry, i quit
What did you use to "align this"in 12:35?
I have installed eclipse keymap plugin in vs code. So i used the eclipse shortcut to align the code clt + shift + f
@@AbIoTsVidya thanks 😁
Very good and deep explain. It's lucky for me you are using esp32 + PIO + Cpp. Just I'm trying to learn to use. Please make some more videos if you could. Thanks a lot.
Thank you, ignacio delvalle. Your support is what keeps us motivated... Yes, we are coming with some new stuff very soon
"Could not initialize project" HELP
Could you elaborate, please, or perhaps share the entire error message
@@AbIoTsVidya the problem occurs when selecting "espresiff iot development framework". PIO Core Call Error: "The current working directory /home/demiiiurgue/Documents/PlatformIO/Projects/queso will be used for the project. The next files/directories have been created in /home/demiiiurgue/Documents/PlatformIO/Projects/queso include - Put project header files here lib - Put here project specific (private) libraries src - Put project source files here platformio.ini - Project Configuration File Resolving esp32dev dependencies... Already up-to-date. Updating metadata for the vscode IDE... Error: Processing esp32dev (platform: espressif32; board: esp32dev; framework: espidf) -------------------------------------------------------------------------------- Verbose mode can be enabled via `-v, --verbose` option CONFIGURATION: docs.platformio.org/page/boards/espressif32/esp32dev.html PLATFORM: Espressif 32 (6.1.0) > Espressif ESP32 Dev Module HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES: - framework-espidf @ 3.50001.0 (5.0.1) - tool-cmake @ 3.16.4 - tool-esptoolpy @ 1.40500.0 (4.5.0) - tool-ninja @ 1.7.1 - toolchain-esp32ulp @ 1.23500.220830 (2.35.0) - toolchain-xtensa-esp32 @ 11.2.0+2022r1 /home/demiiiurgue/.platformio/penv/.espidf-5.0.1/bin/python: No module named pip CalledProcessError: Command '['/home/demiiiurgue/.platformio/penv/.espidf-5.0.1/bin/python', '-m', 'pip', 'list', '--format=json', '--disable-pip-version-check']' returned non-zero exit status 1.: File \"/home/demiiiurgue/.platformio/penv/lib/python3.10/site-packages/platformio/builder/main.py\", line 187: env.SConscript(\"$BUILD_SCRIPT\") File \"/home/demiiiurgue/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py\", line 597: return _SConscript(self.fs, *files, **subst_kw) File \"/home/demiiiurgue/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py\", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File \"/home/demiiiurgue/.platformio/platforms/espressif32/builder/main.py\", line 312: target_elf = env.BuildProgram() File \"/home/demiiiurgue/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Util.py\", line 737: return self.method(*nargs, **kwargs) File \"/home/demiiiurgue/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py\", line 60: env.ProcessProgramDeps() File \"/home/demiiiurgue/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Util.py\", line 737: return self.method(*nargs, **kwargs) File \"/home/demiiiurgue/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py\", line 120: env.BuildFrameworks(env.get(\"PIOFRAMEWORK\")) File \"/home/demiiiurgue/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Util.py\", line 737: return self.method(*nargs, **kwargs) File \"/home/demiiiurgue/.platformio/penv/lib/python3.10/site-packages/platformio/builder/tools/piobuild.py\", line 331: SConscript(env.GetFrameworkScript(name), exports=\"env\") File \"/home/demiiiurgue/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py\", line 660: return method(*args, **kw) File \"/home/demiiiurgue/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py\", line 597: return _SConscript(self.fs, *files, **subst_kw) File \"/home/demiiiurgue/.platformio/packages/tool-scons/scons-local-4.4.0/SCons/Script/SConscript.py\", line 285: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File \"/home/demiiiurgue/.platformio/platforms/espressif32/builder/frameworks/espidf.py\", line 1190: install_python_deps() File \"/home/demiiiurgue/.platformio/platforms/espressif32/builder/frameworks/espidf.py\", line 1099: installed_packages = _get_installed_pip_packages(python_exe_path) File \"/home/demiiiurgue/.platformio/platforms/espressif32/builder/frameworks/espidf.py\", line 1065: pip_output = subprocess.check_output( File \"/usr/lib/python3.10/subprocess.py\", line 420: return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File \"/usr/lib/python3.10/subprocess.py\", line 524: raise CalledProcessError(retcode, process.args, ========================== [FAILED] Took 1.21 seconds =========================="
Hi, these videos are very good. Excelent. Thank you very much. 🙂 Please can you make a video about adding i2c sensor (Sparkfun, Adafruit etc) by using Esp32, FreeRTOS and PlatformIO.
Thank you very much, IIkka. Your support is what keeps us motivated. Sure IIkka, soon we shall be uploading new videos on RTOS, I2C , SPI, BLUETOOTH, WIFI using espidf.
I'm seeing "identifier "GPIO_SEL_2" is undefined C/C++(20)" when trying to make the templated version. I am using windows. What .h file is the macro defined?
Which esp idf version are you using
Just do -> BIT64(GPIO_NUM_2) instead of -> GPIO_SEL_2 In ESP-IDF later versions they deprecated the GPIO_SEL_* macros. They essentially were just macros that add BIT64(), defined like this: #define GPIO_SEL_2 (BIT64(2)) /*!< Pin 2 selected */ and BIT64() is a macro that shifts 64 bits to the left by a num argument you provide, it's defined as: #define BIT64(nr) (1ULL << (nr)) So you could also just do -> (1ULL << GPIO_NUM_2) without any macro I know it's a 9 months old comment, but someone else might find this useful.
Exceptional: all very interesting. As many people say: Keep the good work. ;-)
Thank you very much, Ignacio Delvalle. Your support is what keeps me motivated.
I really appreciated this video, it was very clear, and was my first view of someone using the ESP32 IDF. One comment, though, the frequent SUBSCRIBE notifications (especially with the audio) got really annoying. If you feel you must repeat the subscribe requests, at least do it silently. Thanks.
Thank you very much for responding, John. Please consider it as a noob mistake, I won't repeat it from upcoming videos👍😊
People who ask you to subscribe usually get less viewers subscribing. All the big names don't ask.
Agreed, it was a noob mistake.
Nice video! But i guess the #define directive do not use flash memory even though it is global.
you save my time thanks
Thank you for your response🤩 Your response is what keeps us motivated
Regarding installing EspressIf support, not sure the difference, but their official github documentation recommends to install the Espressif Extension first, and from there that will install ESP-IDF. Have you tried that way (instead of installing IDF via the PlatformIo Extension)? For example, I installed VSCode, PlatformIO, and the EsspressIf extension, but when I run their extension and select Express install, it has an error saying about an invalid IDF (of which I don't have)!
Yes we need to first install the espidf extension from pio. I think you have installed esp idf extension from vscode, you need to install it from pio only. Though you can use official espidf vscode extension aswell. Remember pio espidf extension and vscode espidf extension are not the same.
Hi, this lesson is Excellent! But I'm having issues when I try to build the code with PlatformIO * The terminal process "C:\Program Files\PowerShell\7\pwsh.exe -Command ninja " terminated with exit code: 1. I think that is because of the "space" character in the directory path. How can I correct that? I already tried removing/reinstalling VS code & PlatformIO I have NO problem when I build the same code directly from the ESP-IDF extension
Thank you for your feedback. Your feed is what keeps us motivated.🤩 Did you try renaming the directory with no spaces? If so can you share here the full error message.
Hi @AbIoTs Lab , thanks for the answer. No, i didn't re name the directory. It's a "Program Files" directory, I'm afraid it'd do more bad than good. Is there any way to tell PlatformIO to execute pwsh.exe -Command ninja from a different directory?
I am really sorry @@nahuel3256 I would not be able to solve this issue due to my limited knowledge with windows os, I am more of a linux user. But I will pin this comment hoping someone from community will be able to help you out with this.
@@AbIoTsVidya No worries, thanks a lot anyways!
You are dickhead! Channel making video's for OS is Ubuntu! while you discussing issues for Window-10
Please make more such videos,
Thank you for your feedback Rajat Kumar. Keep supporting us, your response is what keeps us motivated.😀
😍😍😍😍😍
Thank you for replying. Keep supporting us.🙂
Very informative 👏
Thank you very much Nishanth. Keep supporting us.
😍👍🏻😃
Keep supporting us
@@AbIoTsVidya anytime!😍
8:29 way of conservation a 32b type of number "1"to 64b type for moving more then 32b register length, I understood, BUT WAY IT CONVERSATION TWICE to 64 b it already in 64b memory segment has uint64_t???? Please unswerving how know!
When i click on Run Menuconfig and after configurtaion opens i can't move up and down. Which button you use to go from SDK tool configuration to Component config?
You can try using w and s keyword
@@AbIoTsVidya It doesn't work either
Few of my viewers have said J and K keywords worked for them, for the top and down movements....you can try it aswell.
Your videos are far more clear and helpful than anything I've found. There are too many videos using ESP32 + Arduino Framework. Please post more! It's been so great to finally understand ESP32 + ESP IDF.
Thank you very much Tanner King for your feedback.🤩🤩 Your feedback is what keeps us motivated. We are coming up with many new and interesting videos soon....
nice video sir. can you make video with espidf vscode plugin
Thank you for the response. Your response is what keeps me motivated. Sure Akash....will surely do it in near future.
Thanks for amazing tutorial. By the way, how did you know #include "driver/gpio.h"? I wonder how to use(include) vendor-support-library. Is there any documentation about it?
Its documented in esp-idf official website
Great work! Where are your other videos!!!
Thank you for your feedback Ryan....will be uploading new videos soon.
KEEP UP THE GOOD WORK!! I had no idea how to interact with ESP32 before I came to your channel. Now I can walk away know how to create , Build and upload project to blink an LED!! P.S. Please make more videos, you have no idea how much that help us knoobs.
Thank you very much Brian for your feedback.🤩🤩 Your feedback is what keeps us motivated. We are coming up with mamy new and interesting videos soon....
Couple questions. I see that you've only produced 2 videos regarding the ESP32. Are you planning any more? What is the benefit of using Espressif IDF as the framework vs Arduino? Guessing you have more control using IDF but at least for getting started seems like it's simpler to use Arduino and the common Setup() & Loop() methods. Can you provide some info on why it's worth using IDF vs Arduino? What type of things does IDF allow that Arduino doesn't? Appreciate any help. Thanks.
Hi Christopher, Thank you for your response 😊.... Yes I am working on some new videos will be uploading very soon. In simple words if you are working on a hobby project go for arduino but if you are working on a production quality build go for esp idf.
The main disadvantage of arduino is that it works on the concept of super loop. If u have many tasks then It will lead to starvation.....on other hand in esp idf you can use the full power of FreeRTOS.
Hi bro! thanks this video for me are very useful. I tried to do the same with my visual studio code but i can´t because i have a problem with my environment and i can´t fix it yet. Can you help me?
Thank you very much Iucas. Your feedback is what keeps us motivated. We are working on some new videos and will be uploading it soon.
Can you give a little more information like which operating system you are using, what is the exact error message u see...
Please practice speaking without saying “Uhh”, good luck with your channel.
Sure Snivesz32. Many viewers have informed me about this😀, i am trying my best to improve it. Thank you for your feedback. I will try my best to provide quality contents.
Why did you use a cpp file and extern "C", instead of just a c file? Does Visual Studio Code have issues with that? Any thoughts on using Visual Studio Code + Platform IO extension.. versus Eclipse IDE + ESP-IDF plugin? Is there any way to debug (single-step) thru the code on the ESP32? BTW, with so many different ESP32 boards (I'm looking at the ESP32-C3FH4 Risc-V).. do they all work the same? For example, the I/Os will be used differently, but are there some flavors of the chip that can enable internal-pull-up, or be configured for open-drain, etc?
Hi Ben, since this tutorial is espidf with c++ i used cpp extension. I personally have not used eclipse for embedded development, so not sure i can answer your question.😊 Espressif releases new devices frequently some are just esp32 on steroids, some give wifi 6 support some ble 5, like this based on our requirements we can select our esp32.
Thank You !!! In Minute 16:32 you show RunMenuconfig. I cannot find it
Did you open the project in platform io ?
Please give us more videos. We have to learn more about the ESP32 :) Your videos are so informative. Good job!
Thank you very much😍 your response is what keeps us motivated. Yup more interesting videos coming soon.....
Good tutorial. And when you make this 'bell ring' quieter, it is going to be even better.
Sure Shy bkee.......I will make sure all my upcoming videos will have a quieter bell ring.
Very informative video 👌👌
Thank you very much😍 your response is what keeps us motivated.
which resources did you consulted to know what you know right now?, dude you are awesome!!!!
Thank you very much anderson😍 Your feedback is what keeps me motivated.....actually when i was learning this as a hobby I found it very difficult to find any resources which explained me in detail.....so after pursuing the internet when I was finally able to understand stuff, thought of making youtube videos to share my learning.
Really useful video for learning ESP32 Programming....Please continue the series and put more videos....Eagerly waiting for your upcoming videos...
Sure Vignesh will try my best to upload new videos regularly
After searching so many videos and websites , I get clear explanation and correct output by following your video in ESP32....Thankyou...
Thank you for response....your response is what motivates us.
Amazing tutorial! I was looking for esp framework tutorials for my esp32, and this was perfect. Pls make more content
Thank you for your response. Your feedback is what keeps us motivated. We shall upload new videos more frequently.
Excellent tutorial. Thanks for share! ...waiting for more!! :)
Thank you for your response. Your feedback is what keeps us motivated.
Keep doing videos! Good luck😀👍🏼
Thank you very much❤
Nicely produced video. Glad you are able to add new videos. Thanks for showing the gpio config type, I did not know about it.
Thank you for your response. Your feedback is what keeps us motivated.
Please try to make websocket server
Sure we have already planned the video for it. Will be releasing it soon. Will not keep you waiting for long time.
@@AbIoTsVidya thank you, I am waiting for the video
Where are other videos? U rock man
Thank you very much for your response. 😍 In next two days I will be releasing the next video which is GPIO basics. Sorry for delay....will be uploading videos frequently from now on.
@@AbIoTsVidya glad to hear that! God speed Also can you cover a Little bit of esp32-cam, stuff like WiFi streaming ect?
Sure i have planned few videos on esp- prog for development and debugging and also esp 32 cam will cover it soon.👍😊
@@AbIoTsVidya great! Cant wait C:
Thank you for doing this video. It’s the most helpful that I’ve found.
Hi Boyce Schrack, thank you for your response. Your feedback is what keeps us motivated. We are working on many more interesting videos and will be uploading it soon, sorry for the delay in uploading more videos.
Thanks for this detailed vidio. I have followed your instruction. But my compiling process takes a very long time (several minutes) because a lot of files are also compiled in ".pio\build\esp32dev\esp32\....." I cant see this in your video. May i have wrong properties? Do you have an idea what's my issue ?
Hi Behnke Thomas, thank you for your response. It may be because its doing clean build everytime. Its deleting all the build files from cache and re-building everything everytime.
Please stop saying 'ahhh' and 'umm' between words in your presentation. You say it at least once in every sentence, and sometimes several times in the same sentence. It's a very bad habit and infuriating to have to listen to. Don't feel like you have to continuously make sounds. Don't worry, no one will interrupt you if you remain silent between your thoughts and the meaningful things you have to say.
Sure will keep that in mind 👍
I was hoping for more.. For example I am not sure how to use the c++ std::string classes as this platform io thing seem to accept only c libraries
Thank you for your response Mat. I will make sure I explain those features in upcoming videos.