Skip to content

Programming Arduinos using Source Academy

martin-henz edited this page Mar 2, 2020 · 6 revisions

Disclaimer

The info below is not actually describing facts, but it serves to communicate the vision of the Arduino-Source-Academy project.

Principles

The Source Academy allows users with a Source Academy course account to program some types of Arduinos using the Source language. The programming is done as usual, using the web-based programming environment Source Academy (https://sourceacademy.nus.edu.sg). When students choose "Arduino" as the language, their programs are sent to their Arduino, instead of the Source runtime system in the Source Academy browser-frontend.

Source Academy Arduino Connections

The Source Academy provides a menu for registering Arduino connections:

  • Get new Arduino-Source-ID
  • Set Arduino-Source-ID (for multiple students to share the same Arduino and for letting a student access their Arduino from multiple devices)

Preparation

  • Get a new Arduino-Source-ID using the Source Academy
  • Upload the Arduino Source runtime system to the Arduino (we need to list available Arduino configurations, with the runtime software (image?) for download)
  • Set Arduino-Source-ID in the Arduino Source runtime system (how?)
  • Turn on Arduino to run the Arduino Source runtime system

Running your program on your Arduino

  • Choose "Arduino" as the Source language version in the Source Academy
  • Write your Source program in the Source editor
  • Press "Run" to upload the program to the Arduino and run it.