PI-server-rack/arduino
2022-08-31 21:33:04 +02:00
..
libs moved libraries (again) 2022-08-31 18:56:40 +02:00
arduino.ino import cleanup 2022-08-31 21:33:04 +02:00
README.md first version of arduino README 2022-08-31 15:54:36 +02:00

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
  1. 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.

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.