Tutorial 11: Upload a Sketch from the Terminal

Let's face it: the Arduino IDE is not the best IDE out there. One issue I have with the IDE is that you can't accordion the functions you write, making it tedious to work with larger sketches you want to upload. It's also a bit of a problem when your Arduino is connected to a remote computer, like a Raspberry Pi. Instead of running a full blown VNC server, wouldn't it be convenient if we could just quickly make adjustments via SSH?

In this tutorial I show you how to compile and upload Arduino sketches from the Terminal. Terminal is available on Mac and Linux computers, including the Raspberry Pi. I hope you find this one interesting!


DIFFICULTY
EASY
LINUX KNOWLEDGE
THE BASICS
C++ PROGRAMMING
LITTLE
ABOUT
0
MINUTES
  • How to compile an Arduino sketch from the terminal
  • How to upload an Arduino sketch from the terminal
  • How to view the serial output of your Arduino with screen
The code used in this tutorial is for demonstration purposes and is trivial. You shouldn’t need me to post the code here. C’mon, guys.