7 Arduino Tips for New Programmers

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ก.พ. 2022
  • 🤩 FREE Arduino Crash Course 👇👇
    bit.ly/get_Arduino_skills
    **Want to learn more? Check out our courses!**
    bit.ly/3GNMF6w
    **Download the Pieces app!**
    bit.ly/3Jr4tFW
    ** Get the 10 Tips PDF **
    www.programmingelectronics.co...
    **We designed this circuit board for beginners!**
    Kit-On-A-Shield: amzn.to/3lfWClU
    FOLLOW US ELSEWHERE
    ---------------------------------------------------
    Facebook: / programmingelectronics...
    Twitter: / progelecacademy
    Website: www.programmingelectronics.com/
    ________________________________
    **About Us:**
    This Arduino lesson was created by Programming Electronics Academy. We are an online education company who seeks to help people learn about electronics and programming through the ubiquitous Arduino development board.
    **We have no affiliation whatsoever with Arduino LLC, other than we think they are cool.**

ความคิดเห็น • 47

  • @ChadKapper
    @ChadKapper 2 ปีที่แล้ว +18

    By far the best Arduino videos on all of the internet!!

  • @TheJimtanker
    @TheJimtanker 2 ปีที่แล้ว +9

    I've been working in Python a lot lately. One thing that I learned is to run through your algorithm as comments and then start coding. Makes things a lot easier. I listened to one lecture that said that comments aren't there to tell someone what the code is supposed to do, code is there to tell the computer what the comments are meant to do.
    Comments, comments, comments!
    Love Programming Electronics Academy!

  • @fernmiranda
    @fernmiranda ปีที่แล้ว +2

    They way you talk and teach meshes extremely well with my brain. Don’t know if that’s a compliment but thank you so much for putting these vids out. I jumped into all this electronics and coding stuff, feet first and it’s pretty crazy.

  • @bibel2k
    @bibel2k 2 ปีที่แล้ว +10

    I teach in High Schools electronics and Robotics.
    Most of the senior year make projects with Arduino and by far your channel is one of my favorites.
    Besides that good explanation the visualization is astonishing.
    Thank you

  • @electronron1
    @electronron1 2 ปีที่แล้ว +6

    I would add: On larger programs use Tabs for functions and group related functions into a single tab. Example: A tab for a read humidity sensors function and grouped with it could be CtoF and FtoC functions. I keep my tabs in the preferred order by prefixing each tab with a letter of the alphabet as in a_Humidity, b_Control, y_Setup, z_Loop. Setup and Loop are always y_ and z_ in my Sketches. The tab that I use to load libraries and define global variables is always the first tab I create, has no prefix and is the name of the sketch. This tab has always shown up as the first tab of my sketch despite not being prefixed. Oh and as was stated in the video, verify, verify, verify.

  • @tb303wpf1
    @tb303wpf1 11 หลายเดือนก่อน +2

    Another superb video with invaluable information! It's so rewarding to have code that you edited come to life in a project. I am a baby when it comes to C++. But watching your videos has allowed me to figure out alot of what I needed to know in order to get my project off the ground. Thank you again for helping me along my microcontroller journey! I'm so excited at how many amazing new doors have opened up for me by using microcontrollers. I'm going to be very busy! Lol

  • @ianbertenshaw4350
    @ianbertenshaw4350 2 ปีที่แล้ว +8

    Fantastic video !
    I heard somewhere that Arduino IDE doesn’t care where the functions are located - a lot of people put them after the loop and if you do this on something like platform io you get error messages as it wants them up before the set up. It makes for neater code and you don’t have to keep going right to the bottom to check something in a function .

    • @programmingelectronics
      @programmingelectronics  2 ปีที่แล้ว +2

      Thanks for sharing this Ian!

    • @Henry-sv3wv
      @Henry-sv3wv 2 ปีที่แล้ว +2

      you have to forward declare a c/c++ function if not defined before use.
      because arduino is also for noobs the ide does some auto generation of prototypes mixing them above your code and sending that to the gcc compiler

    • @electronron1
      @electronron1 2 ปีที่แล้ว +3

      I've had programs not work because the functions were after the Setup and Loop and work fine after moving them before the Setup and Loop functions.

  • @robertrobert5583
    @robertrobert5583 2 ปีที่แล้ว +4

    Great tips from the best teacher. I did the PEA course a few years ago really recommend it.

  • @mr.goldenrod291
    @mr.goldenrod291 2 ปีที่แล้ว +2

    Tip #1 is called writing pseudocode.
    I’ve been using PuTTY to capture and save to a text file serial output from an Arduino connected to my PC when the Arduino IDE is not running. I’ve been able to find logic errors that “randomly” occur.

  • @epartsacc
    @epartsacc 2 ปีที่แล้ว +2

    Invaluable content. Thank you

  • @tarsamsingh1299
    @tarsamsingh1299 2 ปีที่แล้ว +2

    Thanks for sharing your knowledge
    I thank you for all efforts

  • @uploadideaswithitamar
    @uploadideaswithitamar ปีที่แล้ว +1

    Great video. Thank you

  • @robertrobert5583
    @robertrobert5583 2 ปีที่แล้ว +5

    My tip would be, "=" means "is". "==" means "is equal to". If my sketch compiles but doesn't work, I check for a rogue "=".

    • @MichaelJamesAdventure
      @MichaelJamesAdventure 2 ปีที่แล้ว

      Nice! Thanks for sharing - that one definitely gets me from time to time!

    • @sorryboss8550
      @sorryboss8550 7 หลายเดือนก่อน

      I have programmed before so that’s not really a problem, the camel case gets to me though

  • @Volker-Dirr
    @Volker-Dirr 4 หลายเดือนก่อน

    True. I think your Tip 4 "Incremental Design" ist in fact more then you told. In my opinion it is also learn coding first and electronics second. So in my opinion learn like the first chapters of an c or c++ tutorial first (so about variables, loops, functions, ...) and then start learning how to connect sensors and buttons with the Arduino. You will be much quicker if you learn that separately. Sadly all Arduino tutorial always don't follow your Tip 4 and tries to teach coding and build the electronic at the same time; and I think that is a reason why so many guys fail with Arduino. They should teach coding first only. As a workaround I think it is useful to learn the first chapters of c or c++ tutorials, even it sounds stupid to learn an other language first, but is in fact the same.

  • @joshuapitong899
    @joshuapitong899 ปีที่แล้ว

    Thank you so much.🙌❤

  • @Hei65
    @Hei65 8 หลายเดือนก่อน +1

    Great!

  • @anders5783
    @anders5783 ปีที่แล้ว +1

    Great video. But the best way to verify code is to debug it. Is there any debugger in the IDE or?

    • @programmingelectronics
      @programmingelectronics  ปีที่แล้ว

      In Arduino IDE 2.0 there is a debugger, but it does not support all the boards.

  • @GoGoGeorg.W
    @GoGoGeorg.W 10 หลายเดือนก่อน

    Write sketch/algorithm... first on paper is the most important thing in many areas, like programming(what I'm trying to learn), constructing something in CAD software and, making new videos...
    For me making code algorithms is easy but writing it to code is the hardest thing ever. Most of my projects aren't finished because I don't know anything about code writing. I'm not a programmer but I have written a code sketch for my friend and it worked. How?

  • @Bryan-zf4mi
    @Bryan-zf4mi 2 ปีที่แล้ว +3

    sick

  • @robertofkennedy
    @robertofkennedy ปีที่แล้ว +1

    Can I use an ISR to exit a for Loop?

    • @programmingelectronics
      @programmingelectronics  ปีที่แล้ว

      Great question! An ISR can interrupt a for loop, but once the ISR returns (ie finishes), you'll be back in the for loop.

    • @robertofkennedy
      @robertofkennedy ปีที่แล้ว

      @@programmingelectronics how do I exit out of a for Loop if needed. I'm new at programming. Esp32 motor control for a gate system. 1 month later it works mostly.

  • @bobmirror7164
    @bobmirror7164 ปีที่แล้ว

    So what is wrong with copy past code into notepad file. Then add a date and a description and the url. Then you can use crtl + F to search key words in the file.

  • @DaniyalKhan-jh6fe
    @DaniyalKhan-jh6fe ปีที่แล้ว +1

    Hello

  • @arduinomaquinas
    @arduinomaquinas ปีที่แล้ว +1

    Like 643

  • @lokergames7058
    @lokergames7058 ปีที่แล้ว

    Pac man eat curly {}