[{"data":1,"prerenderedAt":737},["ShallowReactive",2],{"post-arduino-ide-vs-platformio-for-esp32-en":3,"related-posts-arduino-ide-vs-platformio-for-esp32-en":691,"related-categories-arduino-ide-vs-platformio-for-esp32-en":720},{"id":4,"title":5,"author":6,"authorImageUrl":7,"authorUrl":8,"body":9,"categorySlug":649,"categoryText":650,"dateModified":651,"datePublished":652,"description":653,"extension":654,"faqs":655,"image":674,"imageAlt":675,"language":676,"meta":677,"navigation":678,"path":679,"seo":680,"sitemap":681,"stem":682,"summary":683,"tags":684,"__hash__":690},"blog\u002Fblog\u002Farduino-ide-vs-platformio-for-esp32.md","Arduino IDE vs PlatformIO for ESP32: Which to Use","Mauro Brambilla","\u002Fimages\u002Fauthors\u002Fbruma.jpg","\u002Fabout",{"type":10,"value":11,"toc":632},"minimark",[12,21,24,29,32,39,44,61,65,82,92,95,175,194,200,204,207,212,225,231,234,238,251,259,266,270,318,322,337,341,350,356,365,379,383,405,427,431,447,467,479,483,491,571,580,584,587,596,609,613,619],[13,14,15,16,20],"p",{},"For one board and one sketch, use Arduino IDE 2. For an ESP32 project with several libraries, more than one build target or tests, use PlatformIO. Both compile your code against Espressif's Arduino-ESP32 core, so the real difference is where versions live: on your machine in the IDE, in a ",[17,18,19],"code",{},"platformio.ini"," file inside the project in PlatformIO.",[13,22,23],{},"I build OpenGizmo's three firmwares (Gizmo Ticker, Gizmo Reolink Switch and Gizmo Camera) with PlatformIO, so this comparison leans on their real config files and on the official docs of both tools, with the date each fact was checked: November 2026. It also covers the awkward parts, namely the Arduino-ESP32 3.x gap that pushed people to a fork, and a numbered path to move a sketch over.",[25,26,28],"h2",{"id":27},"which-should-you-pick-for-an-esp32-project","Which should you pick for an ESP32 project?",[13,30,31],{},"Pick by what the project needs to repeat. If someone else (or you, in a year) must rebuild the same firmware from a clean machine, versions have to be written down in the project. If you only need to see an LED blink tonight, they don't.",[13,33,34],{},[35,36],"img",{"alt":37,"src":38},"A maker coding an ESP32 sketch in PlatformIO inside VS Code, with main.cpp open next to the Home, Libraries and Debug sidebar","\u002Fimages\u002Fblog\u002Fgirl-pc-platform-io.png",[40,41],"blog-table",{":headers":42,":rows":43},"[\"Topic\",\"Arduino IDE 2\",\"PlatformIO\"]","[[\"Project file\",\"A sketch folder with a .ino file\",\"platformio.ini plus src\u002F, test\u002F and lib\u002F folders\"],[\"Where libraries live\",\"Installed once through Library Manager, shared by every sketch\",\"Downloaded per project from lib_deps into the libdeps folder\"],[\"Pinning versions\",\"Not in the IDE; Arduino CLI sketch profiles can\",\"platform and lib_deps lines, with exact versions, ranges or Git tags\"],[\"Several targets\",\"One board menu at a time\",\"One [env:name] section per target, selected with -e\"],[\"Command line\",\"Arduino CLI is a separate tool\",\"pio run, pio test and pio device monitor are the core tool\"],[\"Unit tests on your computer\",\"No test runner that I found in the docs\",\"pio test with the native platform and Unity\"],[\"Frameworks for ESP32\",\"Arduino-ESP32 core\",\"Arduino and ESP-IDF\"],[\"Where the ESP32 core comes from\",\"Espressif's Boards Manager index\",\"The espressif32 platform's bundled core\"]]",[13,45,46,47,54,55,60],{},"Arduino IDE 2.3.11 was the latest release on 12 November 2026, and PlatformIO's Visual Studio Code extension includes PlatformIO Core, so you don't install the command line separately. Both facts come from the ",[48,49,53],"a",{"href":50,"rel":51},"https:\u002F\u002Fgithub.com\u002Farduino\u002Farduino-ide\u002Freleases",[52],"nofollow","Arduino IDE releases"," and the ",[48,56,59],{"href":57,"rel":58},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fintegration\u002Fide\u002Fvscode.html",[52],"PlatformIO VS Code docs",".",[25,62,64],{"id":63},"what-does-a-real-platformioini-look-like","What does a real platformio.ini look like?",[13,66,67,68,70,71,75,76,81],{},"A ",[17,69,19],{}," is the one file that says which board, which platform version and which libraries a project builds with. Here is the firmware config of ",[48,72,74],{"href":73},"\u002Fprojects\u002Fgizmo-ticker","Gizmo Ticker",", copied from ",[48,77,80],{"href":78,"rel":79},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fplatformio.ini",[52],"microcontroller\u002Fplatformio.ini"," with its comments trimmed:",[83,84,90],"pre",{"className":85,"code":87,"filename":80,"language":88,"meta":89},[86],"language-ini","[platformio]\ndefault_envs = release\n\n[env:release]\nextra_scripts = pre:firmware_version.py\nboard = seeed_xiao_esp32s3\nplatform = espressif32 @ 8.0.0\nframework = arduino\nboard_build.partitions = huge_app.csv\nbuild_src_flags = -Wformat\nmonitor_speed = 115200\nlib_deps = \n    majicdesigns\u002FMD_Parola@3.7.5\n    majicdesigns\u002FMD_MAX72XX@3.5.1\n    esp32async\u002FESPAsyncWebServer@3.12.1\n    esp32async\u002FAsyncTCP@3.5.0\n    bblanchon\u002FArduinoJson@7.2.2\n    bblanchon\u002FStreamUtils@1.9.2\n    https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-common.git#v2.5.1\n\n[env:debug]\nextends = env:release\nbuild_unflags = -DCORE_DEBUG_LEVEL=0\nbuild_flags =\n    -D PIO_DEV_MODE=1\n    -D CORE_DEBUG_LEVEL=3\n\n[env:native]\nplatform = native@1.2.1\ntest_framework = unity\ntest_build_src = yes\nbuild_src_filter = -\u003C*> +\u003Cserver\u002Fsettings_json.cpp> +\u003Capi\u002Fmarket_refresh.cpp> +\u003Capi\u002Fmarket_data.cpp>\nbuild_flags =\n    -std=gnu++17\n    -D UNITY_INCLUDE_DOUBLE\nlib_deps =\n    throwtheswitch\u002FUnity@2.6.1\n    bblanchon\u002FArduinoJson@7.2.2\n","ini","",[17,91,87],{"__ignoreMap":89},[13,93,94],{},"Line by line, this is what each part does:",[96,97,98,121,127,138,148,165],"ul",{},[99,100,101,104,105,110,111,114,115,120],"li",{},[17,102,103],{},"board = seeed_xiao_esp32s3"," selects the ",[48,106,109],{"href":107,"rel":108},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fboards\u002Fespressif32\u002Fseeed_xiao_esp32s3.html",[52],"Seeed Studio XIAO ESP32-S3 board definition",": 240 MHz, 8 MB of flash, 320 KB of RAM. It is not the generic ",[17,112,113],{},"esp32dev"," board, which is the ",[48,116,119],{"href":117,"rel":118},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fboards\u002Fespressif32\u002Fesp32dev.html",[52],"ESP32 Dev Module profile"," with 4 MB of flash. Each ESP32 variant needs its own ID.",[99,122,123,126],{},[17,124,125],{},"platform = espressif32 @ 8.0.0"," pins the toolchain and the Arduino-ESP32 core it bundles. More on that below.",[99,128,129,132,133,137],{},[17,130,131],{},"board_build.partitions = huge_app.csv"," gives the app one 3 MB slot, which I use in every OpenGizmo firmware because none of them does wireless updates. The ",[48,134,136],{"href":135},"\u002Fblog\u002Fesp32-partition-table-explained","partition table post"," explains the trade.",[99,139,140,143,144,147],{},[17,141,142],{},"lib_deps"," lists every library with an exact version. The last line points at a Git tag of our shared ",[17,145,146],{},"gizmo-common"," library.",[99,149,150,153,154,157,158,161,162,60],{},[17,151,152],{},"[env:debug]"," copies ",[17,155,156],{},"release"," with ",[17,159,160],{},"extends"," and turns the core's log level up from 0 to 3. The same code, a different build, selected with ",[17,163,164],{},"pio run -e debug -t upload",[99,166,167,170,171,174],{},[17,168,169],{},"[env:native]"," builds three source files for your computer instead of the board, to run tests. The ",[17,172,173],{},"-\u003C*> +\u003Cfile>"," filter says \"nothing except these files\".",[13,176,177,178,183,184,189,190,193],{},"The same three sections (release, debug, native) sit in the ",[48,179,182],{"href":180,"rel":181},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-reolink-switch\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fplatformio.ini",[52],"Reolink Switch"," and ",[48,185,188],{"href":186,"rel":187},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-camera\u002Fblob\u002Fmain\u002Fmicrocontroller\u002Fplatformio.ini",[52],"Camera"," configs. The camera uses ",[17,191,192],{},"board = esp32cam",", which turns on its PSRAM for the frame buffers.",[13,195,196],{},[35,197],{"alt":198,"src":199},"One platformio.ini with three environments: release builds the XIAO ESP32-S3 firmware, debug adds core logs, native runs Unity tests on the computer","\u002Fimages\u002Fblog\u002Farduino-ide-vs-platformio-for-esp32-environments.webp",[25,201,203],{"id":202},"where-do-libraries-live-and-how-do-you-pin-their-versions","Where do libraries live, and how do you pin their versions?",[13,205,206],{},"Pinning means writing the exact version you built with next to the code, so that a build next year uses the same library and core. The two tools differ in where that record can live.",[208,209,211],"h3",{"id":210},"arduino-ide-2-installed-once-shared-by-every-sketch","Arduino IDE 2: installed once, shared by every sketch",[13,213,214,215,218,219,224],{},"You add the ESP32 core by pasting Espressif's package index URL into the IDE's preferences, then installing the ",[17,216,217],{},"esp32"," platform from the Boards Manager, as the ",[48,220,223],{"href":221,"rel":222},"https:\u002F\u002Fdocs.espressif.com\u002Fprojects\u002Farduino-esp32\u002Fen\u002Flatest\u002Finstalling.html",[52],"Arduino-ESP32 installation guide"," describes. Libraries come from the Library Manager. Both are installed on the machine, once. Update a library for one sketch and every other sketch gets the new version too, and nothing in the sketch folder records which version it was written against.",[13,226,227],{},[35,228],{"alt":229,"src":230},"A maker writing a sketch.ino in Arduino IDE next to an Arduino board and a breadboard","\u002Fimages\u002Fblog\u002Fguy-laptop-arduino-ide.png",[13,232,233],{},"That is fine for a sketch you finish in an evening. It hurts when a library update changes an API and you must remember which of your projects uses which version.",[208,235,237],{"id":236},"arduino-cli-sketch-profiles-the-arduino-side-answer","Arduino CLI sketch profiles: the Arduino-side answer",[13,239,240,241,246,247,250],{},"The Arduino side has an answer, but it lives in the command line tool. In Arduino CLI, a ",[48,242,245],{"href":243,"rel":244},"https:\u002F\u002Fdocs.arduino.cc\u002Farduino-cli\u002Fsketch-project-file\u002F",[52],"sketch profile"," in a ",[17,248,249],{},"sketch.yaml"," file lists the board, the core platform version and the library versions. Arduino's docs say a profile build \"is isolated from the system and will rely only on the resources specified in the profile\". An illustrative profile for the XIAO ESP32-S3:",[83,252,257],{"className":253,"code":255,"filename":249,"language":256,"meta":89},[254],"language-yaml","profiles:\n  release:\n    fqbn: esp32:esp32:XIAO_ESP32S3\n    platforms:\n      - platform: esp32:esp32 (3.3.12)\n        platform_index_url: https:\u002F\u002Fespressif.github.io\u002Farduino-esp32\u002Fpackage_esp32_index.json\n    libraries:\n      - ArduinoJson (7.2.2)\ndefault_profile: release\n","yaml",[17,258,255],{"__ignoreMap":89},[13,260,261,262,265],{},"Build it with ",[17,263,264],{},"arduino-cli compile --profile release",". That page documents the CLI; I could not confirm from it that the Arduino IDE 2 window exposes profiles, so treat the IDE itself as global-install-only.",[208,267,269],{"id":268},"platformio-versions-in-the-project","PlatformIO: versions in the project",[13,271,272,273,275,276,279,280,285,286,289,290,295,296,299,300,303,304,307,308,313,314,317],{},"PlatformIO downloads what ",[17,274,142],{}," lists into the project's ",[17,277,278],{},"libdeps"," folder (the default value of the ",[48,281,284],{"href":282,"rel":283},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fprojectconf\u002Fsections\u002Fplatformio\u002Foptions\u002Fdirectory\u002Flibdeps_dir.html",[52],"libdeps_dir option"," is ",[17,287,288],{},"workspace_dir\u002Flibdeps","), so two projects never share a library. The ",[48,291,294],{"href":292,"rel":293},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fprojectconf\u002Fsections\u002Fenv\u002Foptions\u002Flibrary\u002Flib_deps.html",[52],"lib_deps docs"," show registry names (",[17,297,298],{},"owner\u002Fname","), SemVer ranges such as ",[17,301,302],{},"bblanchon\u002FArduinoJson @ ~5.6,!=5.4",", and Git URLs with a tag (",[17,305,306],{},"...git#v2.0","). OpenGizmo uses exact versions and a Git tag; the ",[48,309,312],{"href":310,"rel":311},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Fblob\u002Fmain\u002F.github\u002Fworkflows\u002Fbuild_and_release.yml",[52],"release workflow"," even installs a fixed PlatformIO Core (",[17,315,316],{},"platformio==6.2.0","), so CI and a fresh clone resolve the same set.",[25,319,321],{"id":320},"does-platformio-support-the-latest-arduino-esp32-core","Does PlatformIO support the latest Arduino-ESP32 core?",[13,323,324,325,330,331,336],{},"Yes, as of November 2026, but it took a while. PlatformIO's ",[48,326,329],{"href":327,"rel":328},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fplatforms\u002Fespressif32.html",[52],"espressif32 platform"," bundles an Arduino-ESP32 core, and the ",[48,332,335],{"href":333,"rel":334},"https:\u002F\u002Fgithub.com\u002Fplatformio\u002Fplatform-espressif32\u002Freleases",[52],"platform releases page"," shows which one:",[40,338],{":headers":339,":rows":340},"[\"espressif32 release\",\"Date\",\"Arduino-ESP32 core\"]","[[\"6.13.0\",\"26 Feb\",\"2.0.17\"],[\"7.0.0 to 7.1.0\",\"30 Apr to 31 Aug\",\"2.0.17\"],[\"8.0.0\",\"19 Oct\",\"3.3.12\"]]",[13,342,343,344,349],{},"So through the 7.x line the official platform stayed on core 2.0.17, while Espressif's own Boards Manager index moved on to 3.x. That gap is why the community ",[48,345,348],{"href":346,"rel":347},"https:\u002F\u002Fgithub.com\u002Fpioarduino\u002Fplatform-espressif32",[52],"pioarduino platform",", a fork of the official one, got popular. You use it by replacing the platform line with a URL:",[83,351,354],{"className":352,"code":353,"language":88,"meta":89},[86],"platform = https:\u002F\u002Fgithub.com\u002Fpioarduino\u002Fplatform-espressif32\u002Freleases\u002Fdownload\u002Fstable\u002Fplatform-espressif32.zip\n",[17,355,353],{"__ignoreMap":89},[13,357,358,359,364],{},"Its stable release also provides Arduino 3.3.12 now, and it adds extras such as a hybrid compile mode for chips the Arduino core does not cover. Since the official 8.0.0 caught up, I would stay on the official platform unless you need one of those extras. The ",[48,360,363],{"href":361,"rel":362},"https:\u002F\u002Fgithub.com\u002Fplatformio\u002Fplatform-espressif32\u002Freleases\u002Ftag\u002Fv8.0.0",[52],"8.0.0 release notes"," also warn that Arduino-ESP32 3.x lacks the full Bluetooth refactoring planned for v4.0.",[13,366,367,368,371,372,375,376,378],{},"Two practical rules follow. Pin the platform (",[17,369,370],{},"espressif32 @ 8.0.0",", or ",[17,373,374],{},"~8.0.0"," to accept patch releases), because a platform bump is a core bump and core 2 to core 3 changes APIs. And read the release page before upgrading. All three OpenGizmo repositories pin ",[17,377,370],{},", so they build on core 3.3.12.",[25,380,382],{"id":381},"how-do-debugging-options-compare","How do debugging options compare?",[13,384,385,386,389,390,392,393,396,397,399,400,60],{},"Most ESP32 debugging is ",[17,387,388],{},"Serial"," logging, and both tools do that. The difference with PlatformIO is that a log level is a build profile: ",[17,391,164],{}," followed by ",[17,394,395],{},"pio device monitor"," gives you the ticker firmware with the core's own messages on, and ",[17,398,156],{}," keeps the serial log off. The ticker README documents ",[48,401,404],{"href":402,"rel":403},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker#build-profiles",[52],"the three build profiles",[13,406,407,408,412,413,416,417,420,421,426],{},"Hardware debugging (breakpoints and stepping) needs a probe. PlatformIO's ",[48,409,411],{"href":107,"rel":410},[52],"XIAO ESP32-S3 page"," says the board has no on-board debug probe and is not ready for debugging, and lists external tools you select with the ",[17,414,415],{},"debug_tool"," option, ",[17,418,419],{},"esp-builtin"," among them. Arduino IDE 2 has its own ",[48,422,425],{"href":423,"rel":424},"https:\u002F\u002Fdocs.arduino.cc\u002Fsoftware\u002Fide-v2\u002Ftutorials\u002Fide-v2-debugger",[52],"debugger","; I could not confirm in its docs that ESP32 boards are covered, so check before you buy a probe. I don't use a hardware debugger on the OpenGizmo firmware: it relies on the debug profile and the serial log.",[25,428,430],{"id":429},"can-you-unit-test-esp32-code-without-a-board","Can you unit test ESP32 code without a board?",[13,432,433,434,439,440,442,443,446],{},"If the logic does not touch hardware, yes. PlatformIO's ",[48,435,438],{"href":436,"rel":437},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Fadvanced\u002Funit-testing\u002Findex.html",[52],"unit testing"," can run the same tests on your computer (the native platform) or on a connected board, with frameworks such as Unity. In the config above, ",[17,441,169],{}," compiles only three files, and ",[17,444,445],{},"pio test -e native"," runs them:",[96,448,449,455,461],{},[99,450,451,454],{},[17,452,453],{},"server\u002Fsettings_json.cpp",", the mapping between settings and the web API's JSON",[99,456,457,460],{},[17,458,459],{},"api\u002Fmarket_refresh.cpp",", which decides when to fetch prices again",[99,462,463,466],{},[17,464,465],{},"api\u002Fmarket_data.cpp",", which reads the CoinGecko reply",[13,468,469,470,475,476,478],{},"Those tests live in ",[48,471,474],{"href":472,"rel":473},"https:\u002F\u002Fgithub.com\u002Fopen-gizmo\u002Fgizmo-ticker\u002Ftree\u002Fmain\u002Fmicrocontroller\u002Ftest",[52],"microcontroller\u002Ftest\u002F",", and the release workflow runs ",[17,477,445],{}," before it builds the firmware. The limit is real: native tests cover logic that compiles on a PC. Anything that talks to the matrix, Wi-Fi or flash still needs a board. I did not find a test runner in the Arduino IDE 2 documentation, so on that side you would test on the board by hand or script it with another tool.",[25,480,482],{"id":481},"how-do-you-move-an-arduino-sketch-to-platformio","How do you move an Arduino sketch to PlatformIO?",[13,484,485,486,60],{},"A sketch of one file converts in a few steps. The conversion rules come from PlatformIO's ",[48,487,490],{"href":488,"rel":489},"https:\u002F\u002Fdocs.platformio.org\u002Fen\u002Flatest\u002Ffaq\u002Fino-to-cpp.html",[52],"ino to cpp guide",[492,493,494,497,512,528,540,554,561],"ol",{},[99,495,496],{},"Install Visual Studio Code, then the PlatformIO IDE extension from the Extensions view. It includes PlatformIO Core.",[99,498,499,500,503,504,506,507,183,509,60],{},"In PlatformIO Home, choose New Project, pick your board (",[17,501,502],{},"seeed_xiao_esp32s3"," for a XIAO ESP32-S3, ",[17,505,113],{}," for a classic ESP32 DevKit) and the Arduino framework. You get a ",[17,508,19],{},[17,510,511],{},"src\u002Fmain.cpp",[99,513,514,515,517,518,521,522,183,525,60],{},"Paste your sketch into ",[17,516,511],{},". Add ",[17,519,520],{},"#include \u003CArduino.h>"," at the top, and declare every custom function before it is called. Don't declare ",[17,523,524],{},"setup",[17,526,527],{},"loop",[99,529,530,531,533,534,536,537,60],{},"Move each library to ",[17,532,142],{},". Search the PlatformIO Registry, copy the ",[17,535,298],{}," form, and add the version you used, for example ",[17,538,539],{},"bblanchon\u002FArduinoJson@7.2.2",[99,541,542,543,545,546,549,550,553],{},"Pin the platform: ",[17,544,125],{},". Carry over any Tools menu choices that mattered, such as the partition scheme (",[17,547,548],{},"board_build.partitions",") and the serial speed (",[17,551,552],{},"monitor_speed = 115200",").",[99,555,556,557,560],{},"Run ",[17,558,559],{},"pio run",". Fix missing prototypes or includes until the build succeeds.",[99,562,563,564,567,568,570],{},"Connect the board and run ",[17,565,566],{},"pio run -t upload",", then ",[17,569,395],{}," to read the serial output.",[13,572,573,574,576,577,579],{},"Once it works, add a ",[17,575,152],{}," that ",[17,578,160],{}," your main environment, as in the example above. That is the cheapest improvement you get from the move.",[25,581,583],{"id":582},"where-does-platformio-cost-you-and-when-does-arduino-ide-win","Where does PlatformIO cost you, and when does Arduino IDE win?",[13,585,586],{},"The strongest objection to PlatformIO is its start-up cost. You learn an ini file, a folder layout and a few commands before the first blink, and the editor experience depends on a VS Code extension. Core and platform upgrades are explicit, which is good for repeatability and means you carry the work of reading release notes. For a single sketch, none of that pays back.",[13,588,589,590,595],{},"Arduino IDE 2 wins when the project is one sketch on one board, when you follow a tutorial written for it, or when you want Espressif's newest core straight from the Boards Manager index the day it ships. Its ",[48,591,594],{"href":592,"rel":593},"https:\u002F\u002Fdocs.arduino.cc\u002Fsoftware\u002Fide\u002F",[52],"documentation"," is the better starting point for a first week.",[13,597,598,599,603,604,608],{},"There is also a third answer: skip both. ",[48,600,602],{"href":601},"\u002Fblog\u002Fwhat-is-opengizmo","OpenGizmo's projects"," ship prebuilt firmware that you flash from the browser, and the ",[48,605,607],{"href":606},"\u002Fblog\u002Fesp-web-tools-flash-esp32-from-browser","ESP Web Tools guide"," explains how. You only need a toolchain to change the code.",[25,610,612],{"id":611},"so-which-one-should-you-start-with","So which one should you start with?",[13,614,615,616,618],{},"Start with Arduino IDE 2 if you want a first upload today. Move to PlatformIO when you catch yourself wanting a second board profile, a test or the ability to rebuild an old version. The sketch conversion above is short, and ",[17,617,142],{}," plus a pinned platform buy you builds that keep working.",[13,620,621,622,626,627,631],{},"What I checked: the config files of the three OpenGizmo firmware repositories, the espressif32 release notes and the official docs linked above, as of November 2026. What I did not check: whether Arduino IDE 2's debugger works with ESP32 boards, and whether its GUI exposes sketch profiles. Next, read the ",[48,623,625],{"href":624},"\u002Fblog\u002Fxiao-esp32s3-pinout-safe-pins","XIAO ESP32-S3 pinout guide"," for the board used in these configs, or the ",[48,628,630],{"href":629},"\u002Fblog\u002Fhow-to-build-a-crypto-ticker-with-esp32-and-max7219","Gizmo Ticker build guide"," to see the whole project built with this setup.",{"title":89,"searchDepth":633,"depth":633,"links":634},2,[635,636,637,643,644,645,646,647,648],{"id":27,"depth":633,"text":28},{"id":63,"depth":633,"text":64},{"id":202,"depth":633,"text":203,"children":638},[639,641,642],{"id":210,"depth":640,"text":211},3,{"id":236,"depth":640,"text":237},{"id":268,"depth":640,"text":269},{"id":320,"depth":633,"text":321},{"id":381,"depth":633,"text":382},{"id":429,"depth":633,"text":430},{"id":481,"depth":633,"text":482},{"id":582,"depth":633,"text":583},{"id":611,"depth":633,"text":612},"comparisons","Comparisons","2026-11-14T00:00:00Z","2026-06-25T00:00:00Z","Arduino IDE 2 or PlatformIO for ESP32? Compare library pinning, Arduino-ESP32 3.x, debugging and tests, with the real platformio.ini of Gizmo Ticker.","md",[656,659,662,665,668,671],{"question":657,"answer":658},"Is PlatformIO better than Arduino IDE for ESP32?","For projects with several libraries, more than one build target or tests, yes: PlatformIO keeps the platform, board and library versions in a platformio.ini file inside the project. For a single sketch on one board, Arduino IDE 2 is faster to start and has fewer moving parts.",{"question":660,"answer":661},"Does PlatformIO support the Arduino-ESP32 3.x core?","Yes, as of November 2026. The official espressif32 platform 8.0.0, released on 19 October, ships Arduino-ESP32 3.3.12. Earlier 7.x releases shipped core 2.0.17, which is why the community pioarduino platform became popular. Pin the platform version and check what it bundles before upgrading.",{"question":663,"answer":664},"Can PlatformIO use Arduino libraries?","Yes. PlatformIO builds ESP32 projects against the Arduino-ESP32 core, so Arduino libraries work. You declare them in lib_deps, by registry name such as bblanchon\u002FArduinoJson @ 7.2.2 or by Git URL, and PlatformIO downloads them into the project instead of a shared global folder.",{"question":666,"answer":667},"How do I pin library versions in Arduino IDE?","The IDE installs cores and libraries once for the whole machine, so one version serves every sketch. To pin versions per sketch, use Arduino CLI sketch profiles: a sketch.yaml file lists the core platform and library versions, and the build ignores whatever else is installed.",{"question":669,"answer":670},"Can I test ESP32 code without a board?","Yes, if the code does not touch hardware. PlatformIO's native platform compiles chosen source files for your computer and runs Unity tests with pio test -e native. Gizmo Ticker does this for its settings JSON and market-data parsing, and its CI runs the tests before building the firmware.",{"question":672,"answer":673},"Can I flash an ESP32 without installing either tool?","Yes. If a project publishes prebuilt firmware, ESP Web Tools flashes it from Chrome or Edge over USB with no toolchain installed. You only need Arduino IDE or PlatformIO when you want to change the code, add libraries or build your own firmware.","\u002Fimages\u002Fblog\u002Farduino-ide-vs-platformio-for-esp32.png","An infographic comparing Arduino IDE and PlatformIO, with their development interfaces and an ESP32 board.","en",{},true,"\u002Fblog\u002Farduino-ide-vs-platformio-for-esp32",{"title":5,"description":653},{"loc":679},"blog\u002Farduino-ide-vs-platformio-for-esp32","Use Arduino IDE 2 for one board and one sketch. Use PlatformIO when libraries, targets or tests need pinning: its platformio.ini keeps every version in the project, not on your machine.",[685,686,687,688,689],"ESP32","Arduino IDE","PlatformIO","Development Tools","Firmware","Eplf22cpJkv8rYhx8cdVdSPnm_nMJf6pp6js3kBHfTA",[692,700,708,713],{"title":693,"description":694,"image":695,"categoryText":650,"categorySlug":649,"tags":696,"path":699},"ESPHome vs Custom Firmware on ESP32: Which to Use","ESPHome or custom ESP32 firmware? A decision table, what ESPHome can't do, and why OpenGizmo's own web app, portal and MCP server use PlatformIO.","\u002Fimages\u002Fblog\u002Fesphome-vs-custom-esp32-firmware.jpg",[685,689,697,687,698],"Home Automation","OpenGizmo","\u002Fblog\u002Fesphome-vs-custom-esp32-firmware",{"title":701,"description":702,"image":703,"categoryText":704,"categorySlug":705,"tags":706,"path":135},"ESP32 Partition Table Explained: Flash Layout and OTA","What the ESP32 partition table is, how the partitions.csv columns work, the Arduino-ESP32 schemes with sizes, flash offsets by chip, and what N16R8 means.","\u002Fimages\u002Fblog\u002Fesp32-partition-table-explained.jpg","Guides","guides",[685,689,707,687,698],"Embedded Systems",{"title":709,"description":710,"image":711,"categoryText":704,"categorySlug":705,"tags":712,"path":606},"ESP Web Tools: Flash an ESP32 From Your Browser","Flash an ESP32 from the browser with ESP Web Tools or esptool-js: how Web Serial, the manifest and the flash offsets work, with a real OpenGizmo manifest.","\u002Fimages\u002Fblog\u002Fesp-web-tools-flash-esp32-from-browser.jpg",[685,689,688,698,707],{"title":714,"description":715,"image":716,"categoryText":704,"categorySlug":705,"tags":717,"path":719},"ESP32-CAM-MB: Program the ESP32-CAM Over USB","How to program an ESP32-CAM with the ESP32-CAM-MB USB board: what it contains, the IO0 and RST button sequence, flashing from Chrome, and what fails.","\u002Fimages\u002Fblog\u002Fesp32-cam-mb-usb-programmer-guide.jpg",[718,685,689,688,698],"ESP32-CAM","\u002Fblog\u002Fesp32-cam-mb-usb-programmer-guide",[721,727,733],{"name":722,"slug":723,"path":724,"count":725,"image":726},"Builds","builds","\u002Fblog\u002Fcategories\u002Fbuilds",6,"\u002Fimages\u002Fblog\u002F3d-printed-esp32-enclosure-design-guide.jpg",{"name":728,"slug":729,"path":730,"count":731,"image":732},"Troubleshooting","troubleshooting","\u002Fblog\u002Fcategories\u002Ftroubleshooting",5,"\u002Fimages\u002Fblog\u002Fesp32-brownout-detector-was-triggered.jpg",{"name":704,"slug":705,"path":734,"count":735,"image":736},"\u002Fblog\u002Fcategories\u002Fguides",11,"\u002Fimages\u002Fblog\u002Fcoingecko-api-esp32-rate-limits.jpg",1795511559090]