From 056bc005027ab6adc0e874a03a4981295b0bee1d Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Wed, 31 Aug 2022 15:54:36 +0200 Subject: [PATCH] first version of arduino README --- arduino/README.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/arduino/README.md b/arduino/README.md index 10ed215..adced3b 100644 --- a/arduino/README.md +++ b/arduino/README.md @@ -1 +1,37 @@ -# Arduno module \ No newline at end of file +# Arduino module + +## task +The Arduino module manages the overall assets of the server rack. Those are the LCD display, the button panel and the internal and external serial communication between the computer, Raspberry PI4, Raspberry PI1.2 and itself. It also collects data about the system such as package loss, etc... + +## Build from source +1. The following packages/programs need to be installed and setup: + + - arduino-cli with the following libraries installed (or use libs provided in `libs/`): + - SoftwareSerial + - LiquidCristal + - git (or clone repository manually) + +2. open a terminal and run the following commands: + +``` +git clone https://github.com/J-onasJones/PI-server-rack.git +cd PI-server-rack +arduino-cli --fqbn [arduino board of your choice] arduino +``` +3. to upload the sketch to an arduino run the following command: +``` +arduino-cli upload --fqbn [arduino board of your choice] -p [arduino port name] arduino +``` +As an example on Linux for the `Arduino Nano` the following: +``` +arduino-cli upload --fqbn arduino:avr:nano -p /dev/ttyUSB0 arduino +``` + + + +## Credits and Licensing + +This project is licensed under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0). + +### Libraries +All provided license files for the arduino libraries at `/arduino/libs` of this repository have been added to the top of the header file of each library (the files ending in `.h`) if provided or required. \ No newline at end of file