Setting up the Arduino CLI on Windows and installing libraries for the different boards requires several steps. Here's a step-by-step guide:
1. Download and Install Arduino CLI:
Download the latest version of Arduino CLI from the official Arduino site. Make sure to choose the right version for your Windows system (32 bit or 64 bit).
After downloading, extract the "arduino-cli.exe" file and place it in a directory that's included in your system's PATH. You can also add the directory containing the exe to your PATH.
2. Setting up Arduino CLI:
Open the command prompt and type "arduino-cli". You should see a list of available commands. If not, the CLI is not correctly installed.
First, update the core library by typing:
arduino-cli core update-index
3. Board Installation:
For each of the different boards, you will need to install the corresponding core. Here is how you do it for each:
Arduino Mega:
arduino-cli core install arduino:avr
Arduino Nano:
arduino-cli core install arduino:avr
ESP-WROOM-32:
First, add the ESP32 board manager URL to the Arduino CLI configuration:
arduino-cli config add board_manager.additional_urls https://dl.espressif.com/dl/package_esp32_index.json
Then, update the index and install the ESP32 core:
arduino-cli core update-index
arduino-cli core install esp32:esp32
Arduino Zero:
arduino-cli core install arduino:samd
4. Library Installation:
You can install libraries using the "arduino-cli lib install" command. Here's how you do it for the libraries you mentioned:
AccelStepper:
arduino-cli lib install "AccelStepper"
MultiStepper:
MultiStepper is a part of the AccelStepper library, so no separate installation is needed.
DHT sensor library:
arduino-cli lib install "DHT sensor library"
Adafruit Unified Sensor:
The DHT sensor library depends on this library, so install it as well:
arduino-cli lib install "Adafruit Unified Sensor"
For the 100k thermistor, you will need to know the exact library that's suitable for your application. The installation would be similar to the previous ones.
Remember to replace the library names inside the quotes with the exact library name if it's different. You can search for libraries using:
arduino-cli lib search "library_name"
Please note that you will need to upload the necessary code to the boards using the correct board name and FQBN (Fully Qualified Board Name). You can find this information using the following command:
arduino-cli board list
I hope this helps! Let me know if you have any more questions.