Complete Introduction to Due
| Wayne Chen
Introduction to Due
- Arduino Due is a microcontroller motherboard based primarily on Atmel SAM3X8E (32-bit ARM microcontroller). Compared to the Nano or Uno, it is a very large module, and it has more pins and memory space than them.
- It contains 54 digital and can work in both ways: input or output. Of these digital pins, 12 can be used to generate a PWM output.
- This module contains everything needed for an automation project, including 12 analog inputs and 4 UARTs serial modules.
- Two USB ports are available, one for the programming USB port and the other for the local USB port.
- Most Arduino boards run at 5v, but this module is an exception and runs at 3.3V. The pins mounted on it cannot withstand higher voltages than this. Doing so can drastically affect the board performance and can make your pins null and void.
- Add JTAG on the board, mainly for testing the physical connections between the pins on the board.
- Arduino Due can be programmed using a common Arduino software (IDE) that is compatible with all Arduino boards and can work both online and offline.
- The module consists of 2 DAC (digital to analog), 2 TWI, a power jack (you can connect the device via a USB cable or use this power jack to power the device), a SPI head reset button, an erase button and reset button.
- Depending on the voltage constraints, Arduino shields operating at 5V are not compatible with this module. However, as the shield of the Arduino R3 layout works effectively, it includes Arduino WiFi Shield and Ethernet Shield as they run at 3.3V.
The table below shows the main features of Arduino Due.
|Microcontroller||Atmel SAM3X8E ARM Cortex-M3|
|Digital I/O Pins||54|
|Flash Memory (Program Memory)||512 KB|
|SRAM||96 KB (two banks: 64 KB and 32 KB)|
|Input Voltage||7-12 V|
|Oscillator||up to 84 MHz|
|Software Used||Arduino Software (IDE)|
|DAC (Digital to Analog Converter)||2|
|UART (Serial Communication)||4|
|TWI (I2C Communication)||2|
|Arduino Shield Compatibility||Yes (that operate at 3.3V)|
|USB (2)||Programming USB (1)|
|DC current for 3.3V||800mA|
|Total DC output current on all I/O lines||130mA|
The figure below shows the pinout of the Arduino Due.
|Digital I/O Pins||54||There are 54 digital I/O pins, out of which 12 can be used as PWM outputs.|
|Analog Pins||A0 to A11||These pins are used for an analog pins on the board. They are 12 in numbers.|
|Digital to Analog Converter||DAC0, DAC1||Two digital to analog converter with 12bit resolution.|
|Erase Button||1||Erases the information by holding down this button|
|Reset Button||1||Resets the board|
|External Interrupts||Digital I/O Pins||All 54 pins can be used for generating an external interrupt|
|UART||4||Board comes with 4 pairs of TX and RX serial pins for laying out serial communication. These pins include (A9,A8), (D4,D5), (A13,A12), (A11,A10)|
|SPI||Serial Peripheral Communication||(MOSI, MISO, SCK, RESET) Pin used (A26, A25, A27, Reset)|
Two Wire Interface (2 module)
|There are two I2C communication incorporated on the board with pins at A18, A17, B13, B12|
|CAN (Controller Area Network) Interface is used for communication between controllers. Pins include|
|Power Source||+5V, +3.3V, GND and Vin||+5V- Connected to 5V
+3.3V (Operating Voltage)
Vin- Input Voltage – Connected to +7V to +12V (recommended)
GND – Connected to Ground
Programming and Communication
- Almost all Arduino boards can be programmed with the Arduino software called IDE. It's easy to use, and an ordinary person without prior art can easily learn the software. It's ready-made, just download the software and choose the board to work for your goal. As I mentioned earlier, there is no need for an external burner to burn the code into the controller. Arduino software works well on common operating systems such as Windows, Linux or MAC.
- The serial monitor is a very important add-on to the Arduino software and is primarily used to send text data to or from the motherboard.
- The TX and RX pins have an LED on each pin that flashes when data is transmitted.
- The two-wire interface is also included in the device with two-wire SDA and SCL. There are two TWI channels on the blackboard. Arduino software Wire Libary is used to access the TWI bus.
- The Arduino Due comes with a Serial Peripheral Interface (SPI) that plays a vital role in the communication between the microcontroller and other peripheral devices such as shift registers and sensors. There are two pins for SPI communication, namely MOSI (Master Output Slave Input) and MISO (Master Input Slave Output). The former is used to receive data, and the latter is used to send data by the microcontroller.
Difference between Due and Mega
These two modules vary greatly in terms of operating voltage, memory space, pin count, and processing speed. Arduino Due can perform functions faster than the Arduino Mega. More powerful built-in peripherals and more memory space make Arduino ahead of Mega.
However, there are some limitations. The Arduino Due is not compatible with 3.3V devices, and SAM3Xchip provides a complex and daunting interface that can scare people who use this module for the first time. It is recommended to use smaller modules at the beginning, such as Arduino Uno, and when you have mastered the module, you can move to a complex interface.
The Arduino Due is a bit large and covers a lot of space and is widely used in applications where fast processing speed is the end result. The following are the main applications of the board.
- Industrial Automation
- Home and Security Systems
- Virtual Reality Applications
- Android Applications
- GSM Based Projects
- Embedded System