Это видео недоступно.
Сожалеем об этом.

Organise large Arduino codebase with libraries, files and folders // Arduino CLI, Nano 33 BLE Sense

Поделиться
HTML-код
  • Опубликовано: 6 авг 2024
  • #organize #codebase #arduino
    I used to have long Arduino *.ino sketch files that were difficult to debug and add features. In this video, I share several incremental steps to take to split a big Arduino code file into separate different files and folders for future maintainability. Plus, we will use Arduino CLI to install libraries and track its version. We will use the Arduino Nano 33 BLE Sense board for a practical example in one file before splitting the code into manageable bits.
    ⏰ TIMESTAMPS
    0:00 Intro
    02:17 Create new codebase
    06:52 Step 1: Install library
    09:50 Step 2: Split code into *.ino files
    11:31 Step 3: Create header files
    13:07 Step 4: Create header and cpp files
    15:08 Step 5: Create src folder
    17:30 Step 6: Enable multiple tasks in loop()
    20:15 Outro
    ‣ Some links below are affiliate. I receive a small commission at no extra cost to you.
    🎩 DEMO FILES
    Display IMU data with LSM9DS1 and Arduino Nano 33 BLE Sense board hutscape.com/tutorials/nano33...
    Display temperature and humidity data with HTS221 hutscape.com/tutorials/nano33...
    Split up code into more *.ino files hutscape.com/tutorials/nano33...
    Separate files into the header and c++ files hutscape.com/tutorials/nano33...
    Adding header and cpp files to Arduino folder hutscape.com/tutorials/more-f...
    📺 WATCH NEXT
    6 ways to access the serial monitor for Arduino • 6 ways to access the s...
    Arduino CLI and the art of command line • Arduino CLI and the ar...
    Makefiles for using with Arduino • Makefiles for using wi...
    Debugging Arduino firmware with print statements • Debugging Arduino firm...
    🔗 LINKS SHOWN
    Arduino Nano 33 BLE Sense board store.arduino.cc/usa/nano-33-...
    Getting started with the Arduino NANO 33 BLE Sense www.arduino.cc/en/Guide/NANO3...
    Arduino LSM9DS1 IMU library github.com/arduino-libraries/...
    Simple accelerometer example code github.com/arduino-libraries/...
    Arduino HTS221 sensor library github.com/arduino-libraries/...
    Read sensor example code github.com/arduino-libraries/...
    Arduino CLI library specification arduino.github.io/arduino-cli...
    Arduino Sketch build process arduino.github.io/arduino-cli...
    Arduino Sketch specification arduino.github.io/arduino-cli...
    Arduino millis() www.arduino.cc/reference/en/l...
    Writing a library for Arduino www.arduino.cc/en/Hacking/lib...
    🔌 TOOLS USED
    hutscape.com/tools

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

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

    Yes millis are awesome until i find library called taskschduler .

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

    Wow! I can say I have never found a video in which everything is explained the way you did. Crisp, Clear and thorough.

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

    Excellent... Txs .This should be taught very early on as file management is a big problem...for me !

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

    Thank you so much for the step-by-step approach, while still keeping the discussion at a high enough level that we don't get bogged down in the details. It takes a lot of skill to develop tutorials to this level. I've learned so much from you!

  • @raymondmichael4987
    @raymondmichael4987 7 месяцев назад

    Yeah, I’ll keep rewatching this 😊; I love it ❤

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

    Thank you! Your teaching style is so nice - clear, concise, moving quickly from point to point but not skipping over any valuable notes.

  • @christianh.4729
    @christianh.4729 8 месяцев назад

    You have done a great job in creating a video like this. I work in the learning organization of a large company and I know how much effort it takes to create good training material. Here I have to say it is perfect. Great content, well structured, easy to understand and you are a great instructor and it's a pleasure to listen to you. I'll definitely check out the other videos from you.

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

    Such an excellent video. 20 very lightweight and life changer minutes. Loved it.

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

    Really well explained. Great video.

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

    Really love your videos and your straightforward approach to explaining things. Thank you Sayanee 🙂

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

    Thank you @Sayanee, keep the excellent work going!
    Found your video thanks to google's recommendation. I loved your evolutionary approach to maintaining a readable and reusable code base - I see its value in small and large complex projects.
    I also wanted to salute your overall train of thought, I watched your PCB manufacturing and debugging videos. These concepts can be applied to problem solving projects and shorten the path to an MVP that sells the product.
    This is what I call quality content. Thank you.

  • @MrMANOJVELMURUGAN
    @MrMANOJVELMURUGAN 5 месяцев назад

    Thank you so much for creating this video

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

    Thanks! It was very useful video for me :)

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

    Really really good video. Thank you so much.

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

    Thank you, it is a really helpful video!

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

    Extremely helpful

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

    i appreciate your effort to give us the timestamp and resources link! Thank you so much👍 .. and just my thought that PlatformIO would simplify all of these steps i guess?
    EDIT:
    Especially to manage multiple source files and/or libraries.

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

      Yes, definitely PlatformIO is another way. Use what you prefer at the end of the day I guess :)

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

    Me: Wow, this video was incredibly useful! I've been using Arduino for ten years now but I can't wait to apply these techniques!
    Sayanee: And that brings us to the first step of organising a large codebase…
    Me: …first step?
    Video: 7:00 / 21:22
    Me:

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

      arduino-cli will revolutionise my life. thanks so much.

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

    At 3:02, I saw that your vscode editor had shown red underline, how can you fix it?

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

      You have to configure Intellisense for VS Code. I shared how to configure Intellisense for Arduino and using VS Code in general for embedded programming in another video.
      Here's the timestamp: ruclips.net/video/wExzWHlWUTU/видео.html