How to Program Arduino in VSCode (Using Platform.io)

  Рет қаралды 222,978

MakeUseOf

MakeUseOf

Күн бұрын

Пікірлер: 112
@hundredvisionsguy
@hundredvisionsguy 5 жыл бұрын
I too love VS Code, and I'm so happy you posted this. This will help my students. Thanks.
@johncrunk8038
@johncrunk8038 4 жыл бұрын
i use this every several months and forget how to set it up. Thanks!
@nqaiser
@nqaiser 4 жыл бұрын
I love The way you talk and explain, absolutely clear and well explained. Thanks for the effort.
@dazecm
@dazecm 4 жыл бұрын
This is by far the most pain-free extension to using VS Code with Arduino. I tried the Microsoft one but it's extremely crude and limited at the moment with the Issues feedback list showing solutions to problems is to revert to earlier versions. Not the kind of experience beginners to Arduino coding will want to go through :)
@Omgtired
@Omgtired 3 жыл бұрын
I was like 20 minutes prior to struggling with Microsoft extension as an inexperienced arduino developer before this vid)
@EldonElledge
@EldonElledge 3 жыл бұрын
This was a pretty quick, easy to follow, to the point video. Thank you very much.
@DinujaP
@DinujaP 4 жыл бұрын
i hate coding in arduino IDE now i can do that in VS CODE ! BIG Thanks to you
@aront6465
@aront6465 5 жыл бұрын
Thank you very much for this video I was struggling with editing my code with vs code then opening arduino ide to upload my code after every save... Awesome!!
@labscience8271
@labscience8271 2 жыл бұрын
Quick, straight to the point and easy. Thank you!
@GaryParkin
@GaryParkin 5 жыл бұрын
This is amazing! I use VS Code for work and hated the Arduino UI. Thank you for the video, I can't wait to try this. IntelliSense is back! :)
@kenburnett
@kenburnett 5 жыл бұрын
Thank you for the great video. I can't wait to try this as I love working in VSCode.
@davidfont2596
@davidfont2596 4 жыл бұрын
First, Thumbs up for NOT having an Indian accent that is so thick that not even Google's closed caption system can understand it. Second, I think that the auto detect was also pretty awesome.
@hypocampus4404
@hypocampus4404 4 жыл бұрын
Thank you very much. I wanted to switch to a better program from the very beginning and this made it very easy for me.
@mariosmichael5116
@mariosmichael5116 4 жыл бұрын
Thanks a lot man without your help I would be spend a million years to make my project works!!! Thanks again 💖💖💖
@toastrecon
@toastrecon 3 жыл бұрын
Cool! Just followed your instructions, and got things blinking. Thanks!
@AlexisHopeBambii
@AlexisHopeBambii 4 жыл бұрын
Mind = Blown. I'm excited to check this out! I've been wanting a way to work with cpp directly & ardunio.
@rohitchaturvedi3878
@rohitchaturvedi3878 4 жыл бұрын
Tip: If you have kaspersky internet security installed, disable it before installation. otherwise installation will fail.
@douglasjapitana4981
@douglasjapitana4981 4 жыл бұрын
ty so much for this! i wont forget any arduino commands anymore.
@claudiotalle6821
@claudiotalle6821 4 жыл бұрын
Concise, straightforward video and very helpful. One thing I didn't grasp fully, why do we have to install Arduino IDE first?
@webforder4201
@webforder4201 4 жыл бұрын
It runs the actual code you are doing, on that.
@Cscuile
@Cscuile 4 жыл бұрын
Thank you! You are great at explaining things!
@mr.mythoclast4451
@mr.mythoclast4451 4 жыл бұрын
How about existing arduino librarys to work with?
@madshannilhedensted2440
@madshannilhedensted2440 3 жыл бұрын
Did you ever find a way to do this?
@infera1
@infera1 5 жыл бұрын
Love this channels work, thank you
@TWFDeadzoneII
@TWFDeadzoneII 3 жыл бұрын
Awesome video! Now i could code with all of my cool add-ons ;)
@ragder13
@ragder13 4 жыл бұрын
What Theme are you using in VS code?, great video
@3D_Printing
@3D_Printing 3 жыл бұрын
I used to see Platform.io but it seems to have vanished. VS suggest it is still installed but no icon in VS is shown
@Omgtired
@Omgtired 3 жыл бұрын
Great video! Everything on point. Subscribed
@CuriousScribbles
@CuriousScribbles 3 жыл бұрын
Awesome video bro. Much appreciated.
@sleipnirish1
@sleipnirish1 3 жыл бұрын
Cannot find Arduino IDE. Please specify the "arduino.path" in the User Settings. Requires a restart after change.
@nightrook5732
@nightrook5732 4 жыл бұрын
After installing this I can't build any python projects How do I uninstall?
@korrupted80
@korrupted80 5 жыл бұрын
Very nice tutorial. Please make more on arduino. Thanks.
@sabinbaral4132
@sabinbaral4132 2 жыл бұрын
very quick and useful video but you not indenting the code made me feel so horrible fr
@neilbarnett3046
@neilbarnett3046 4 жыл бұрын
This is going to sound hyper-critical, but, well, the icons are different, there was a Welcome tab open, then PlatformIO didn't want me to restart, is that a problem? Then you spoke about the Platform IO home page, while showing the Project Wizard, but not where it came from. Not that it matched anything on my screen, certainly not the icons, yours shows extensions toolbar open, I see "Explorer"... the only bit I got to match was the missing semicolon. Anyway, it worked in the end. So, now how do I open one of my existing .ino projects, especially the one with its own libraries, find the examples, or run the library manager, where are the board compile-time configuration options (I have a program with 8 libraries, I need more RAM on my ESP32, though not SPIFFS or OTA), can I make the serial console a separate window, so I can see more than 20 lines of code AND the serial console? What is .Travis. and why? Can I make the font bigger on the editor and the menus because I am no longer 25 years old? Is "Search" the same as "Find"? And why would I want to insert a cursor (ctrl-alt-uparrow)? Why does the "Add configurations" option open a file that says "Don't edit this file?" Wonderful editor, as long as you already know it and can remember a multiplicity of keyboard shortcuts. Maybe a second volume "What to do with VSC now you've got it" "We do not need to use the Arduino IDE today." I bet I do.
@yazanaldinho4775
@yazanaldinho4775 Жыл бұрын
Is there a Serial Plotter? If not, are there an extensions for it, or any possible other way of visualising data just like in serial plotter?
@havehalkow
@havehalkow Жыл бұрын
Thank you! How about writing a command through serial?
@TheJavaSync
@TheJavaSync 2 жыл бұрын
So, in PIO no need install driver of the board (ch340/ftdi) ?
@3D_Printing
@3D_Printing 3 жыл бұрын
in Arduino IDE it works but wit VSC it uploads but I do not see and blinking LED, and no serial display for me can you help. Something silly on my part
@walterhynson2898
@walterhynson2898 3 жыл бұрын
Delete this crap and stick with ARDUINO IDE like I did.
@tzgardner
@tzgardner 2 жыл бұрын
2:45 I get an error on that #include . . . command-line error: invalid macro definition: -DCM4_BINARY_START=0x08100000. I don't have the hardware available yet, does it matter in this case? If that is not the issue then I'm not sure why I get this error. Any ideas? I'm new to Arduino environment BTW.
@JannieH
@JannieH 3 жыл бұрын
Yes but....How do you upload an existing ***.ino ? Say a complete project downloaded with many files etc?
@limux2201
@limux2201 5 жыл бұрын
Hello, Is it useful for esp32 and esp8266 controllers ? Thanks
@3D_Printing
@3D_Printing 3 жыл бұрын
can you set breakpoints, watch variables, step over etc...
@bennguyen1313
@bennguyen1313 4 жыл бұрын
What happens if your arduino board is not listed? I have an MKS Gen L 1.0 board (Atmega 2560), however not sure what firmware or bootloader is flashed... is there a way to auto-detect or if not, force the settings/pin-map?
@jumbo999614
@jumbo999614 3 жыл бұрын
My code require library for LiquidCrystal I2C. How do you use library?
@Greebstreebling
@Greebstreebling Жыл бұрын
I used PIO for a while - it can be good, but currently (2023) there is no stable/ working solution for code upload to AVR4809, and support can't sort it. So I'm using JTAG2UPDI in arduino and VScode as an editor. (JTAG2UPDI does not work in PIO)
@ofrit9981
@ofrit9981 5 жыл бұрын
THIS ROCKS GOOD JOB M8 GREAT VIDEO
@urishani
@urishani 2 жыл бұрын
what about migrating an arduino IDE .ino program to vsc?
@ArjanvanVught
@ArjanvanVught 5 жыл бұрын
Almost any other IDE is better than the Arduino IDE. Eclipse is also a very good development platform,
@JoshStasio884
@JoshStasio884 3 жыл бұрын
... But how do you set the com when it doesn't auto detect. You can't mention that is mostly works and not tell us how to do it when it doesn't....
@thesunpouncergamingchannel2654
@thesunpouncergamingchannel2654 4 жыл бұрын
Does VS Code support the serial plot as well?
@OdotRIH4KRC
@OdotRIH4KRC 5 ай бұрын
Great and str8 to the point. Thanks
@clear426
@clear426 3 жыл бұрын
thank the video helped but I keep seeing this error "Update include errors " do you have any idea as to how to fix it.
@YigalBZ
@YigalBZ 4 жыл бұрын
Thanks for the tutorial. Can you show how to connect VS code to github?
@MrNams
@MrNams 3 жыл бұрын
How to debug?
@pedrocosta6572
@pedrocosta6572 3 жыл бұрын
FUCKING HELL, thank you so much, the platformIO serial visualizer is much better.
@JeremyCook
@JeremyCook 5 жыл бұрын
Great intro, thanks!
@yashasvi9655
@yashasvi9655 3 жыл бұрын
Does anyone know if we can have a multiple files in src directory and choose which file to upload? or maybe have a multi-file project for maintainance reason?
@muchamadshofiudin9393
@muchamadshofiudin9393 4 жыл бұрын
i am sory. i try insltall vs code and install platform IO ide but after reload platformio ide... always reload again.
@ivankravets
@ivankravets 4 жыл бұрын
What is your OS? Could you try to reinstall the latest Python 3? See docs.platformio.org/en/latest/faq.html#install-python-interpreter
@abhipraydumka8587
@abhipraydumka8587 4 жыл бұрын
My code is showing undefined refrence to init and delay
@davidmarks509
@davidmarks509 Жыл бұрын
platformIO is great but not beginner friendly. Going to need to do lots of learning to get started with it
@undercrackers56
@undercrackers56 2 жыл бұрын
Excellent! Thank you.
@MUDMAD83
@MUDMAD83 4 жыл бұрын
Everytime I use platform io it's not stable
@partouelectric2353
@partouelectric2353 4 жыл бұрын
I wonder why most tutorials so not say anything about the hardware. Are you programing with ST Link or USB ??
@Mister_P1999
@Mister_P1999 5 жыл бұрын
Does it need to install python? It prompted me to install Python after I installed Platform IDE on VSCode.
@M4CHINE69
@M4CHINE69 4 жыл бұрын
No
@Kamil-kg2ku
@Kamil-kg2ku 3 жыл бұрын
Does this work with python?
@brentroberson7211
@brentroberson7211 4 жыл бұрын
how do you download libraries to use in this IDE?
@MakeUseOf
@MakeUseOf 4 жыл бұрын
Just put them in the standard Arduino libraries location. There's no built-in libraries browser, but you don't need it anyway - they're just zip files that you unzip to Arduino/libraries folder.
@gfk471
@gfk471 3 жыл бұрын
and how to include libraries???
@aaronmorgan2475
@aaronmorgan2475 3 жыл бұрын
does anyone know if you can use this for python?
4 жыл бұрын
You don't need to install Arduino IDE.
@mav29
@mav29 4 жыл бұрын
great squicky clean 7mins thx mate
@maceeiko
@maceeiko 3 жыл бұрын
3:08 It's already defined as LED_BUILTIN
@MakeUseOf
@MakeUseOf 3 жыл бұрын
It is nowadays, though it wasn't always. :)
@allTimeFavorite
@allTimeFavorite 5 жыл бұрын
Great video!!
@elefantopia
@elefantopia 4 жыл бұрын
thank you!
@morbaxmorbax6963
@morbaxmorbax6963 5 жыл бұрын
Thanks 👍
@alexandrtcacenco8129
@alexandrtcacenco8129 3 жыл бұрын
...before opening IO homepage (1:31) . This just doesn't happen.
@santiagorosero4652
@santiagorosero4652 5 жыл бұрын
AWSOME BRO !!!
@engineer_nyasha
@engineer_nyasha 3 ай бұрын
That's what I'm talking about !
@aadityapaul1768
@aadityapaul1768 4 жыл бұрын
Why did he install arduino ide then ?!!?
@mandeepmails
@mandeepmails 4 жыл бұрын
Hi, Nice and informative video. i did the test on esp8266 all ok but after that when trying to use some github project shared by brad at github.com/bradc87/GarageDoorSensor it gives me this error. have been trying to figure it out but not sure why it's getting failed. Getting this error [screenshot] i.postimg.cc/rFC5j30L/Screenshot-2020-09-25-at-2-58-18-AM.png could you please guide what's wrong. Thanks.
@MakeUseOf
@MakeUseOf 4 жыл бұрын
I can see from your sidebar that shows directory structure that the folder it's asking for (/include) just doesn't exist in your project. That Git project you pulled from is just broken, seems completely unfinished.
@nickbanderson
@nickbanderson 3 жыл бұрын
life changer
@lebowski1980
@lebowski1980 3 жыл бұрын
Thank you.
@s.sradon9782
@s.sradon9782 4 жыл бұрын
why won't arduino include such features into their IDE? this irritates me since my school won't use visual studi0o code because they are paying for yenka (which only does flowcharts lol) and translates them into pbasic. yeah... my school's "programming" classes teach pbasic in flowcharts & copy pasting from Arduino IDE's examples library since python is such a difficult language to learn. we occasionally do scratch in my high school too!
@DaleDix
@DaleDix 4 жыл бұрын
We can understand it, but can you imagine all that stuff coming up when kids are trying to do a blink sketch or make an led say something?
@gabiold
@gabiold 4 жыл бұрын
@@DaleDix Learning (and teaching) is not about artifically preventing problems to come forward, but trying to understand them when they do. Having a primitive IDE without the possibility of advanced stuff, and which does things for you in the phylosphy of "you shouldn't have to know that", is just limiting you, and it is not quite the most effective learning method for an open-minded person... I started embedded development on bare metal when Arduino wasn't existed, and I always felt constrained every time I had to touch an Arduino project.
@user-dn2ec7zx8o
@user-dn2ec7zx8o 3 жыл бұрын
Thank you very very much
@Chemy.
@Chemy. 5 жыл бұрын
It looks pretty easy until you sir to do it and miss a ; hahaha
@davidclintonakpalu9863
@davidclintonakpalu9863 Жыл бұрын
I like it thank you
@madshannilhedensted2440
@madshannilhedensted2440 3 жыл бұрын
How can I add a library like the neopixel.h?? github.com/adafruit/Adafruit_NeoPixel
@ikothsowe
@ikothsowe 5 жыл бұрын
Very useful, but please slow down! The hurried delivery almost made me feel panicky.
@JohnAnderson-ge8gg
@JohnAnderson-ge8gg 3 жыл бұрын
Yes - Same comment from me! Luckily I'm half Irish, so managed it, but then found the tutorial a great help in getting started with PlatformIO..
@thehomeschooldev6126
@thehomeschooldev6126 4 жыл бұрын
#IoT #Thehomeschooldev Thank you this helps out a lot!
@doncollins6795
@doncollins6795 3 жыл бұрын
Man, i really loved Arduino platform but the worst part of it was the IDE... it is super shitty...
@zhuk462
@zhuk462 4 жыл бұрын
Quite outdated tutorial. Impossible to follow... (((
@christopherridgway29
@christopherridgway29 3 жыл бұрын
What a terrible plugin. Almost all my libraries are erroring and my project. >_>
@johnmiller8553
@johnmiller8553 Жыл бұрын
You words are rapid fire, but you streamline the excess verbage and get straight to the point. I went with PlatformIO because of your video instead of some of the other extensions because I couldn't find any support as straight forward and succint as yours.
@nazolon
@nazolon 3 жыл бұрын
Thank you!
@doncollins6795
@doncollins6795 3 жыл бұрын
Man, i really loved Arduino platform but the worst part of it was the IDE... it is super shitty...
Using Git with VS Code and PlatformIO
14:17
Gavin T
Рет қаралды 18 М.
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 43 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,5 МЛН
How Much Tape To Stop A Lamborghini?
00:15
MrBeast
Рет қаралды 217 МЛН
Getting Started with ESP32 - Step-By-Step Tutorial
19:50
Tomasz Tarnowski
Рет қаралды 381 М.
How to get started with Arduino IDE in VSCode
5:17
Code Plug
Рет қаралды 5 М.
Transform Your Space: Govee Smart RGBIC LED Curtain Lights Review!
0:51
Arduino MASTERCLASS | Full Programming Workshop in 90 Minutes!
1:25:31
Programming Electronics Academy
Рет қаралды 2,7 МЛН
Getting Started with PlatformIO
51:54
DroneBot Workshop
Рет қаралды 635 М.
How to Clean Your Phone (The Right Way)
0:49
MakeUseOf
Рет қаралды 21 М.
How to program Arduino with VSCode
5:12
Abstract programmer
Рет қаралды 39 М.
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 43 МЛН