How to set up an Arduino Library :: Video #1 :: Arduino Library Series

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024

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

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

    ****If you like this, I think you'll like the premium Arduino training we offer. You can check it out here**** bit.ly/3lHyzcB

  • @bogus_not_me
    @bogus_not_me 5 лет назад +4

    Still the best tutorial I've seen. Even explained things I thought I knew that turnsd out not quite right. Now I wish I knew someone that was messing with Arduino so I could refer/share this channel.

    • @grahamevans5304
      @grahamevans5304 5 лет назад

      hi Carl, i seem to fit the description messing about with arduino if you wish to contact me. I have subscribed to your channel.

  • @gartmorn
    @gartmorn 8 лет назад +1

    Just getting into arduino and found this really helpful. I think it's assumed most people using this type of device are programming savvy and the basics are often ignored whereas you have taken nothing for granted which is refreshing. Well done!

    • @programmingelectronics
      @programmingelectronics  8 лет назад

      Glad you like it! Thanks for watching.

    • @bazzilla9776
      @bazzilla9776 8 лет назад

      Programming Electronics Academy are there going to be more lessons on the free course? thanks,

  • @mariuspetcu7482
    @mariuspetcu7482 9 лет назад +1

    What Larry Abbernathy sad : "...Thanks!! I was having major problems with libraries. Your tutorial cleared up my issues. It was clear, concise and complete. Based on this, I subed and am looking forward to your other videos... " was EXACTLY my major issue during the last 3 month at least !!! .
    Actually You SAVED MY LIFE ! . I spend more than 50 hours Installing / deleting and Reinstalling HOLE Arduino program and the Numerous Libraries .
    MANY THANKS for that Video . Please don't stop here . "We Are Watching You " .
    Be well and Stay Safe .

  • @hudsonriverlee
    @hudsonriverlee 7 лет назад

    When you reached the point in this tutorial about zip files, remember, there are people on planet earth whom may have never been exposed to zip files, or, have heard of them, however, never personally been involved in Unzipping them. The information you present is quite helpful . Those whom are quite familiar will just follow along. Those who are not, can rewind the tutorial until they feel most comfortable moving forward. I feel very fortunate to be able to view your tutorials.

  • @runedyrting8476
    @runedyrting8476 7 лет назад +1

    Thank you. This video cleared up a lot for me. Its impossible to get into 3d printing, without knowing the basics about Arduinos.

  • @DavidConnollyvolthaus
    @DavidConnollyvolthaus 9 лет назад +12

    Well done. You have a good narrative voice. I will def recommend your videos.

  • @karlschwab6437
    @karlschwab6437 8 лет назад +2

    Thank you so much for this tutorial! I will view it many more times so I get it. I just built a Amateur Radio transceiver that uses the Arduino Nano that causes this transceiver to have a digital frequency readout on a liquid crystal display along with a variable frequency selection. I have it all of the hardware put together, but getting the proper sketches uploaded to the Nano, for me, is another story! Your tutorials should help me a lot, thanks.

  • @liamorourke9685
    @liamorourke9685 4 года назад +1

    this guy does the best arduino programming tutorials on youtube :) many thanks

  • @arnelcagatin9861
    @arnelcagatin9861 9 лет назад +1

    tutorial videos help understand more about arduino I thought arduino is hard to learn.... but watching all you video makes easy for me.... thanks alot GOD BLESS YOU

  • @sciense3078
    @sciense3078 6 лет назад +2

    Doing my first setup every which is a little complex. thanks for your video. cleared a lot up for me

  • @chrisnizer1885
    @chrisnizer1885 4 года назад

    One day this is all going to make perfect sense to me. Unfortunately today is not that day, not quite there yet. Thanks for the tutorials my friend. They are a great resource for anyone wanting to learn the Arduino.

  • @bhagmeister
    @bhagmeister 4 месяца назад

    I think it’s more accurate to say that the “include (library)” statement inside your sketch is a compiler directive to pull (library) code in when assembling the executable build.

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

    Wholesome set of folders in Documents 😄

  • @r1johnny
    @r1johnny 8 лет назад +1

    Great vid! Answered TONS of questions I had regarding library maintenance. TYVM!!!!

  • @andresousa5302
    @andresousa5302 8 лет назад

    Wow i picked an arduino like one month ago, and after some search i found your videos, you are the only one who explains everything like we are complete noobs, which is true, so its awsome! I love your videos, and ive learn a hell lot with you. Thanks and keep up the good work!!!

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

    Excellent tutorial. I needed this . Thanks.👍💕

  • @mikecraft4506
    @mikecraft4506 7 лет назад +3

    Many thanks for this video, it answered all my questions, and I work on an Apple as well! Could not be better for me.

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

    Very nice and clear instructions and explanation. Thank you.

  • @donaldmartin2640
    @donaldmartin2640 4 года назад +1

    I'm retired and new to all this. Wow, thanks for knocking the fairy dust off Libraries. Great job. I'm using a newer IDE, they have made it more obvious on .zip files. 1.8.10.

  • @havefunbesafe
    @havefunbesafe 7 лет назад +1

    You have a gift for teaching. Thank You!

  • @beehive808
    @beehive808 10 лет назад

    Thank you for making this video, you have set me on the right track. I can now clean up some of my problems, I can't wait for the next video on libraries.

  • @giroadster
    @giroadster 4 года назад +1

    VERY helpful, thank you! Got me out of a ditch. The little video that goes a long way!

  • @victororo462
    @victororo462 6 лет назад +2

    Bitchin vid! Finally, a real explanation on how to!
    I've been pulling my hair out trying to understand this. Thanks for the video upload! I didn't know that the platform had its own tool to set up a library. And also, the issue of some libraries that weren't named the exact same.
    Now I can go through all of my libraries and clean them up!
    Again, thank you!
    Nice job on the tutorial!

  • @ask-wj2pf
    @ask-wj2pf 6 лет назад +1

    Exactly what I needed and exactly for dot matrix...

  • @larryabbernathy6657
    @larryabbernathy6657 9 лет назад +1

    Thanks!! I was having major problems with libraries. Your tutorial cleared up my issues. It was clear, concise and complete. Based on this, I subed and am looking forward to your other videos. Thx again.

    • @programmingelectronics
      @programmingelectronics  9 лет назад +1

      Thanks Larry Abbernathy , I hope you find the other videos useful as well.

  • @bossmanwells
    @bossmanwells 7 лет назад +1

    holy crap man, you're a good teacher! thank you so much.

  • @FondueBrothers
    @FondueBrothers 4 года назад +1

    Thank you. Very informative!

  • @karenberry9498
    @karenberry9498 8 лет назад +3

    This is an excellent tutorial and I love the way it is presented. Thank you very much.John :)

    • @programmingelectronics
      @programmingelectronics  8 лет назад

      +karen berry Thanks a ton for watching! I hope you like the other videos too.

  • @anilkunchala3698
    @anilkunchala3698 7 лет назад

    I like your document's folder names more than video. Btw Nice Video

  • @malcolmwicca
    @malcolmwicca 4 года назад +1

    Many thanks for this video.
    eally helped me a great deal.

  • @elvenking5512
    @elvenking5512 6 лет назад +2

    Thank you so much this helped a lot with my code!

  • @docfoot316
    @docfoot316 6 лет назад +1

    A big help ,learnt alot many thanks for sharing

  • @leonelectrical
    @leonelectrical 10 лет назад

    really greatful for the video as i'm a arduino noob. naming the the folder the same as the .h and .cpp files fixed my problem. many thanks

    • @programmingelectronics
      @programmingelectronics  10 лет назад

      Such a simple fix, but far from intuitive! It took me a while to figure out why it seemed so many of the libraries I would import were not working. So glad it could help.

  • @radiorob007
    @radiorob007 9 лет назад +1

    Nice, thank you voor good INFO!
    Greetings from the Netherlands/Rotterdam
    Rob.

  • @Sharleyn2015
    @Sharleyn2015 4 года назад +1

    Nice video very helpful

  • @vedant6633
    @vedant6633 7 лет назад +1

    I appreciate ...u know ur stuff very well

  • @bryanwhite4941
    @bryanwhite4941 6 лет назад +1

    That was awesome! Thank you so much!!!

  • @jcjensenllc
    @jcjensenllc 4 года назад +1

    Very helpful.

  • @HollyHertig
    @HollyHertig 8 месяцев назад

    Yes this is still very helpful even though I am using Arduino IDE 2.2.1

  • @biplabdhakal6477
    @biplabdhakal6477 4 года назад

    Hello
    I have a task to do and I am new to Arduino. The task is to create a project in Arduino IDE, using the FreeRtos library.
    Then I have to find all the library files that are included (that belong to RTOS) and combine those parts that are needed into a single file together with the code. How can I do it any help would be really greatful.
    Thanks

  • @fxvbh8513
    @fxvbh8513 6 лет назад +1

    Thanks,, very very good. It helped me a lot.

  • @SHANUSHAH
    @SHANUSHAH 6 лет назад

    Sorry I am just getting started on WINDOWS 10 downloading Libraries and found unlike your path on your Apple Mac i.e Documents---ARDUINO----libraries--- and you had your library Frequency Timer2 , in which you had the Frequency Timer.ccp and Frequency Timer.h files, My path is Local Disk (C): -----Programs Files(x86) -----ARDUINO------libraries---inside which I got my files , say Stepper ,---and opening that I see two files example and scr files and opening scr I see Stepper.ccp and Stepper .h , is that right or am I doing something wrong? sorry again not very good at this.

  • @kreech68
    @kreech68 8 лет назад +1

    Fantastic! This really helped! Thumbs-up!

    • @programmingelectronics
      @programmingelectronics  8 лет назад +1

      +Sean O'Keefe Glad you liked it - and thank you!

    • @kreech68
      @kreech68 8 лет назад +1

      I had "Hello World", and "Blinky" working, but was stuck with the next step of library integration.
      The libraries were for a simple robot platform (Hercules 4WD).
      With the motor control libraries installed correctly, I got the motor-blinky code (FWD, STOP, REV, STOP, REPEAT) to work.
      Then the R/C receiver to Arduino variable to work. (with SERIAL feedback)
      Then the R/C receiver to Motor speed and direction to work.
      Then 2 R/C receiver channels to 2 motors, with FWD/REV and steering!
      Yesterday was a great day!
      Thank you again!
      Sean

  • @Fogaata
    @Fogaata 6 лет назад +1

    Simply Awesome! thank you!!

  • @markyj07
    @markyj07 8 лет назад +1

    Question on these libraries, I came across your video while looking up how to write a library but thought I would try understanding them a little bit more, however I now find myself with a working solution (sort of, I'm still learning) and a question (or two).
    Why go to all the hassle of writing the library the way libraries are written with two files, I get the header file references the actual code but my work-around I found seemed to work in the same way (as far as I know so far) and is to just create a .h file, write all my functions in there, include it in the main file the same way you would add a library and simply call them. Better yet I don't need to set it up in my code and reference it everytime I want to use a command (ie. I don't need to type libraryName.commandName, I just need to type commandName();) There must be a reason why the library method is better but I don't know why or currently understand why either.
    My second question, I sort of answered myself in my method above was how to include and call from a library without needing to referencing the library after it is included and just call the commands?

  • @jimtalltheislandbrothers6639
    @jimtalltheislandbrothers6639 6 лет назад

    Very good explanation. Kt may have answered an issue I am having. Quick question, i have an lcd library written by someone else, when i add my lcd, it powers on but no text on the screen. I noticed the naming of the connectors are different. For example, the En pin on the code is named E on my lcd. Should i edit the lcd library to reflect that? I have matched the pin connections to what is written in the code so i am a bit lost as to why i have no text showing up.

  • @catalin1140
    @catalin1140 7 лет назад

    Hello, i am trying to interface with an real car cluster so it can show me all the data from the game in real time, i have the code but i cannot upload tone2.h i searched the hole internet no answer...

  • @attalaw36
    @attalaw36 4 года назад +1

    good lesson thank you

  • @EnplusX
    @EnplusX 5 лет назад +1

    Helps a lot, Thak you.

  • @CaraAmar
    @CaraAmar 8 лет назад +1

    thank you so much!! nice tutorial!

  • @josephhollier2431
    @josephhollier2431 7 лет назад +1

    Excellent, thanks!

  • @TheDickw
    @TheDickw 4 года назад

    Great video. Thanks

  • @stoneslice
    @stoneslice 10 лет назад

    Great video. So helpful. Thanks

    • @programmingelectronics
      @programmingelectronics  10 лет назад

      Thanks for the kind words! I am glad this one helped. I know for me, all the library syntax took a while (and is still taking a while) to wrap my head around.

  • @mahivkhan6932
    @mahivkhan6932 9 лет назад

    when i verify my sketch it says:
    Arduino: 1.5.8 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"
    CheapassReceiver.ino:136:40: error: invalid suffix "clockMultiplier" on integer constant
    CheapassReceiver.ino:140:52: error: invalid suffix "clockMultiplier" on integer constant
    CheapassReceiver.ino: In function 'void __vector_11()':
    CheapassReceiver.ino:112:25: error: expected ';' before numeric constant
    CheapassReceiver.ino:122:29: note: in expansion of macro 'clockMultiplier'
    Error compiling.
    what should i do now?

  • @arthanitachi
    @arthanitachi 8 лет назад

    C:\Users\HomePC\Documents\Arduino\libraries\ps2x_lib.h\examples\ps2x_lib.h\ps2x_lib.h.ino:1:34: fatal error: PS2X_lib.h: No such file or directory
    #include //for v1.6
    ^
    compilation terminated.
    exit status 1
    Error compiling.
    "IT ALWAYS SHOWS THIS WHEN I VERIFY THE CODE U HAVE GIVEN IN EXAMPLES"
    (PS2XDpadLED_OdinExample.ino)
    IM BEGINNER TO THIS.......CAN HELP ME TO SORT OUT THIS PROBLEM

  • @sailingeswararaoramineni9622
    @sailingeswararaoramineni9622 8 лет назад

    sir i have a problem with uploading sketch when i tried to upload it it is showing that wire.h is not included in library please help me

  • @geekyourlikeslulu
    @geekyourlikeslulu 5 лет назад

    I don't have frequencyTimer file btw can I skip this tutorial? to come back when I need this

  • @InventionTherapy
    @InventionTherapy 7 лет назад

    Did this project take long to build?

  • @mattibboss
    @mattibboss 10 лет назад

    Make same video but about adding new boards becouse i want to program atmega88 with USBasp and i have trouble with arduino ide

  • @samuelanadonponton8691
    @samuelanadonponton8691 8 лет назад

    can u please make a tutorial for put libraries of stepper motor on the arduino IDE

  • @jfperkins3
    @jfperkins3 9 лет назад +1

    Thanks. It was helpful.

  • @Dharmendrasavaliya012
    @Dharmendrasavaliya012 7 лет назад

    Hello sir,
    Is it possible to initialize global variable from EEPROM in Header file ?

  • @basildouglas855
    @basildouglas855 5 лет назад

    Excellent, tutorial.

  • @engr.luqmankhan4345
    @engr.luqmankhan4345 5 лет назад

    Nice video , Can you please help me out to send text message of arduino Mega 2560 and GSM 800. I have used the code of GSM shield does it need to be edited for for the GSM 800 or not ?

  • @prajvalkanth
    @prajvalkanth 7 лет назад

    Hi can u tell me how can I use a USB key board with aurdino

  • @marinecell2641
    @marinecell2641 6 лет назад

    Can you explain how to add a Afmotor in library

  • @kapilawickramasinghe1895
    @kapilawickramasinghe1895 5 лет назад +1

    Thank you

  • @zawaralikhan7870
    @zawaralikhan7870 5 лет назад +1

    thank you very much sir

  • @seanocansey2956
    @seanocansey2956 8 лет назад

    that was really helpful! btw what song was playing in the beginning?

  • @freddiemortos8519
    @freddiemortos8519 9 лет назад +1

    Thanks a lot man. Exactly what I'm looking for. Thanks for the great tips in managing a libraries.
    I have a question though and this is related to a sketch project that I have downloaded. I want to compile it but every time I did it gives me a bunch of errors. Now I have made a research for the errors and it seems that I don't have the correct libraries for it to compile properly. So what I did is download the libraries and try to compile it but I got the same error. After watching your video I remember that the libraries I have downloaded and added to arduino libraries have a different and long names name in it. So my question is, if I rename the library so that they are all the same,is there no effect in the sketch that I'm trying to compile? Thank you and I hope you make it clear to me.
    By the way I'm just starting to learn the arduino environment.

    • @programmingelectronics
      @programmingelectronics  9 лет назад +1

      Hi'gak Iya Great question! So here is how it should be...
      The folder that holds the library usually has a weird name when first downloaded - it should be renamed to the same name as the .h and .cpp files that it holds.
      For example - Adafruit_MotorShield (renamed folder) matches the file name inside it -> Adafruit_MotorShield.h and Adafruit_MotorShield.cpp
      As long as your sketches are using the correct #include statement (that is, the name of the library header file i.e. Adafruit_MotorShield.h), then you should be ok - that should not be creating errors.
      Hope that helps some...

    • @freddiemortos8519
      @freddiemortos8519 9 лет назад

      Open Source Hardware Group Thanks so much sir. Now I know how to deal with those libraries :). I will definitely watch all your videos as much as I can to gain more knowledge from you.

  • @ronatkinson7776
    @ronatkinson7776 9 лет назад

    I started to investigate how to write library files and failed to set up morse from scratch. I then down loaded and installed the morse zip file as per you video. I have morse in the library and SOS in examples but it simply won't compile!! If gives error WProgram.h no such file etc. Am totally stuck. All other examples I have down loaded or that came with Arduino are fine. Can you help Please! Prof Ron

    • @programmingelectronics
      @programmingelectronics  9 лет назад +1

      Hi Ron Atkinson, That can be truly frustrating. Here is the post that should clear it up, from the Arduino Forum:
      forum.arduino.cc/index.php/topic,97455.0.html
      The issue is that the .cpp and .h file in the Morse example make reference to include "WProgram.h", well, after Arduino version 1.0, this
      changed to "Arduino.h". So if you open your .cpp and .h files
      in something like notepad, and change the "WProgram.h" to
      "Arduino.h" it should work fine.
      I think I mention the issue in another video in this series,
      but I cannot recall if it is on RUclips or not. Have a great one!

    • @ronatkinson7776
      @ronatkinson7776 9 лет назад +1

      Open Source Hardware Group
      OMG. Yes!! I picked up this change on my journey to here but didn't notice the error/update needed in the old files I downloaded. When one is "focussed" one can become Blind! :-) Thanks so much. By the way your tutorial was great, clear expression and systematic. Much appreciated.

    • @programmingelectronics
      @programmingelectronics  9 лет назад

      Ron Atkinson Thanks Ron - Glad this helped!

  • @avalon6090
    @avalon6090 8 лет назад +1

    Where can I register for the Arduino course. Thank you.

  • @flippingpratas
    @flippingpratas 5 лет назад

    whats your intro and outro song? sounds nice

  • @mohammedzaman1937
    @mohammedzaman1937 7 лет назад

    nice video :) some of the zip file has a .ino file. Is this the main sketch?

  • @semphony100
    @semphony100 9 лет назад +1

    Thanks a million already subed

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

    thanks

  • @mrphysh
    @mrphysh 6 лет назад +1

    awesome,,thanks

  • @kevinoreilly2941
    @kevinoreilly2941 9 лет назад

    I keep getting an error. The error is #include files nested too deeply. Otherwise, great video, thank you for helping me install my library! :-)

  • @VideoStefan17
    @VideoStefan17 5 лет назад +2

    awesome explaining! thanks!!
    *like, sub, bell, comment!!!

  • @simplyInvent
    @simplyInvent 7 лет назад +1

    thnx

  • @jpalm32
    @jpalm32 10 лет назад

    Very good Tuts. but this one was as if you weren't prepared

  • @Nouryas
    @Nouryas 4 года назад

    you consumed more than 10 minuets to clarify where the library is located !!!

  • @Kaizen01395
    @Kaizen01395 7 лет назад

    Conclusion: doughnut beats apples.

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

    Najs job

  • @Stevobulfer
    @Stevobulfer 9 лет назад

    Is your friend Roman B.?

    • @Stevobulfer
      @Stevobulfer 9 лет назад

      If so, can you contact me, I need help with one of his projects and maybe you can help shed more light on what what he means