The Arduino Due is a powerful microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU. As the first Arduino board to feature a 32-bit ARM core microcontroller, it represents a significant step up in capabilities from the traditional 8-bit microcontroller boards such as the Arduino Uno. The Due is ideal for projects that require more computational power, memory, and a variety of I/O interfaces, including applications in robotics, 3D printing, and complex sensor networks.
Pin Number | Function | Description |
---|---|---|
1-54 | Digital I/O | Digital input/output pins, PWM capable on 12 pins |
A0-A11 | Analog Input | Analog input pins |
DAC0, DAC1 | Analog Output | Digital-to-analog converter outputs |
CANRX | CAN Bus Receive | CAN bus receive pin |
CANTX | CAN Bus Transmit | CAN bus transmit pin |
SDA1, SCL1 | I2C 1 | I2C bus for communication with I2C devices |
SDA, SCL | I2C 0 | Secondary I2C bus |
TX0-RX0 | UART 0 | Serial communication pins |
TX1-RX1 | UART 1 | Additional serial communication pins |
TX2-RX2 | UART 2 | Additional serial communication pins |
TX3-RX3 | UART 3 | Additional serial communication pins |
MISO, MOSI, SCK | SPI | SPI communication pins |
SS0-SS3 | SPI Slave Select | Slave select pins for SPI communication |
To use the Arduino Due in a circuit:
Here is a simple example of blinking an LED connected to pin 13 on the Arduino Due:
// The setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin 13 as an output.
pinMode(13, OUTPUT);
}
// The loop function runs over and over again forever
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Q: Can I use 5V sensors with the Due? A: You must use level shifters or voltage dividers to connect 5V sensors to the Due's 3.3V pins.
Q: Is the Due compatible with all Arduino shields? A: Not all shields are compatible due to the Due's 3.3V operating voltage. Check the shield specifications for compatibility.
Q: How can I increase the Due's memory? A: The Due's memory is not expandable. Optimize your code or consider using external storage like an SD card for additional space.