Install Arduino IDE 1.8.19 on Raspberry Pi OS 32-bit buster, and setup arduino-esp32


Install Arduino IDE 1.8.19 on Raspberry Pi OS 32-bit buster



Visit https://www.arduino.cc/en/software, download Linux ARM 32 bits, and extract the downloaded file.

My usual practice rename extracted folder to arduino and move to Home Folder.

Open Terminal, switch to the arduino folder, run install.sh as su:
$ sudo ./install.sh
Setup arduino-esp32


In Arduino IDE, MENU > Preferences
Add the release link to Additional Boards Manager URLs.

Stable release link:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

or Development release link:
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_dev_index.json
Open Boards manager, search and install "esp32 by Espressif Systems".

Done. Now you can program ESP32/C3/S2/S3 in Arduino Framework.

ref:
~ Github espressif/arduino-esp32
~ Arduino-ESP32 doc > Getting Started > Installing



ESP32C3_info.ino, exercise code to get ESP info.
void setup() {
  // put your setup code here, to run once:
    delay(500);
  Serial.begin(115200);
  delay(500);
  Serial.println("\n\n================================");
  Serial.printf("Chip Model: %s\n", ESP.getChipModel());
  Serial.printf("Chip Revision: %d\n", ESP.getChipRevision());
  Serial.printf("with %d core\n", ESP.getChipCores());
  Serial.printf("Flash Chip Size : %d \n", ESP.getFlashChipSize());
  Serial.printf("Flash Chip Speed : %d \n", ESP.getFlashChipSpeed());

  esp_chip_info_t chip_info;
  esp_chip_info(&chip_info);
  Serial.printf("\nFeatures included:\n %s\n %s\n %s\n %s\n %s\n",
      (chip_info.features & CHIP_FEATURE_EMB_FLASH) ? "embedded flash" : "",
      (chip_info.features & CHIP_FEATURE_WIFI_BGN) ? "2.4GHz WiFi" : "",
      (chip_info.features & CHIP_FEATURE_BLE) ? "Bluetooth LE" : "",
      (chip_info.features & CHIP_FEATURE_BT) ? "Bluetooth Classic" : "",
      (chip_info.features & CHIP_FEATURE_IEEE802154) ? "IEEE 802.15.4" : "");
  
  Serial.println();

  Serial.println();
  Serial.println("\n- end of setup() -");

}

void loop() {
  // put your main code here, to run repeatedly:

}


~ Get ESP32-C3 chip info and predefined pins (arduino-esp32)


Comments

Popular posts from this blog

MicroPython/ESP32-C3 + 1.8" 128x160 TFT ST7735 SPI, using boochow/MicroPython-ST7735 library.

CameraWebServe: ESP32-S3 (arduino-esp32) + OV5640 camera module