The market covers several dozen architectures and vendors, and most projects could use plenty of the parts on it, so finding candidates means a wide, shallow search. A language model is good at that kind of search. It has read about most of the market, it compares families when you ask, and it hands back a shortlist in one reply.

Having read about everything is also why it gets details wrong. It averages across variants, blends numbers from different datasheets, and quotes stock levels from whenever its training data ends. The workflow below takes the shortlist and catches the errors: you write the requirements first, the model shows where each number came from, and you check the datasheet before anything reaches a board.

Write the requirement before the prompt

A model can only narrow down what you describe. Write these down first:

  • Power: the source (battery, USB, mains), a current budget in milliamps, and how long the device must run.
  • Radio: Wi-Fi, Bluetooth, something else, or none.
  • Peripherals: your sensors and actuators, and the buses they use: I2C, SPI, UART, analog.
  • Environment: temperature range and any certification the product will eventually need.
  • Toolchain: what you are willing to work in, from maker-friendly frameworks to vendor SDKs.
  • Volume: one prototype, a hundred units, or a product.

A microcontroller is a small computer on a single chip, with processor cores, memory and programmable I/O peripherals built for embedded use rather than general computing (Wikipedia). Your list is what turns that general description into a part number.

Ask the model to name the requirements you have left out. A good model asks about the power budget, the boot pins, certification targets and cost limits before it assumes anything, and its questions often turn up a requirement you never wrote down.

The prompt that works

Suggest three microcontrollers for this project: [paste requirements]. For each, give the exact part number and package, deep-sleep current, the peripherals from my list, flash and RAM sizes, toolchain support, and the datasheet section each number comes from. Ask me questions before assuming anything.

Ask for three candidates. A single answer hides the tradeoffs, and a shortlist leaves you a fallback when the first pick goes out of stock. Asking for the datasheet section behind each number gives you a quick way to check the answer, and a model that has to name sections guesses less.

What a good answer looks like

Here are two parts a model should suggest for the right requirements, described at the level of detail you want back.

The RP2040 from Raspberry Pi has dual ARM Cortex-M0+ cores at up to 133 MHz, 264 kB of on-chip SRAM and 30 multifunction GPIO pins. It has no on-chip flash: code executes in place from external QSPI flash (RP2040 datasheet, section 1.2). Its programmable I/O (PIO) blocks handle interface protocols the fixed hardware lacks, and it has a 4-channel 12-bit ADC running at 500 ksps. It shipped in January 2021 on the $4 Raspberry Pi Pico board, and the chip itself was introduced at about $1 (Wikipedia). It suits cheap designs heavy on logic, and it is the wrong choice whenever you need a radio.

The ESP32 has 2.4 GHz Wi-Fi and Bluetooth on chip, dual processor cores and an ultra-low-power coprocessor (ESP-IDF documentation). Deep sleep powers down the CPUs, most RAM and the digital peripherals, leaving the RTC controller, the ULP coprocessor and the RTC memories running, and the application restarts on wake (ESP-IDF sleep modes documentation). It suits connected devices that sleep between transmissions, and it is the wrong choice when your budget is measured in microamps.

An answer at this level, with sections named, means the model did its part. Now you check it.

Where models get it wrong

Package and variant mixing. Vendors sell one die in dozens of packages, memory sizes and temperature grades, and a model treats "ESP32" or "STM32" as one thing. The pins differ in ways that matter. On the ESP32-WROOM-32 module, GPIO16 and GPIO17 connect to the flash supply domain. On an ESP32-WROVER module, GPIO12 is pulled up externally while the chip has an internal pulldown there, which raises deep-sleep current unless the pin is isolated (ESP-IDF documentation). Ask for exact part numbers and module variants, and check the pinout of the variant you are ordering.

Sleep numbers without context. A quoted deep-sleep current usually describes the chip alone. On a module, the SPI flash keeps drawing current while the system sleeps. Espressif documents flash standby current as typically below 30 µA, and on a battery project that can be larger than the RTC floor. Ask where each number comes from and what it leaves out.

Invented parts. Models produce plausible part numbers with plausible suffixes. Paste every candidate into a distributor search and confirm the exact ordering code exists before you design around it.

Stale availability. Stock, price and lifecycle status change weekly, and the model's knowledge stops at a cutoff date. Assume any availability claim is wrong until you have seen the distributor's own page.

The verification pass

For each candidate:

  1. Open the datasheet and confirm every number the model gave, in the sections it named. A wrong section number is a warning sign even when the value checks out.
  2. Check the pins you plan to use against the pinout table. On the ESP32, GPIO34 to GPIO39 are input only with no software pull-ups, and several pins are strapping pins that affect boot (ESP-IDF GPIO documentation).
  3. Check stock, price and lifecycle on a distributor's own page, never in the conversation.
  4. If this is a product, look for a second source or a pin-compatible alternate now, before the first shortage.

The check takes longer than the prompt did, but it is quicker than reading parametric tables across five vendor families yourself.

What stays yours

Real projects are often decided by toolchain preference, how mature an ecosystem is, how big its community is, and your relationship with a supplier. A model will make those calls for you if you let it. Ask it for the tradeoffs and make the decision yourself.

Sources

Written with AI from the linked sources.