Getting Started with GPIO | Esp32 | C++ | PlatformIO | ESP-IDF | Visual Studio Code | ESP IDF C++

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • 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:-
    00:00 Introduction
    00:16 Abiots Channel Intro
    00:26 Requirements
    00:35 Getting started with GPIO
    02:50 GPIO Configurations
    05:56 GPIO Single Pin Configuration
    16:24 GPIO Multi Pin Configuration
    21:25 Simple Blink Program
    26:13 Reading Data from GPIO
    31:48 Bidding adieu
    _____________________________________________________________________________________
    Links and references:-
    • ESP IDF GitHub repository:- github.com/espressif/esp-idf
    • ESP-IDF Programming Guide :- docs.espressif.com/projects/e...
    • Abiots GitHub link:- github.com/AbIoTsolution/esp3...
    • ESP32 Template application:- github.com/AbIoTsolution/esp-...
    • Espressif Reference Document: www.espressif.com/sites/defau...
    _____________________________________________________________________________________
    Credits(Thank you, this video would not have been possible without you):-
    • / 374784000240131877
    • exploreembedded.com/wiki/Inte...
    • create.arduino.cc/projecthub/...
    • techawarey.com/wp-content/uplo...
    • www.espressif.com/sites/defau...
    • www.mischianti.org/wp-content...
    _____________________________________________________________________________________
    This is just the one of many ESP32-related videos, so be sure to subscribe for more!
    Things to refer:-
    • We have a playlist dedicated entirely to ESP32:- • ESP32 Series
    I hope you enjoy the video and please stay inside and stay safe!
    AbIoTs Lab
    #Iot #Esp32 #Espidf #platformio #vscode #abiots #abiotsLabs #internetofthings

Комментарии • 50

  • @ignaciodelvalle158
    @ignaciodelvalle158 Год назад +3

    Exceptional: all very interesting. As many people say: Keep the good work. ;-)

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад

      Thank you very much, Ignacio Delvalle. Your support is what keeps me motivated.

  • @hiellothere
    @hiellothere Год назад +4

    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.

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад

      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....

  • @johnburgess2084
    @johnburgess2084 Год назад +3

    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.

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад

      Thank you very much for responding, John.
      Please consider it as a noob mistake, I won't repeat it from upcoming videos👍😊

    • @CasaMaryParadise
      @CasaMaryParadise Год назад +1

      People who ask you to subscribe usually get less viewers subscribing. All the big names don't ask.

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад

      Agreed, it was a noob mistake.

  • @brian8687
    @brian8687 2 года назад +5

    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.

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад +1

      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....

  • @boyceschrack2537
    @boyceschrack2537 2 года назад +2

    Nicely produced video. Glad you are able to add new videos. Thanks for showing the gpio config type, I did not know about it.

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад

      Thank you for your response. Your feedback is what keeps us motivated.

  • @iiilllii140
    @iiilllii140 2 года назад +3

    Please give us more videos. We have to learn more about the ESP32 :)
    Your videos are so informative. Good job!

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад

      Thank you very much😍 your response is what keeps us motivated. Yup more interesting videos coming soon.....

  • @paulmurani8832
    @paulmurani8832 2 года назад +3

    Amazing tutorial! I was looking for esp framework tutorials for my esp32, and this was perfect. Pls make more content

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад

      Thank you for your response. Your feedback is what keeps us motivated. We shall upload new videos more frequently.

  • @ZiclopDevices
    @ZiclopDevices 2 года назад +1

    Excellent tutorial.
    Thanks for share!
    ...waiting for more!! :)

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад +1

      Thank you for your response. Your feedback is what keeps us motivated.

  • @vigneshs6232
    @vigneshs6232 2 года назад +1

    Really useful video for learning ESP32 Programming....Please continue the series and put more videos....Eagerly waiting for your upcoming videos...

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад

      Sure Vignesh will try my best to upload new videos regularly

  • @wahidshirdel1119
    @wahidshirdel1119 Год назад +1

    you save my time thanks

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад

      Thank you for your response🤩 Your response is what keeps us motivated

  • @shreekantsureliya
    @shreekantsureliya 2 года назад +1

    Very informative video 👌👌

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад

      Thank you very much😍 your response is what keeps us motivated.

  • @BigBiteKannada
    @BigBiteKannada 2 года назад +1

    Keep doing videos! Good luck😀👍🏼

  • @mich29sm
    @mich29sm 2 года назад +2

    Good tutorial. And when you make this 'bell ring' quieter, it is going to be even better.

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад

      Sure Shy bkee.......I will make sure all my upcoming videos will have a quieter bell ring.

  • @andyrodrigoalvarado118
    @andyrodrigoalvarado118 2 года назад +1

    which resources did you consulted to know what you know right now?, dude you are awesome!!!!

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад

      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.

  • @ryanbellyt
    @ryanbellyt 2 года назад +1

    Great work! Where are your other videos!!!

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад

      Thank you for your feedback Ryan....will be uploading new videos soon.

  • @bennguyen1313
    @bennguyen1313 2 года назад +1

    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?

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад

      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.

  • @Alex-rv8gw
    @Alex-rv8gw 6 месяцев назад +1

    hi sir, i still waiting for your latest tutorial video.

    • @AbIoTsVidya
      @AbIoTsVidya  6 месяцев назад

      Hi Alex, Thank you for your response. I'm trying my best to make things work out...will try my best to upload soon.

  • @akashsivasubramanian4067
    @akashsivasubramanian4067 Год назад +1

    nice video sir. can you make video with espidf vscode plugin

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад +1

      Thank you for the response. Your response is what keeps me motivated.
      Sure Akash....will surely do it in near future.

  • @davidh.t.harrison
    @davidh.t.harrison Год назад +1

    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?

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад

      Which esp idf version are you using

    • @CreepyMemes
      @CreepyMemes 6 месяцев назад +1

      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 (1ULL

  • @kangsankim3753
    @kangsankim3753 2 года назад

    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?

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад

      Its documented in esp-idf official website

  • @serggorod1423
    @serggorod1423 Год назад

    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!

  • @skjaikumar
    @skjaikumar Год назад +1

    Esp32 has flash of only 4m, wonder whether c++ could take more memory,

    • @AbIoTsVidya
      @AbIoTsVidya  Год назад

      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.

    • @skjaikumar
      @skjaikumar Год назад

      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.

  • @senthilkumar-fy1cq
    @senthilkumar-fy1cq 2 года назад +1

    Please try to make websocket server

    • @AbIoTsVidya
      @AbIoTsVidya  2 года назад

      Sure we have already planned the video for it. Will be releasing it soon. Will not keep you waiting for long time.

    • @senthilkumar-fy1cq
      @senthilkumar-fy1cq 2 года назад +1

      @@AbIoTsVidya thank you, I am waiting for the video