1. Introducció
The Arduino Due R3 is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU. It is the first Arduino board based on a 32-bit ARM core microcontroller. With 54 digital input/output pins, 12 analog inputs, 2 DAC (Digital to Analog Converter) outputs, 2 TWI, a power jack, an SPI header, a JTAG header, a reset button, and an erase button, the Due is suitable for advanced projects in robotics, 3D printing, and other complex applications requiring high processing power.

2. Guia de configuració
Follow these steps to get your Arduino Due R3 board ready for programming:
- Instal·leu l'IDE d'Arduino: Baixeu i instal·leu la darrera versió de l'IDE d'Arduino des de la pàgina oficial d'Arduino. weblloc (arduino.cc/en/software).
- Connect the Board: Use the provided USB cable to connect your Arduino Due R3 board to your computer. The board has two USB ports:
- Native USB Port: Connected directly to the SAM3X8E. This port can act as a USB host and allows for advanced USB functionalities.
- Programming USB Port: Connected to the ATmega16U2, which acts as a USB-to-serial converter. This is the recommended port for uploading sketches.

Figure 2: Arduino Due R3 board with power jack and USB ports labeled. - Install Board Support Package: A l'IDE d'Arduino, aneu a
Tools > Board > Boards Manager.... Cerca "Arduino SAM Boards (32-bits ARM Cortex-M3)" and install it. - Select Board and Port: Vés a
Tools > Boardand select "Arduino Due (Programming Port)" or "Arduino Due (Native USB Port)" depending on which port you are using. Then, go toTools > Portand select the serial port corresponding to your connected Due board. - Font d'alimentació: The Arduino Due can be powered via the USB connection or with an external power supply. If using an external supply, connect a 7V to 12V DC adapter to the power jack.
3. Instruccions de funcionament
Once set up, you can begin programming and interacting with your Arduino Due R3 board:
- Writing Sketches: Open the Arduino IDE and write your program (sketch) in the editor. The Due uses C/C++ syntax.
- Uploading Sketches: Click the "Upload" button (right arrow icon) in the Arduino IDE. The IDE will compile your code and upload it to the Due board via the selected USB port.
- E/S digital: Ús
pinMode(),digitalWrite(), idigitalRead()functions to control the 54 digital pins. Remember that the Due operates at 3.3V. - Entrada analògica: The 12 analog input pins can read analog sensor values. Use
analogRead(). The default resolution is 10-bit, but can be configured up to 12-bit. - Analog Output (DAC): The two DAC pins (DAC0 and DAC1) can generate true analog output voltages. Use
analogWrite()with these pins. - Comunicació en sèrie: The Due has four hardware serial ports (UARTs). Use
Serial,Serial1,Serial2, iSerial3for communication. The Programming Port usesSerial, while the Native USB Port usesSerialUSB.

4. Manteniment
To ensure the longevity and proper functioning of your Arduino Due R3 board:
- Manejar amb cura: Avoid dropping the board or subjecting it to physical stress.
- Electricitat estàtica: Microcontroller boards are sensitive to electrostatic discharge (ESD). Handle the board by its edges and avoid touching the components directly, especially in dry environments.
- Mantenir sec: Protect the board from moisture and liquids, which can cause short circuits and damage.
- Neteja: Keep the board free from dust and debris. Use a soft, dry brush or compressed air for cleaning if necessary.
- Actualitzacions de programari: Regularly update your Arduino IDE and board support packages to benefit from the latest features and bug fixes.
5. Solució De Problemes
If you encounter issues with your Arduino Due R3 board, consider the following:
- Junta no reconeguda:
- Assegureu-vos que el cable USB estigui connectat correctament tant a la placa com a l'ordinador.
- Verify that the correct board type and serial port are selected in the Arduino IDE (
Tools > BoardiTools > Port). - Reinstall the Arduino SAM Boards support package via the Boards Manager.
- Try a different USB cable or USB port on your computer.
- Errors de càrrega:
- Check for syntax errors in your sketch.
- Assegureu-vos que hàgiu seleccionat la placa i el port correctes.
- Press the 'Reset' button on the board before attempting to upload.
- If using the Native USB port, ensure the board is in the correct bootloader mode.
- Comportament inesperat:
- Double-check your wiring, especially power and ground connections.
- Remember the Due operates at 3.3V. Connecting 5V components directly to I/O pins can damage the board. Use level shifters if interfacing with 5V logic.
- Verify external power supply voltage es troba dins del rang recomanat (7-12V).
- Botó d'esborrar: If your board becomes unresponsive or you need to clear the flash memory completely, press and hold the 'Erase' button for a few seconds, then release. This will erase the sketch and bootloader. You will then need to re-upload a sketch via the Programming Port.
6. Especificacions
| Característica | Especificació |
|---|---|
| Microcontrolador | AT91SAM3X8E (ARM Cortex-M3) |
| Vol. Operatiutage | 3.3 V |
| Entrada Voltage (recommended) | 7-12V |
| Entrada Voltage (limit) | 6-20V |
| Pins I / O digitals | 54 (of which 12 provide PWM output) |
| Pins d'entrada analògics | 12 |
| Analog Output Pins (DAC) | 2 |
| Total DC Output Current for all I/O lines | 130 mA |
| Corrent continu per pin de 3.3 V. | 800 mA |
| Corrent continu per pin de 5 V. | 800 mA |
| Memòria Flash | 512 KB (all available for user applications) |
| SRAM | 96 KB (two banks: 64KB and 32KB) |
| Velocitat del rellotge | 84 MHz |
| USB | Native USB, Programming USB (ATmega16U2) |
| Dimensions | 101.52 mm x 53.3 mm (aprox.) |
| Pes | 0.05 kg |
7. Consells d'usuari
- 3.3V Logic: The Arduino Due operates at 3.3V. Unlike most other Arduino boards, the I/O pins are NOT 5V tolerant. Connecting 5V signals directly to the Due's I/O pins will permanently damage the board. Always use logic level shifters when interfacing with 5V components.
- Consum d'energia: The Due can draw more current than other Arduino boards. Ensure your power supply (USB or external) can provide sufficient current, especially when driving many peripherals.
- Native vs. Programming Port: For most basic programming and serial communication, the 'Programming Port' is sufficient. The 'Native USB Port' offers advanced features like acting as a USB host or a HID device, but requires specific programming.
- AnalogWrite Resolution: El
analogWrite()function on the Due defaults to 8-bit resolution for PWM pins, but can be changed to up to 12-bit usinganalogWriteResolution(). For DAC pins, it's 8-bit by default, configurable up to 12-bit. - Reset vs. Erase: The 'Reset' button restarts the currently loaded sketch. The 'Erase' button wipes the entire flash memory, including the bootloader, requiring a re-upload of the bootloader or a new sketch via the Programming Port.
8. Garantia i Suport
This Arduino Due R3 board is designed for hobbyists, educators, and professionals. For technical support, documentation, and community forums, please refer to the official Arduino weblloc (www.arduino.cc). The official website provides extensive resources, tutorials, and a vibrant community to assist with your projects.
For specific warranty information, please consult the retailer or manufacturer from whom you purchased the product. General warranty terms typically cover manufacturing defects for a limited period.





