Skip to content

Arduino Source Code

DCHartlen edited this page Jun 30, 2018 · 3 revisions

Arduino/microcontroller source code is housed in the main repository under "ArduinoSourceCode". All source code and files used for this activity can also be downloaded from the releases section of this repository.

A basic knowledge of Arduino is assumed for this project. For simply operational purposes, this assumed knowledge is simply how to compile and upload the source code to the Arduino. If you are completely new to Arduino, please refer to any number of tutorials available online. Modification of the source code requires some knowledge of the Arduino programming language, which is closely related to C++.

The source code for this project only does three things.

  1. Reads motor voltage at 100 Hz. Motor voltage is acquired in volts and is transformed into voltage on the microcontroller.
  2. The converted voltage is sent to an attached computer through the serial COM port at 100 Hz.
  3. The converted voltage is printed to the attached LCD screen. Unlike acquisition and communication with the computer, the LCD screen is only updated at 5 Hz to prevent flicker.

Clone this wiki locally