MacOS - r41d/ClusterDuck-Protocol GitHub Wiki
This page documents the steps to install Arduino IDE on macOS, set up your Dev environment, and prepare to upload the CDP on your electronics. This page will go through:
- Part One: Install Arduino IDE on MacOS
- Part Two: Install Libraries and Dependencies
- Part Three: Upload CDP to electronics.
Some helpful links:
Mac OS Big Sur Fix If your IDE does not compile because of an ESPtool.py problem run the following commands in order and then restart Arduino IDE:
mkdir -p ~/Documents/Arduino/hardware/espressif && \
cd ~/Documents/Arduino/hardware/espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 --depth 1 && \
cd esp32 && \
git submodule update --init --recursive --depth 1 && \
cd tools && \
python get.py
Part One: Install the Arduino IDE on MacOS
-
Download and install the Arduino IDE and make sure to select MacOS
-
Install the Silicon Labs USB to UART Bridge VCP Driver From Downloads Page. Note: Make sure Silicon Labs has the necessary security preferences (go to System Preferences -> Security and Privacy -> General and allow Silicon Labs).
-
Install the ESP32 core Library by opening the Arduino IDE menu and go to [File] > [Preferences]. In [Additional Boards Manager URLs] add the following string:
https://dl.espressif.com/dl/package_esp32_index.json,https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
- if there is already a URL here, add a comma at the end and then add this URL. -
Next, you will need to load the ESP32 Boards to your Arduino IDE. From Arduino IDE menu, select [Tools] > [Board] > [Boards Manager], Search for "esp32". You should see the "esp32" by Espressif Systems" library. Install this library.
Part Two: Install Libraries and Dependencies
There are 3 different methods you can use to install libraries and dependencies on your machine. If you have SSH enabled on your GitHub, we recommend method A: Script installation as it will be the fastest and easiest. Method B: Manual Install, or Method C: Zip Install will also work if you prefer either of those.
Method A. Script Installation
- Make sure SSH is enabled on your laptop with your GitHub Account, if not instructions to setup here
- Fork the ClusterDuck Protocol source code (This repository)
- Copy and run the following command in your terminal and change it to your github username
curl -s https://clusterduckprotocol.org/assets/Wiki_Script/MacOs.sh | bash -s <YOUR GITHUB USERNAME>
- Done!
Method B. Manual Install
- Open up a terminal or a git command prompt
git clone --recursive https://github.com/Call-for-Code/ClusterDuck-Protocol.git
- Run inside the copied 'ClusterDuck-Protocol' the following
git submodule update --init --recursive
- Copy the
ClusterDuck-Protocol
folder into your local Arduino Libraries folder /Users/USER/Documents/Arduino/libraries. - Navigate into the
ClusterDuck-Protocol
folder and open theLibraries
folder - Copy all the libraries form the ClusterDuck-Protocol
Libraries
folder and Paste it into your local Arduino IDE Libraries folder_/Users/USER/Documents/Arduino/libraries_
. - Open Arduino IDE
- You should now be able to see the examples by going to File -> Examples -> ClusterDuck Protocol
You should be able to pull new commits directly to this folder in your Arduino library.
Method C. Zip Install
Go to the following websites and download the Libraries:
- adafruit/Adafruit-BMP085-Library: A powerful but easy to use BMP085/BMP180 Library
- adafruit/Adafruit_BMP280_Library: Arduino Library for BMP280 sensors
- https://arduinojson.org/v6/doc/installation/
- me-no-dev/AsyncTCP: Async TCP Library for ESP32
- adafruit/DHT-sensor-library: Arduino library for DHT11, DHT22, etc Temperature & Humidity Sensors
- https://github.com/ThingPulse/esp8266-oled-ssd1306
- https://github.com/me-no-dev/ESPAsyncWebServer
- https://github.com/FastLED/FastLED
- https://github.com/sandeepmistry/arduino-LoRa
- https://github.com/swatish17/MQ7-Library
- https://github.com/knolleary/pubsubclient
- https://github.com/olikraus/u8g2
- https://github.com/mkarawacki/wavesharesharpdustsensor
- adafruit/Adafruit_Sensor: Common sensor library
- Arduino-timer
- espressif/arduino-esp32: Arduino core for the ESP32
- ESPAscyncWebServer
To add Libraries by zip files. Go to Sketch > include Library > add .zip Library…
Part Three: Upload CDP to Electronics
Now follow these steps to get started inside the Arduino IDE