1. Download the IDE
To get started with Apollo, you need to download and install the Arduino IDE.
Debian / Ubuntu Linux:
- Open a terminal and type
sudo apt-get install arduino - The version contained in the repos is likely heavily outdated, but it installs all needed dependencies.
- Next, download the Linux version appropriate to your CPU architecture.
- Use
tar -xvf arduino-*-linux*.tar.xzor some other method to extract it in a convenient location. - Using a terminal,
cdinto the arduino directory, and run./arduinoto start the IDE.
Mac OS X:
- Download it from here
- Move the Arduino.app that is extracted from the zip into the Applications folder
- There is no step three.
Windows:
- Download it from here
- Install it like any other program.
- You will probably need to follow these instructions to install additional drivers.
- [This page][ScreenshotTutorial] is slightly outdated, but could be helpful.
2. Download the libraries
After installing the IDE, download the folowing libraries and extract them to your Arduino libraries folder located at C:\Users\your name\Documents\Arduino\libraries
the libraries can be downloaded from these links:
- Ascension’s LiquidCrystalShift Driver (LCD module)
- Adafruit’s TSL2561 Driver (light sensor)
- Adafruit’s Unified Sensor Driver (part of the light sensor driver)
- Adafruit’s BMP280 Driver (temperature and pressure sensor)
3. Test that it works
Now that the Arduino IDE is installed, it is time to make sure everything is working.
- Open the IDE
- Go to File -> Examples -> 01.Basics -> Blink
- Go to Tools -> Serial Port and then click on the Arduino
- Go to Tools -> Board -> Genuino Uno
- Click the button in the toolbar that looks like an arrow facing to the right.
If your Arduino IDE is configured correctly and your Apollo is plugged in, you should have an LED blinking on it now.
Now lets test out the display, copy and past the folowing code into the Arduino ide.
#include <LiquidCrystalShift.h> //This line of code creates a global instance of the LCD module
LiquidCrystalShift lcd(7, 8, A3); //The next thing that needs to be done is to place "lcd.begin(16, 2)"
//in your setup function, as shown below
void setup() {
lcd.begin(16, 2); //This line sets up the display
}
//Inside your loop function, or anywhere else, you can display
//text and values on the screen by using print statements
void loop() {
lcd.setCursor(0, 0); //resets the cursor to the top left of the screen
lcd.print("Hello World!"); //prints "Hello World!" to the screen
}
If you run the code now, you should see Hello, World on the display!