How To Install Arduino IDE for Raspberry Pi?

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] in this lesson I will show you how to install the Ado IDE on the Raspberry Pi so you can program your Ado directly from there and let's first understand very quickly why this can save you a lot of time so if you already have the arino IDE on your computer what you can do is to write some program for your arino let's say you are on Windows Mac or Linux it doesn't really matter and then you upload the program to the arino then when we will make the Raspberry Pi and the arino communicate between each other you will need to unplug the arino from your computer plug it to your Raspberry Pi and then run a Python program to communicate on the Raspberry Pi and every time you need to modify something in the arinal code you will need to do this process again which is basically to unplug from the pie plug to the computer upload unplug and plug to the Raspberry Pi again now what you can do is directly install the adino ID on the Raspberry Pi OS by doing that you can keep the adino board plugged to your Raspberry Pi board anytime you need to modify the arinal program you simply need to stop any current program running on the Raspberry Pi which is communicating with the adinal and then you just upload the code and run the program again that's it all right now let's go to the Raspberry Pi OS desktop and install the adino IDE so Rasberry P desktop is actually Linux so we are going to do the Linux installation and if you open a terminal well you could install arino ID directly with ap but don't do that okay so you could do sud sudo AP install Aro you may see that in some tutorials but don't do that because this version is actually old and not updated so you're not going to have the new features and maybe that's not going to work so instead we are going to open a web browser here on the Raspberry Pi and just type Aro ID so just search on dougo or Google or whatever search engine you want let's go to the AR new website and here we are not on the right page so let's go to software so you click on software and you have downloads okay addo ID so just download the latest arinal IDE version okay it doesn't really matter which version you have for now so on the right you can see the download options okay so if you were to use Windows or Mac OS instead of the Raspberry Pi to actually program your Aro then download one of those but here we are on Linux okay we are on Raspberry Pi so we are on Linux so we're going to download one of those here of Linux and to know if you have 32 or 64 bits well it's simple just open a terminal again and do you name space- m this is going to show you that and if you see a mv7 l it means you have 32 bit if you have something like X 8664 you have 64 bit so we know we have 32 bit here and we are going to use the armm 32 so you download that one okay you can just click on just download and you can see it's going to download it here so you just wait until it has been downloaded all right we now have the Aro IDE downloaded so I'm going to close this this web browser and let's open the terminal again all right and as I remember here you have to have some Basics on Raspberry p including the terminal so I'm going to show you exactly what commands I use but I'm not going to explain everything 100% from scratch so we are in the home directory I'm going to go to the downloads folder okay in the downloads folder we have this so that's the archive we have downloaded from the adino website this is a tar okay so we are going to do tar space Dash x f with the name of the archive so you can just use the autoc completion with tab if you want to go faster you press enter you wait a few seconds maybe even a few minutes all right and when the command returns LS you see we have a new folder which contains the adino ID now what you're going to do is to move this inside the/ opt folder of your Raspberry p so you're going to do pseudo Pudo because we are going to put that somewhere else than in your home directory so sud sudo MV to move you just use the auto completion to select the folder and then you do slash opt with autoc completion also you press enter all right now the folder is gone you go to CD so cd/ opt LS we have so we have other stuff here as well and we have the arino ID so we are going to go inside this arino folder and now you can see we have this so we have a few scripts here and some folders but basically what we're going to do is to run this install.sh so sud sudo do/ install.sh and you wait a few seconds okay and when you sit down well Aro IDE is successfully installed just one more thing is if you want to uninstall it you just go back to this folder here and you just run the uninstalled script and then you can also remove that folder if you want to all right but let's keep Aro ID installed I'm going to close the now and you can see here we should have on the menu programming and we have a new Ado IDE icon here so I'm going to click on that okay and add ID is now open and you see you have a new program here and now just one or two things about configuration okay so that you can have a better looking IDE and that the code can be more readable you're going to go in file preferences and you can edit here different things for example editor font size I'm going to put uh 14 here I'm going also to use display line numbers okay so I'm going to change those two options here let's click on okay and you can see it's already better I'm going to go back to preferences and when you already have another information here is where your uh Sketchbook is so Sketchbook is basically where your are programs are going to be saved so you have a new adal uh folder here on your home directory and the last thing I'm going to do is I'm going to go down here more preferences can be edited directly in the file here so I'm going to click on that this is going to open a new file manager and I'm going to close that's very important you're going to close the arinal IDE okay we are going to modify preferences. txt here and before you open that file you close the arino IDE very important so you double click it's going to open the file and this is because we're going to find this line okay editor. font okay so you can just scroll and find this line editor. font you see we have monop spaced by default and this may actually not be the most readable font AR know so what you can do if you want is is to change to consolas here like this you write like this consolas and then you have plane so don't touch anything here anyway that setting doesn't work and then you see you also have the font size that we have just said before but for the font basically there is no way to change it on the Aro settings so we have to open this preferences. txt F so I'm going to save with contrl s and now I quit the file I quit that and let's go back to Arun IDE all right now we have a new font size and a new font and we have the line numbers so everything is good for the C now if you plug your Ado to your Raspberry Pi with the USB cable then you go on tools you select board arino Uno so if you have an Aro Uno of course if you have something different like a nano or Mega you choose the correct board and then on Port you're going to choose the AR Uno B so usually that's going to be something like TTY ACM Z or TTY usb0 or with one or something like that okay so you select this and then let's just upload a empty program to see if it works so compiling uploading down uploading great everything is correctly working all right so now we have all the tools we need let's jump straight into the serial communication so we can make the Raspberry Pi and the alino boards talk to each [Music] [Music] other
Info
Channel: Cloud Guru
Views: 3,594
Rating: undefined out of 5
Keywords: raspberry pi, arduino, arduino ide, how to install arduino ide on raspberry pi 3, How To Install Arduino IDE for Raspberry Pi, raspberry, raspberry pi tutorial, raspberry pi arduino ide, raspberry pi 4, raspberry pi 5, raspberry pi 4 projects, how to setup arduino ide for raspberry pi pico, arduino ide raspberry pi pico, how to add raspberry pi pico to arduino ide, arduino raspberry pi pico, raspberry pi pico arduino, arduino ide pico, arduino ide pico support, raspberrypi, iot
Id: wxEU5Er8nBM
Channel Id: undefined
Length: 10min 30sec (630 seconds)
Published: Sat Nov 18 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.