Make Your Own Arduboy Game: Part 1 - Setting Up Your Computer


(Holmes) #1

Hey! This series will walk you through everything you need to do in order to program a game for the Arduboy! It’ll be broken down into several parts, so I’ll be posting links whenever I finish writing them.

The Arduino IDE & Arduboy Library

So, in order to program a game for the Arduboy, you need to write your code in a program called the Arduino IDE. An IDE is an Integrated Development Environment. This means that it includes most of the tools you’ll need to program for your Arduboy. Arduino is the type of computer chip that the Arduboy is made from. All Arduino chips can be programmed the same way that we’re going to program your Arduboy, so you’ll actually learn how to program for several devices! :slight_smile:

Downloading The IDE

Okay, to download the latest version of the Arduino IDE, you should follow this link.

Alternatively, you can directly download it here:

Installing The IDE

Install the Arduino IDE like you would any other program.

Installing The Arduboy Library

Not only do you need the Arduino IDE, but you’ll also need the Arduboy Library. You need that in order to tell your IDE how to interact with the Arduboy. To get it, go to Sketch > Include Library > Manage Libraries…

In the Manage Libraries window, search for “Arduboy”. One search result should appear. Select the most recent version, and hit Install.

Installing The Board

Go to File > Preferences on Windows or Arduino > Preferences on macOS. In the Settings window, find the Additional Boards Maanger URLs box.

Insert the following: https://arduboy.github.io/board-support/package_arduboy_index.json , and click OK.

Next, go to Tools > Board > Board Manager. In the window that appears, search for “Arduboy”. The list should be narrowed down to the Arduboy board. Click it, then click the Install button.

Once it’s done installing, click the Close button.

Selecting The Board

In order to tell the IDE that you want to program for the Arduboy, you need to tell it that you’re actually going to work with the Arduboy, go to Tools > Board > Arduboy.

Please note that if you’re using a discontinued Arduboy model, you may want to check the Install Support For The Arduboy & DevKit section of this guide. Most people will not have to do this.

Selecting The Port

Turn on your Arduboy and connect it with a USB data cable. Then, go to Tools > Port, then select the Arduino Leonardo.

If you are running Windows, the port may be something like COM5 or whatever. If you’re on macOS or Linux, it may be something like /dev/cu.usbmodem1411.

Loading An Example

Alrighty! :smiley: You should be ready to test this out! Let’s load an example program that we got in the Arduboy Library. Go to File > Examples > Arduboy > HelloWorld. This will load a test application that prints out a single line of text to the Arduboy’s screen.

Uploading The Code

Whenever you’re ready to install the code, click the arrow key that looks like this:

This will do 3 tasks:

  1. Check your code for common problems or typos.
  2. Compile your code. This is when the IDE turns your programming language into computer language that the Arduboy can understand.
  3. Transfer your code your code to the Arduboy.

If the IDE sees any problems with your code or has an issue when compiling your game, it will alert you in the console window, which is the black area at the bottom. If you don’t run into any problems, then it will tell you how big your game is.

Look At Your Arduboy!

If you’ve followed these steps correctly, you should see your Arduboy displaying “Hello World!

What’s Next?

Follow along through Part 2, which teaches you how to program your first Arduboy program! :smiley:

Credits

I wrote this tutorial in order to give back to the programming community that taught me to get into it about 10 years ago. If you’d like to follow me on Twitter, please do so at http://www.twitter.com/crait . I’d greatly appreciate that. :smile:


Make Your Own Arduboy Game: Part 2 - Printing Text
Make Your Own Arduboy Game: Part 6 - Graphics!
Make Your Own Arduboy Game: Part 7 - Make Pong From Scratch!
Make Your Own Arduboy Game: Part 5 - Your First Game!
Candy Box 2 adaptation for Arduboy?
How do I get enemy's to chase?
For a school project
Make Your Own Arduboy Game: Part 7 - Make Pong From Scratch!
Former ASM coder from HP48
How do I make a solid object
Gameboy gallery 1 to 4
How do I make a solid object
Make my sprite animate and move
Newb here, what now?
How Easy Are These To Program
About the Dev language
Make Your Own Arduboy Game: Part 9 - Mapping DinoSmasher
Jumping Snake
Hi everyone! I'm new
Make Your Own Arduboy Game: Part 4 - Questions & Button Input
Downloading from git hub
Make Your Own Arduboy Game: Part 3 - Storing Data & Loops
Help me with C++ for my game
Hello all, noob checking in
Beginner, Coding for Arduboy alone, or side by side with C++?
Make Your Own Arduboy Game: Part 8 - Starting DinoSmasher
Evade 2 - Arduboy's first space flight sim
New user and info
Need help to develop KSboy (Kerbal Space Program 8-bits)
#2

Thanks For the tutorial can’t wait to buy mine.


(Cody) #3

Crait what if this doesn’t work?


(Holmes) #4

If something doesn’t work, the best thing to do is to respond with exactly what’s wrong and which step you were on when things didn’t work out. It’s important to try to be as specific as possible, especially when asking someone for help.


(Cody) #5

Is version 1.6.13 up to date? And is this the right setup?


(Holmes) #6

Yeah! That should be fine!


(Cody) #7

Taking forever to load is that bad?


(Holmes) #8

What exactly is taking forever to load?


(Cody) #9

The hello world sketch! And is this the right com?


(Cody) #10


(Cody) #11


(Holmes) #12

Cody, it seems like you have a lot of serial ports on your computer that are open. It really should only ever show you serial ports that are associated with the Arduino IDE. I would suggest restarting your computer if you haven’t yet. Turn off your Arduboy and unplug it. Whenever your computer is started, start the Arduino IDE, load the sketch, then turn on your Arduboy, and then plug your Arduboy in. Your computer should automatically detect the correct COM port.


(Cody) #13

By restart do you mean shutdown?


(Holmes) #14

Yes… Completely shut down your computer and turn it back on.


(Kevin) #15

@cody it looks like there is an issue with your computers COM ports rather than an issue with the arduboy.

The best way to confirm which com port is the arduboy is to look on device manager and see which comes up as Arduino Leonardo. You’ll want to make sure you select that one within Arduino.

Another way is to unplug your Arduboy, take note of which COM ports are available within Arduino, and then plug it back in. The new COM port that appears is the correct one to choose.

But as @crait has noted, you’ve got way too many COM ports on your computer. Unless you have like a dozen printers hooked up to your computer this is likely where the problem is coming from.

Is there any chance you’ve got friend or family that is good with computers can help out?


(Cody) #16

Not really but @crait gave me another suggestion in a different link.


(Kevin) #17

@Cody17 we are working on setting up a support hotline so you could get a hold of us over chat in the future so keep that in mind too! Don’t give up!


(Cody) #18

Is this a problem?


(Holmes) #19

Yes, please visit the other thread you made about this problem. I have already described the steps you need to take to fix this problem.


(Neko) #20

@ Crait Holmes

Big thanks for all your tutorials.