{"product_id":"pololu-a-star-328pb-micro-5v-16mhz","title":"Pololu A-Star 328PB Micro - 5V 16MHz","description":"\u003cp\u003e\u003cspan\u003eThe A-Star 328PB Micro is a tiny programmable module featuring the ATmega328PB AVR microcontroller, a backwards-compatible replacement for the popular ATmega328P that features more general-purpose I\/O and many additional peripherals.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003eThis module provides access to all 24 digital input\/output pins (of which 9 can be used as PWM outputs and 8 as analog inputs), all on a board measuring only 1.3″ × 0.7″. It ships preloaded with an Arduino-compatible serial bootloader that enables programming through the Arduino IDE via a USB-to-serial adapter, and the ISP pins are accessible for programming with an AVR programmer.\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003eThis version has a\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003e5 V regulator\u003c\/strong\u003e\u003cspan\u003e \u003c\/span\u003ethat can be powered from 5.5 V to 15 V, and it features a\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003e16 MHz resonator\u003c\/strong\u003e, which matches the voltage and clock speed of the Arduino Uno. It can be distinguished from other versions by its\u003cspan\u003e \u003c\/span\u003e\u003cstrong\u003eblue power LED\u003c\/strong\u003e:\u003c\/p\u003e\n\u0026lt;\u0026gt;\n\u003cp\u003eThe Pololu A-Star 328PB Micro is a general-purpose programmable module based on the ATmega328PB AVR microcontroller, which has 32 KB of flash program memory and 2 KB of RAM. The ATmega328PB is a backwards-compatible, improved replacement for the popular ATmega328P found on other programmable modules like our\u003cspan\u003e \u003c\/span\u003eBaby Orangutan B-328\u003cspan\u003e \u003c\/span\u003eand the\u003cspan\u003e \u003c\/span\u003eArduino Uno\u003cspan\u003e \u003c\/span\u003eand Pro Mini, so programs written for those other boards will generally work on the A-Star 328PB Micro with appropriate adjustments for any differences in clock speed.\u003c\/p\u003e\n\u003cp\u003eOn-board features of the A-Star (abbreviated A*) include a resonator, user and power LEDs, and a reset button. The board includes a low-dropout linear voltage regulator that allows it to be powered from external supplies up to 15 V, and reverse voltage protection on this main power input helps safeguard against accidental damage. The board can also be powered through its TTL serial header by a USB-to-serial adapter, and an integrated power switching circuit makes it safe to have both supplies connected at the same time.\u003c\/p\u003e\n\u003cp\u003eThe A-Star 328PB Micro breaks out 19 general-purpose I\/O lines along two rows of pins, including seven usable as PWM outputs and eight usable as analog inputs; another five GPIO pins (including two usable as PWM outputs) can be accessed along the bottom edge of the board. It provides both an in-system programming (ISP) header and a connector for TTL serial programming along the top edge. The board fits all this into a 1.3″ × 0.7″ area (the same size as the Arduino Pro Mini), and its 0.1″ pin spacing makes the A* easy to use with\u003cspan\u003e \u003c\/span\u003esolderless breadboards, perfboards, and 0.1″-pitch\u003cspan\u003e \u003c\/span\u003econnectors.\u003c\/p\u003e\n\u003cp\u003eThe A-Star 328PB Micro is available in four logic voltage and resonator frequency combinations:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n5V 16MHz (blue power LED)\u003c\/li\u003e\n\u003cli\u003e\n5V 20MHz (red power LED) \u003cem\u003eNote: See item-specific page for speed warning.\u003c\/em\u003e\n\u003c\/li\u003e\n\u003cli\u003e\n3.3V 8MHz (green power LED)\u003c\/li\u003e\n\u003cli\u003e\n3.3V 12MHz (yellow power LED)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eEach of the four versions uses a different power LED colour as a way to differentiate them.\u003c\/p\u003e\n\u003cp\u003eOur comprehensive\u003cspan\u003e \u003c\/span\u003euser’s guide\u003cspan\u003e \u003c\/span\u003eprovides the basics you need to get started with the A-Star 328PB Micro as well as detailed technical information for advanced users.\u003c\/p\u003e\n\u003cp class=\"note\"\u003eEither a USB-to-serial adapter or an AVR in-system programmer (ISP) is required to program the A-Star 328PB Micro from a computer. We recommend our\u003cspan\u003e \u003c\/span\u003eUSB AVR Programmer v2.1, which can be used as both.\u003c\/p\u003e\n\u003ch2\u003eFeatures\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eDimensions: 1.3″ × 0.7″\u003c\/li\u003e\n\u003cli\u003eProgrammable ATmega328PB AVR microcontroller\n\u003cul\u003e\n\u003cli\u003e32 KB flash (0.5 KB used by bootloader, leaving 31.5 KB available for user program by default)\u003c\/li\u003e\n\u003cli\u003e2 KB SRAM\u003c\/li\u003e\n\u003cli\u003e1 KB EEPROM\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/li\u003e\n\u003cli\u003eAll I\/O lines from the ATmega328PB broken out in a compact package\n\u003cul\u003e\n\u003cli\u003e19 general-purpose I\/O pins available along the sides of the board\u003c\/li\u003e\n\u003cli\u003e5 additional I\/O pins available on bottom edge\u003c\/li\u003e\n\u003cli\u003e9 pins can be configured as hardware PWM outputs (7 along sides of board)\u003c\/li\u003e\n\u003cli\u003e8 pins can be configured as analog inputs\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/li\u003e\n\u003cli\u003ePreloaded with Arduino-compatible TTL serial bootloader\u003c\/li\u003e\n\u003cli\u003e6-pin TTL serial programming header for use with a USB-to-serial adapter (we recommend our\u003cspan\u003e \u003c\/span\u003eUSB AVR Programmer v2.1, which can act as a USB-to-serial adapter)\u003c\/li\u003e\n\u003cli\u003e6-pin ISP header for use with an external AVR programmer (we recommend our\u003cspan\u003e \u003c\/span\u003eUSB AVR Programmer v2.1)\u003c\/li\u003e\n\u003cli\u003ePower LED and user-controllable LED\u003c\/li\u003e\n\u003cli\u003eReset button\u003c\/li\u003e\n\u003cli\u003eTwo power options:\n\u003cul\u003e\n\u003cli\u003e3.8 V to 15 V (3.3 V versions) or 5.5 V to 15 V (5 V versions) on BAT+\u003c\/li\u003e\n\u003cli\u003eUSB-to-serial adapter can supply power to VCCIN on the serial header\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/li\u003e\n\u003cli\u003eReverse-voltage protection on BAT+ supply\u003c\/li\u003e\n\u003cli\u003eComprehensive\u003cspan\u003e \u003c\/span\u003euser’s guide\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eArduino compatibility\u003c\/h2\u003e\n\u003cp\u003eThe A-Star 328PB ships with a preloaded Arduino-compatible TTL serial bootloader (which uses 0.5 KB of flash memory, leaving 31.5 KB available for the user program). We provide a software add-on that enables the board to be easily programmed from the Arduino environment.\u003c\/p\u003e\n\u003cp\u003eSince the A-Star’s ATmega328PB microcontroller is backwards-compatible with the ATmega328P commonly used on Arduino boards (like the\u003cspan\u003e \u003c\/span\u003eArduino Uno\u003cspan\u003e \u003c\/span\u003eand Pro Mini), existing programs and libraries written for a standard Arduino can be used on the A-Star 328PB without any changes (except to account for clock speed differences when necessary). However, our add-on includes support for the new features on the ATmega328PB, making them easier to use from the Arduino environment and allowing the A-Star 328PB to be an upgrade from ATmega328P-based boards.\u003c\/p\u003e\n\u003cp\u003eThe A-Star 328PB is the same size as the Arduino Pro Mini. It can similarly be used as a compact, minimal alternative to a standard full-size Arduino, but since its pinout differs, this board is\u003cspan\u003e \u003c\/span\u003e\u003cem\u003enot\u003c\/em\u003e\u003cspan\u003e \u003c\/span\u003ea drop-in replacement for the Pro Mini.\u003c\/p\u003e\n\u003ch3\u003eDifferences between the ATmega328P and ATmega328PB\u003c\/h3\u003e\n\u003cp\u003eCompared to the ATmega328P (and ATmega328), the ATmega328PB microcontroller offers a number of improvements, including:\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003eTwo additional GPIO pins: PE0 and PE1\u003c\/li\u003e\n\u003cli\u003eTwo pins that were previously analog inputs only (ADC6 and ADC7) can now also be used as digital inputs and outputs: PE2 and PE3\u003c\/li\u003e\n\u003cli\u003eTwo additional 16-bit Timer\/Counters: TC3 and TC4 (for a total of two 8-bit timers and three 16-bit timers)\u003c\/li\u003e\n\u003cli\u003eThree additional PWM output pins\u003c\/li\u003e\n\u003cli\u003eA second USART (TTL serial port)\u003c\/li\u003e\n\u003cli\u003eA second TWI (Two-Wire Serial Interface, I²C-compatible)\u003c\/li\u003e\n\u003cli\u003eA second SPI (Serial Peripheral Interface)\u003c\/li\u003e\n\u003cli\u003eA peripheral touch controller (PTC) for adding capacitive touch buttons, sliders, and wheels\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe ATmega328PB is code-compatible with the ATmega328P, meaning code compiled for an ATmega328P will run as intended on an ATmega328PB.\u003cspan\u003e \u003c\/span\u003eThis application note\u003cspan\u003e \u003c\/span\u003e(283k pdf) by Atmel (now part of Microchip) comprehensively describes the differences between the ATmega328PB and its predecessors.\u003c\/p\u003e\n\u003cp\u003eOur Arduino software add-on makes it easy to use the additional GPIO functionality, PWM outputs, and TTL serial port. The other new features of the ATmega328PB can still be used from the Arduino environment through direct register access or custom libraries.\u003c\/p\u003e\n\u003ch2\u003ePinout\u003c\/h2\u003e\n\u003cp\u003e\u003cimg alt=\"\" src=\"https:\/\/cdn.shopify.com\/s\/files\/1\/0176\/3274\/files\/0J8487.1200_1.jpg?v=1644863484\u0026amp;width=700\"\u003e\u003c\/p\u003e\n\u003cp\u003eThis diagram identifies the I\/O and power pins on the A-Star 328PB Micro; it is also available as a\u003cspan\u003e \u003c\/span\u003eprintable PDF\u003cspan\u003e \u003c\/span\u003e(579k pdf). For more information about the ATmega328PB microcontroller on this board, see\u003cspan\u003e \u003c\/span\u003eMicrochip’s ATmega328PB documentation.\u003c\/p\u003e\n\u003cp\u003ePrinted on the A* circuit board are indicators that you can use to quickly identify each pin’s capabilities: pins labelled with A0 through A7 can be used as an analog input, and a square wave symbol under the pin number means it can be used as a PWM output. All of the pins are labelled on the bottom silkscreen, and some of the pins are also labelled on the top silkscreen (as space allows).\u003c\/p\u003e\n\u003cp\u003eThe board can be powered either through a USB-to-serial adapter connected to its serial header or from a source up to 15 V on the BAT+ pin, which is reverse-voltage protected and reduced to 3.3 V or 5 V by a 100 mA low-dropout (LDO) regulator. The A-Star 328PB Micro includes a switching circuit that makes it safe to have both VCCIN and BAT+ power supplies connected at the same time. Reverse-protected power can be supplied to other devices by using the VIN pin as an output, and the logic voltage supply is available on the VCC output. Alternatively, the external supply can be connected directly between VIN and GND, bypassing the reverse-voltage protection.\u003c\/p\u003e\n\u003cp\u003eThe\u003cspan\u003e \u003c\/span\u003eA-Star 328PB user’s guide\u003cspan\u003e \u003c\/span\u003ediscusses the board’s features in more detail.\u003c\/p\u003e\n\u003ch2\u003eIncluded hardware\u003c\/h2\u003e\n\u003cp\u003eA set of three 1×12-pin breakaway\u003cspan\u003e \u003c\/span\u003e0.1″ male headers\u003cspan\u003e \u003c\/span\u003eis included with the A-Star 328PB Micro, which can be soldered in to use the board with perfboards,\u003cspan\u003e \u003c\/span\u003ebreadboards, or\u003cspan\u003e \u003c\/span\u003e0.1″ female connectors. Also included is a 1×6\u003cspan\u003e \u003c\/span\u003eright-angle 0.1″ male header\u003cspan\u003e \u003c\/span\u003ethat can be installed to allow TTL serial programming with a USB-to-serial adapter, along with a 2×3 header to allow external programming of the microcontroller through the AVR ISP interface. Our\u003cspan\u003e \u003c\/span\u003eUSB AVR Programmer v2.1\u003cspan\u003e \u003c\/span\u003ecan program the A* through either of these interfaces.\u003c\/p\u003e\n\u003ch2\u003eResources\u003c\/h2\u003e\n\u003cul\u003e\n\u003cli\u003eAll A-Star 328PB Micro Resources\u003c\/li\u003e\n\u003cli\u003ePololu A-Star 328PB Micro User's Guide\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003eSpecification\u003c\/h2\u003e\n\u003ctable width=\"419\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd width=\"226\"\u003e\u003cstrong\u003eProcessor:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd width=\"193\"\u003eATmega328PB @ 16 MHz\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eRAM size:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e2048 bytes\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eProgram memory size:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e32 Kbytes2\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eMotor channels:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e0\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eUser I\/O lines:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e243\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eMinimum operating voltage:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e5.5 V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eMaximum operating voltage:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e15 V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eLogic voltage:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e5 V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eReverse voltage protection?:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eY4\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eExternal programmer required?:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003eN\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cstrong\u003eVersion:\u003c\/strong\u003e\u003c\/td\u003e\n\u003ctd\u003e5 V logic, 16 MHz resonator\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003ch2\u003eThe A-Star family\u003c\/h2\u003e\n\u003cp\u003eThe A-Star 328PB Micro is a part of our larger\u003cspan\u003e \u003c\/span\u003eA-Star family, all of whose members are based on AVR microcontrollers and are preloaded with Arduino-compatible bootloaders.\u003c\/p\u003e","brand":"Pololu","offers":[{"title":"Default Title","offer_id":48624307372250,"sku":"hkb1789689197300","price":10.97,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0824\/8318\/3834\/files\/pololu-a-star-328pb-micro---5v-16mhz_1.jpg?v=1789689225","url":"https:\/\/memoryfoamwear.shop\/products\/pololu-a-star-328pb-micro-5v-16mhz","provider":"My Store","version":"1.0","type":"link"}