Arduino Zero 中文介绍


With the new Arduino Zero Pro board, the more creative individual will have the potential to create one’s most imaginative and new ideas for IoT devices, wearable technologies, high tech automation, wild robotics and other not yet thinkable adventures in the world of makers.

The Arduino Zero Pro represents a simple, yet powerful, 32-bit extension of the Arduino UNO platform. The board is powered by Atmel’s SAMD21 MCU, featuring a 32-bit ARM Cortex® M0 core.

With the addition of the Zero board, the Arduino family becomes larger with a new member providing increased performance.

The power of its Atmel’s core gives this board an upgraded flexibility and boosts the scope of projects one can think of and make; moreover, it makes the Zero Pro the ideal educational tool for learning about 32-bit application development.

Atmel’s Embedded Debugger (EDBG), integrated in the board, provides a full debug interface with no need for additional hardware, making debugging much easier. EDBG additionally supports a virtual COM port for device programming and traditional Arduino boot loader functionality uses.


微控制器 ATSAMD21G18

工作电压 3.3V

数字I/O引脚 14(其中12个引脚带PWM功能,另外两个引脚为UART

模拟输入引脚 6(精度12位)

模拟输出引脚 1(精度10位)

每个I/O直流输出能力 7 mA

Flash 256 KB


EEPROM 最大16KB(emulation)

时钟速度 48MHz


The Arduino Zero Pro can be powered via the micro USB connection or with an external power supply. The power source is selected automatically.External (non-USB) power can come either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected to the board by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER connector.

[tr][td]Power input[/td][td]Voltage requirements[/td][td]Current requirements[/td][td]Connector marking[/td][/tr]

[tr][td]External power[/td][td]5V ± 2 % (± 100mV) for USB host operation. 4.3V to 5.5V if USB host operation is not required[/td][td]Recommended minimum is 1A to be able to provide enough current for connected USB devices and the board itself. Recommended maximum is 2A due to the input protection maximum current specification.[/td][td]PWR[/td][/tr]

[tr][td]Embedded debugger USB [/td][td]4.4V to 5.25V (according to USB spec) [/td][td]500mA (according to USB spec)[/td][td]DEBUG USB[/td][/tr]

[tr][td]Target USB[/td][td]4.4V to 5.25V (according to USB spec)[/td][td]500mA (according to USB spec)[/td][td]TARGET USB

The kit will automatically detect which power sources are available and choose which one to use according to the following priority: External powerEmbedded debugger USBTarget USB

External power is required when the 500mA through the USB connector is not enough to power a connected USB device in a USB host application.

The power pins are as follows:VIN. The input voltage to the Arduino board when it's using an external power source (as opposed to 5 volts from the USB connection or other regulated power source). You can supply voltage through this pin, or, if supplying voltage via the power jack, access it through this pin.5V. The regulated power supply used to power the microcontroller and other components on the board. This can come either from VIN via an on-board regulator, or be supplied by USB or another regulated 5V supply.3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 mA.GND. Ground pins.IOREF. The voltage at which the i/o pins of the board are operating (i.e. VCC for the board). This is 3.3V on the Zero Pro.


ATSAMD21G18有256 KB存储空间(其中4 KB用于bootloader)。 bootloader在出厂时已经被烧入指定的ROM空间中。bootloader通过 NVM熔丝写保护。

芯片带有32 KB SRAM,和至多16KB的虚拟EEPROM中。


Zero Pro有20个数字IO口可以用作输入输出,using pinMode(), digitalWrite(), and digitalRead() functions. They operate at 3.3 volts. 7mA as maximum DC current for I/O pins and an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have specialized functions:Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data using the ATSAMD21G18 hardware serial capability. Note that on the Zero Pro, the Serial class refers to USB (CDC) communication; for TTL serial on pins 0 and 1, use the Serial1 class.TWI: 2 (SDA) and 3 (SCL). Support TWI communication using the Wire library.PWM: Pins 2 to 13 Provide 8-bit PWM output with the analogWrite() function. The resolution of the PWM can be changed with the analogWriteResolution() function.

Note1 The pins 4 and 10 can not be used simultaneously as PWM.

Note2 The pins 5 and 12 can not be used simultaneously as PWM.SPI: on the ICSP header. These pins support SPI communication using the SPI library. Note that the SPI pins are not connected to any of the digital I/O pins as they are on the Uno, They are only available on the ICSP connector. This means that if you have a shield that uses SPI, but does NOT have a 6-pin ICSP connector that connects to the Zero Pro's 6-pin ICSP header, the shield will not work.LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.Analog Inputs: A0-A5. The Zero Pro has 6 analog inputs, labeled A0 through A5. Pins A0-A5 appear in the same locations as on the Uno; Each analog input provides 12 bits of resolution (i.e. 4096 different values). By default the analog inputs measure from ground to 3.3 volts, though is it possible to change the upper end of their range using the AREF pin and the analogReference() function.DAC: pin A0 provides true analog outputs with 10-bits resolution (1023 levels) with the analogWrite() function. This pin can be used to create an audio output using the Audio library.

There are a couple of other pins on the board:AREF. Reference voltage for the analog inputs. Used with analogReference().

Reset. Bring this line LOW to reset the microcontroller. This is typically used to add a reset button when shields are used that block the one already present on the board.


The Arduino Zero Pro has a number of facilities for communicating with a computer, with another Arduino or other microcontrollers, and with different devices like phones, tablets, cameras and so on. The SAMD21provides one hardware UART and three hardware USARTs for TTL (3.3V) serial communication.The Programming port is connected to EDBG, which provides a virtual COM port to software on a connected computer (To recognize the device, Windows machines will need a .inf file, but OSX and Linux machines will recognize the board as a COM port automatically.). The EDBG is also connected to the SAMD21 hardware UART. The Serial on pins RX0 and TX0 provides Serial-to-USB communication for programming the board through the ATSAMD21G18 microcontroller. The Arduino software includes a serial monitor allowing simple textual data to be sent to and from the board. The RX and TX LEDs on the board will flash when data is being transmitted via the ATSAMD21G18 chip and USB connection to the computer (but not for serial communication on pins 0 and 1).The Native USB port is connected to the SAMD21. It allows for serial (CDC) communication over USB. This provides a serial connection to the Serial Monitor or other applications on your computer. It also enables the Due to emulate a USB mouse or keyboard to an attached computer. The Native USB port can also act as a USB host for connected peripherals such as mice, keyboards, and smartphones. The SAMD21 also supports TWI and SPI communication. The Arduino software includes a Wire library to simplify use of the TWI bus. For SPI communication, use the SPI library.


The Arduino Zero Pro can be programmed with the Arduino software (download).Uploading sketches to the SAMD21 is different from how it works with the AVR microcontrollers found in other Arduino boards: the flash memory needs to be erased before being re-programmed. Upload to the chip is managed by ROM on the SAMD21, which is run only when the chip's flash memory is empty.Both the USB ports can be used to program the board, though use of the Programming port is recommended, due to the way the erasing of the chip is handled:Programming port: To use this port, select "Arduino Zero Pro (Programming Port)" as your board in the Arduino IDE. Connect the Zero Pro's programming port (the one closest to the DC power jack) to your computer. The programming port uses the EDBG as a USB-to-serial chip connected to the first UART of the SAMD21 (RX0 and TX0). The EDBG has two pins connected to the Reset and Erase pins of the SAMD21. Opening and closing the Programming port connected at 1200bps triggers a “hard erase” procedure of the SAMD21 chip, activating the Erase and Reset pins on the SAMD21 before communicating with the UART. This is the recommended port for programming the Zero Pro. It is more reliable than the "soft erase" that occurs on the Native port, and it should work even if the main MCU has crashed.Native port: To use this port, select "Arduino Zero Pro (Native USB Port)" as your board in the Arduino IDE. The Native USB port is connected directly to the SAMD21. Connect the Zero Pro's Native USB port (the one closest to the reset button) to your computer. Opening and closing the Native port at 1200bps triggers a 'soft erase' procedure: the flash memory is erased and the board is restarted with the bootloader. If the MCU crashed for some reason it is likely that the soft erase procedure won't work as this procedure happens entirely in software on the SAMD21. Opening and closing the native port at a different baudrate will not reset the SAMD21.


Rather than requiring a physical press of the reset button before an upload, the Arduino Uno is designed in a way that allows it to be reset by software running on a connected computer. One of the hardware flow control lines (DTR) of the ATmega8U2/16U2 is connected to the reset line of the ATmega328 via a 100 nanofarad capacitor. When this line is asserted (taken low), the reset line drops long enough to reset the chip. The Arduino software uses this capability to allow you to upload code by simply pressing the upload button in the Arduino environment. This means that the bootloader can have a shorter timeout, as the lowering of DTR can be well-coordinated with the start of the upload.

This setup has other implications. When the Uno is connected to either a computer running Mac OS X or Linux, it resets each time a connection is made to it from software (via USB). For the following half-second or so, the bootloader is running on the Uno. While it is programmed to ignore malformed data (i.e. anything besides an upload of new code), it will intercept the first few bytes of data sent to the board after a connection is opened. If a sketch running on the board receives one-time configuration or other data when it first starts, make sure that the software with which it communicates waits a second after opening the connection and before sending this data.

The Uno contains a trace that can be cut to disable the auto-reset. The pads on either side of the trace can be soldered together to re-enable it. It's labeled "RESET-EN". You may also be able to disable the auto-reset by connecting a 110 ohm resistor from 5V to the reset line.


Arduino Zero Pro 有一个自恢复保险丝,防止短路或过流,从而保护您的计算机的USB端口。虽然大多数计算机提供都带有内部保护,但保险丝也可以提供额外的保护。如果电流超过500 mA,保险丝会自动断开连接防止短路或过载。


Arduino Zero Pro PCB的最大长度和宽度分别为2.7和2.1英寸,超越前维延长的USB接口和电源插孔。有四个固定孔可以将板子固定在其他表面或者外壳上。注意,7、8数字引脚之间的距离是160mil(0.16“),而不是和其他脚一样的100 mil 间距。

via - arduino中文社区

标签: Arduino教程