Arduino Basics

Arduino Basics

Arduino Basics #

How To Get Started? #

Download the Arduino software and follow the instructions on the Arduino website if you have problems setting things up. The Arduino boards that you have are Arduino Unos and do not require any driver installation for Mac or Linux. Windows will require a driver that comes with the installer package.

Getting Started With Arduino from the Arduino website.

Arduino Code Structure #

The Arduino software is used to program the Arduino board. You will notice that it is very similar to Processing or p5.js. The code structure is also very similar. All Arduino sketches need to have the following functions.

  • setup()
    • Runs once when the board starts or is reset
    • You use the setup() for things that you usually only need to do once (like opening the serial port, defining pin modes etc.)
  • loop()