Arduino Programm

Want to learn programming?

Learn to program with the most versatile language for IoT thanks to Arduino. NessieSAT is easily programmable in Arduino IDE, so you will have all the information and help you need to learn how to program it.

You will be able to use multiple examples, libraries, programs and tips from the extensive Arduino community around the world. But... remember, this is a microsatellite (picosatellite), so before you start using the Arduino programming environment, you will need to configure it for this.

Here we'll show you how. It's very simple.

What is the Arduino IDE?

It is a set of software tools integrated in an environment (application) that allows you to program the Arduino language called Wiring (a special type of C++). It is an uncomplicated language that is similar to the one your computer uses to run its operating system. But don't panic. The Arduino IDE is much simpler and much more fun.

To get started, we'll start by installing the Arduino IDE on our computer. Here's how to do it. If you follow these steps carefully, you should have no problem writing your first program.


Installing the Arduino IDE

It is a set of software tools integrated in an environment (application) that allows you to program the Arduino language called Wiring (a special type of C++). It is an uncomplicated language that is similar to the one your computer uses to run its operating system. But don't panic. The Arduino IDE is much simpler and much more fun.

To get started, we'll start by installing the Arduino IDE on our computer. Here's how to do it.

  • Go to https://arduino.cc

  • Select the SOFTWARE tab

  • Select the version of your Operating System

  • Select whether you want to contribute financially to the Arduino project, or just download the software.

  • Download the software to your computer and install it.

Configuring Arduino IDE to program NessieSAT

Once the Arduino IDE software is installed, we must configure it to be able to program NessieSAT. It is very simple

  • Select the PREFERENCES option in the FILE tab.

  • Locate the field "Additional boards URLs".

  • Paste the following content in it:

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json

  • Click OK

  • Go to the TOOLS -> BOARDS -> "Boards Manager tab" and search for "esp32 by Espressif Systems" in the list. And select.

  • This will display the download and installation of various packages in the bottom window of the Arduino IDE. Everything is OK.

  • You can finally start using the ESP32-S2 with Arduino IDE!

Select NessieSAT

NessieSAT uses an ESP32-S2 microcontroller which you select from the drop-down menu under TOOLS -> BOARD -> esp32 ->ESP32S2 Dev Module.

First programme

Follow the steps below in the Arduino IDE.

  • In the File tab, select "New".

  • Copy the instructions you will find in the lower white background window and paste them into the Arduino IDE editor.

  • We will need to install the <Adafruit_NeoPixel.h> library, it's very simple

  • In Arduino IDE select the TOOLS tab, and in it the option "Manage Libraries".

  • On the left side of the screen there is a search box, type in "Adafruit Neopixel".

  • Several libraries will appear, click on the appropriate "Adafruit NEoPixel by Adafruit", and select the INSTALL option. This will start the installation of this library which will be installed for posterity in your Arduino IDE.

  • Now you can compile your program. To do so, click on the circle with a cross in the top left corner.

How to upload it to your NessieSAT

Once your program has been compiled on your computer (i.e. it has been converted to a language that can be understood by your NessieSAT's microprocessor), you must transfer it to your picosatellite. Don't worry, it's very easy if you follow these steps.

  • You must have your PC connected to NessieSAT via a micro USB cable.

  • On your Nessie SAT, press and hold the ENABLE button.

  • While holding down the ENABLE button, press and release the RESET button.

  • Release the ENABLE button. NessieSAT goes into programme acceptance mode for 30 seconds. Be quick in the following actions.

  • In Arduino IDE look for the option: TOOLS -> Port -> usbmodem01 (ESP32S2 Dev Module).

  • Click UPLOAD on the circular icon at the top left of the ArduinoIDE (it has the shape of an arrow pointing to the right).

  • At the bottom of ArduinoIDE you can check the status of the operation.

  • Once you have finished, you will see a message like "Upload error: Error: 2 UNKNOWN:".

  • Do NOT worry.

  • Press the BOOT button on your NessieSAT and you will be able to see how your LED changes colour, following the instructions you have given in your program.

In the following video we show you all the steps to follow to upload your programme.