Introduction to Raspberry Pi Pico C/C++ SDK and Creating Your Own Project from Scratch (LED Blink)

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • This video introduces you to Raspberry Pi Pico's C/C++ SDK. How to create your own project from Scratch - On-Board LED Blink? What is CMake and to use it to build Pi Pico Project?
    Follow up to this video on setting up your Visual Studio Code Build Environment: • How to Set Up Visual S...
    Time Stamps:
    0:00 Intro and Video Description
    0:18 Link to install the required build tools
    0:57 Brief note on PICO SDK
    1:16 C/C++ SDK Layout & Features
    2:26 Steps to Create your own Pico Project
    4:39 Main Program for blink
    8:11 CMake File CMakeLists.txt
    9:41 Build commands for CMake Tool
    13:11 Testing your Program
    GITHUB CODE LINK:
    github.com/Sobhit25/Raspberry...
    The links for the required software is here:
    Arm GCC Compiler: developer.arm.com/tools-and-s...
    CMake: cmake.org/download/​
    Build Tools for Visual Studio 2019: visualstudio.microsoft.com/do...
    Python 3: www.python.org/downloads/wind...
    Git: git-scm.com/download/win​
    Visual Studio Code: code.visualstudio.com/Download​
    If this video helped you, please consider leaving a like and subscribing, thank you!
    You can find more tutorials and projects on my Channel:
    What's new in the Rasberry Pi Pico? Check out these videos
    New videos on Raspberry pi PICO: • Raspberry Pi Pico
    Raspi Pico Projects:- • Raspberry Pi Pico
    Raspi Pico Tutorials:- • Raspberry Pi Pico
    Pico vs STM32 vs Arduino vs ESP32:- • RaspberryPi PICO vs Ar...
    How to use STM32 with Arduino IDE:- • How to use STM32 Board...
    STM32 Playlist :- • STM32 Series
    Arduino Playlist:-
    Follow me on:
    LinkedIn:
    / sobhit-panda-046a2a191
    Twitter:
    panda_sobhit?s=08

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

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

    It's right, official document isn't clear enough in case making own projects... Thank you so much

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

    Thanks a lot 😀

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

    It was awesome tutorial😍

  • @riffsfromtheabyss666
    @riffsfromtheabyss666 5 дней назад

    Do I have to build the examples every time? I just finished watching your other video on getting set up and my pico-examples have been building in vscode for over 10 minutes now. I don't want to have to wait 5-10 minutes every time I want to come back to these tutorials to start learning.

  • @manishankars2636
    @manishankars2636 11 месяцев назад

    Hi @sobhit panda I'm glad that I have seen your videos on pico it's awesome man , I'm trying to do the same on ubuntu since 10days u cleared it so well here. Please make some more videos relating to this . Thank you 😊 🎉

  • @gautombose4172
    @gautombose4172 10 месяцев назад

    Excellent Video. RPI Foundation has now released, one click, PICO SDK installation. Also, if one uses the Pico Debug Probe, then the download is via the, 3 pin SWD, connection. This video is excellent in explaining how to create a stand alone project. Can you please do more videos showing how to use other examples eg. analog, I2c, serial driver to LCD etc. please do a video, showing, how to do debugging a pico application, using Pico debug Probe.

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

    Very Nice video Sir. Wow My God Nice!

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

    Hi
    When I open VSCode, i do not get automatic compilation starting. How do i set VSCode to
    1. auto compile, 2. set default compiler
    I get this message
    Unable to open 'launch.json': Unable to read file 'c:\pico\pico-examples\.vscode\launch.json' (Error: Unable to resolve nonexistent file 'c:\pico\pico-examples\.vscode\launch.json').
    Please help.

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

    thanks for blowing my eardrums :-(

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

      Dude , I am really sorry! I got a bunch of comments regarding the same. I'll keep that in mind from next time while editing. I really didn't intend to do so...
      Hope you will subscribe to give me another chance.

    • @ingramjs
      @ingramjs 3 года назад +1

      @@SobhitPanda thanks for the reply, apology accepted:-) - I will check out your other videos

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

    The official document is not very clear about the process. Thank you for making this video.

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

      Thankyou so much for your wishes ❤️ Hope you Subscribe

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

    I am getting nmake error. Nmake can not be found. How do I get NMake? Thanks.

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

      I was having this problem also.

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

      You need to run "developer command prompt for visual studio" as admin

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

    Very helpful.
    Most of the instructions I was able to find used the pico-examples to show how to build, but when making my own it never seemed to work. Followed your steps here and managed to successfully compile a uf2 file on first attempt.

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

    Cmake website is not working. Is there any alternate way? ...plz tell me

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

      Yeah i know sometimes its down, check now...

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

      @@SobhitPanda It's working now..Thanks for replying. By the way awesome tutorial :)

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

      @@musicaddict4833 Do show your love by hitting the subscribe button 🔘

  • @MadhuKumar-hi2qs
    @MadhuKumar-hi2qs 3 года назад +1

    Can you please make video on how to connect NRf24L01 module with pico

    • @SobhitPanda
      @SobhitPanda  3 года назад +1

      Sure Man, added it to my TO DO List. Stay tuned and Subscribe. Thanks for commenting

  • @AlejandroGarcia-zx4cq
    @AlejandroGarcia-zx4cq 3 года назад +1

    Hello I interested on make a libraries for raspberry pico but I dont know how to configure cmake ...
    Can you explain on a video how to configure cmake to make a library for raspberry pico?

    • @SobhitPanda
      @SobhitPanda  3 года назад +1

      Yeah Sure, if I get through it, I will make a video of it. I am too unable to make one

    • @SobhitPanda
      @SobhitPanda  3 года назад +1

      techtinkering.com/2013/02/12/using-dynamically-generated-header-files-with-cmake/
      Hope this helps

    • @AlejandroGarcia-zx4cq
      @AlejandroGarcia-zx4cq 3 года назад +1

      @@SobhitPanda thanks I can try for this form but the problem is when I import "pico_stdlib"

    • @SobhitPanda
      @SobhitPanda  3 года назад

      @@AlejandroGarcia-zx4cq I under... I am trying, if i get a solution I will contact you👍

    • @AlejandroGarcia-zx4cq
      @AlejandroGarcia-zx4cq 3 года назад

      @@SobhitPanda thanks for try to help
      Thank you very much

  • @juanc.morales7060
    @juanc.morales7060 2 года назад +1

    Hello, I liked very much this video. I have a question: What if I want to use an external library, like wirinPi? How can I include in my program and where should I copy it? All procedure is the same for c++?

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

      We can include it with the help of CMakeLists.txt file and main.c file

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

      Thanks for the support

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

      Apart from pico sdk you can attach any include file by using "" and keeping the header package in native folder of your project.

    • @juanc.morales7060
      @juanc.morales7060 2 года назад +1

      Great, thanks a lot for your valuable contribution

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

      @@juanc.morales7060 Actually I. Busy with my academics right now, but i will make a video about my recent project where I have used other headers and sdks and programmed in C++

  • @antoniojohnson7693
    @antoniojohnson7693 3 года назад +1

    I still get the squiggles saying it cannot detect the pico/stdlib.h file.

    • @SobhitPanda
      @SobhitPanda  3 года назад +1

      Did you add the path of sdk in VSCode?

    • @antoniojohnson7693
      @antoniojohnson7693 3 года назад +1

      @@SobhitPanda Yeah. I have the path in the Cmake: Configure Environment

    • @SobhitPanda
      @SobhitPanda  3 года назад +1

      Have you imported the sdk file and given the command to import the library in cmake. If yes, try to restart the vs code. And make sure you open with developer cmd prompt with Admin Permission

    • @SobhitPanda
      @SobhitPanda  3 года назад +1

      Still if you face any problem, you can share your screen shot of files to mail, sobhitpanda25@gmail.com

    • @SobhitPanda
      @SobhitPanda  3 года назад

      Did it work now? You can try my code from GitHub. Hope you have a good day 😊

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

    Well it’s so weird I have been working on pico with windows 11 but still not working it been 3 days anyone can help ? I installed all of them but still there is no any solution

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

      There is an easy toolchain installer out by raspberry Pi for Pico. You can try that.

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

      @@SobhitPanda on your channel ? Or I have to watching that video ? I didn’t watching yet so

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

      @@mehmetbilen1667 Not on my channel though, you can check on youtube

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

      @@SobhitPanda May you share link of that please?

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

      @@SobhitPanda and I want use pico with my macOS and windows laptops so do you have any email ?

  • @shaddonai2636
    @shaddonai2636 3 года назад +3

    this is basically arduino, why there isn't low level access to the pinout?

    • @SobhitPanda
      @SobhitPanda  3 года назад +5

      You are right my friend, Pico has close call with arduino. In this video I said that you can access the hardware manually without APIs also. Do you want a video on that? I can make it😁, Thanks for commenting. Hope you subscribe for more❤️

    • @jeekakrishna
      @jeekakrishna 3 года назад +1

      @@SobhitPanda yeah, make a detailed video for noob who hasnt invested in anything but wants to learn and grow so what should he buy.

    • @SobhitPanda
      @SobhitPanda  3 года назад +1

      @@jeekakrishna Yeah Sure, I will ☺️

    • @SobhitPanda
      @SobhitPanda  3 года назад +3

      @@jeekakrishna If you want to learn embedded systems , stm32 would be great. But its tough and frustrating. So arduino would be easy and fun, but it isnt progressive. So, pico can be a good choice for your needs. As you get support from C and Python. Plus the community is very good. Moreover its dirt cheap.

    • @jeekakrishna
      @jeekakrishna 3 года назад +1

      @@SobhitPanda then I will either get a raspberry Pi or rasberry pico

  • @1toneboy
    @1toneboy 3 года назад +1

    Visual studio....no thanks, I'll wait for Arduino IDE and do it on Linux.

    • @SobhitPanda
      @SobhitPanda  3 года назад +1

      Its a pain right. 😂 I am also waiting for Arduino IDE, why don't you try Micro Python. Thanks for commenting ❤️. Subscribe 😁

    • @1toneboy
      @1toneboy 3 года назад +1

      @@SobhitPanda Thanks, but I'm a C purist...

    • @SobhitPanda
      @SobhitPanda  3 года назад +1

      @@1toneboy ❤️hey me too😉

    • @SobhitPanda
      @SobhitPanda  3 года назад

      Try Platform IO