To get started with the projects we need to install the program that will allow us to upload our code to the RedBoard. This program is called the Arduino Integrated Development Environment or, more simply, the Arduino IDE

Transcript

Hey guys, it's Christian here from core electronics. Today we're going to get started installing the IDE for the SparkFun red board and the relevant drivers so that we can start to program it.

If you head to our website, I've set a link on the photo here just click on that and it'll take you to the Installer, click on this link here and it should install the software package. Mine is already installed here and we'll just go through the installation process. So, we want to agree to these terms, usually, it's good to leave the default configuration here and you want to remember where this destination folder is because this comes in later when we're trying to install the actual drivers necessary to run the red board. So, click install and it should extract and begin the installation. It might be helpful to note now, that you can download the actual code written by the makers of the guide, so that that can help you in uploading the code without having to write it yourself, it might be a little difficult for you to jump into all the Arduino programming and the hardware component at the same time. So, they've written a nice little manual that's linked in the tutorial section here. So, if you follow that link it'll allow you to download that code bear in mind that, we're looking for the spark for an inventor's kit version 4.0 A, I believe it's labelled.

Now that you know Arduino IDE is installed, we can close that, and we can connect the red board to the computer via means of the USB cable that is provided. So, we just plug that in there, the computer will load that up. So, what we want to do is we want to look at the device manager on our computer and we should have a USB serial port installed here. Now, what happened, is for my computer it has when installing the IDE installed, the Adafruit software that will allow it to register the SparkFun board. So here my USB is labelled as "COM9". Now if you're following along on the tutorial website, you might see that it will come up as suggested here with the USB serial port. just click on the device manager, find where that USB serial port is and hit properties and you should be able to go into the driver and update the driver.

So, from there you can browse the computer and it should link you to this place, which is where you've installed the actual IDE as mentioned before. So, if you load that up, it should allow you to search for it there and it should say that the best drive is installed, or it should allow you to do that. If that's not the case, consult our forum and we will help you out there.

Now that that's all sorted we can open the Arduino IDE and we can get started with that. So, we'll be doing a Hello World example, as shown here and we will be making sure that the right comports, and border selected. So up the top here, I have a file called "practice", that file is something that I made earlier, and it is essentially just our Hello World introduction to Arduino. So along the top is all the different menus that we have, so to make sure that our board is installed I’m going to go into the tools menu, we're going to go to the port and we're going to select COM9. So, I’m selecting COM9, because he had device manager it said that the SparkFun red board was connected to port 9. For you guys, it might be any number from 0 to 99, so just make sure that in that tool section, under port it's connected to COM9. Now the board it's important that it's selected to the "Arduino/Genuino Uno" and once that's connected it's well good to go.

I'll walk you through the sketch itself, so to get started all we're going to do is assign Pin 13, to be an output. So, this is done through the "pinMode" operation and as we know from the first video Pin 13 is connected to an LED here, which is shows the state of the current pin;

So, what we're going to write is, we're going to define that at Pin 13 is an output, meaning that we write data to it and then it produces an output.
Then we're going to use the "digitalWrite" function to write to Pin 13 and we're going to write a "HIGH" to it.
Then so that we can see the flushing we're going to delay it, for one second or a thousand milliseconds.
Then we're going to digitalWrite a "LOW" to Pin 13 and then we're going to delay it again.

Okay once this is done we can verify the code and it will ask us to save what the code is called. So, I'm just going to save it over "practice". Once it's verified which you can see down here it compiles it and make sure that there's no errors or bugs in the code. Once that's done it'll say done compiling and it will tell us here that it's ready to be uploaded there. So, we can hit upload it'll recompile it just in case we've changed it, it'll tell us how much of the available on-board data that it's used, and it will upload.

So, it says here that it's done uploading and if we look here this Pin 13 is flashing on and off with the delay of a second in between each state change.

That is essentially how you connect and install the IDE and you connect the red board to the IDE and how you install the IDE and relevant drivers. Now that that's done, and we've assembled the base plate, we're ready to get started with the actual projects that are listed in there SparkFun Inventors Guide.

I'll see you there.

Feedback

Please continue if you would like to leave feedback for any of these topics:

  • Website features/issues
  • Content errors/improvements
  • Missing products/categories
  • Product assignments to categories
  • Search results relevance

For all other inquiries (orders status, stock levels, etc), please contact our support team for quick assistance.

Note: click continue and a draft email will be opened to edit. If you don't have an email client on your device, then send a message via the chat icon on the bottom left of our website.

Makers love reviews as much as you do, please follow this link to review the products you have purchased.