Questions tagged [arduino-due]

The Arduino Due is a micro controller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU.

The Arduino Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU.

Unlike the "original" Arduinos it is not based on the 8-bit AVRs but on an 32-bit ARM Cortex. It has 54 digital input/output pins (of which 12 can be used as PWM outputs), 12 analog inputs, 4 UARTs (hardware serial ports), a 84 MHz clock, an USB OTG capable connection, 2 DAC (digital to analog), 2 TWI, a power jack, an SPI header, a JTAG header, a reset button and an erase button.

It runs on 3.3 V instead of 5 V. It has significantly higher computational power both due to the higer clock frequency as well as due to the bigger word width. In addition it has more memory 96k SRAM and 512k Flash. However it lacks any EEPROM. Also its current consumption is higher as compared to the AVR cores.

An overview can be found on the official Arduino Due pages. The official pages also provide schematic and board layout information.

90 questions
8
votes
2 answers

Location of boards.txt for an Arduino DUE (SAM board)

I use the 1.6.7 Arduino IDE and I’ve installed the "Arduino SAM Boards (32-bits ARM Cortex-M3)" item for my DUE board, and it works fine. However, I would like to tune some build parameters in my boards.txt file. Problem: I do not have a…
Eric Leibenguth
  • 4,167
  • 3
  • 24
  • 51
4
votes
0 answers

Arduino use as USB Mass Storage

Is there any way to use arduino as USB mass storage device.I want to copy a file from the computer to arduino as pen drive?
user5137308
4
votes
1 answer

Byte truncation casting from void* on Arduino

I'm hoping that someone can help me diagnose this odd behavior that I'm experiencing. I'm programming for the Arduino Due and using the Adafruit FONA modem. The code in question submits an array of bytes to be sent over the modem. sendData is taking…
Chris
  • 1,090
  • 2
  • 11
  • 22
4
votes
1 answer

Atomic Block for reading vs ARM SysTicks

I am currently porting my DCF77 library (you may find the source code at GitHub) from Arduino (AVR based) to Arduino Due (ARM Cortex M3). I am an absolute beginner with the ARM platform. With the AVR based Arduino I can use avr-libc to get atomic…
Udo Klein
  • 6,784
  • 1
  • 36
  • 61
3
votes
1 answer

How do I read a differential signal using the Arduino Due ADC?

I'm having some difficulty configuring the Arduino Due ADC to read a differential signal. I have connected the positive terminal to pin A1 (CH6), and the negative terminal to pin A0 (CH7). The common mode voltage is 3.3V / 2. The initialization code…
MarkUK
  • 31
  • 1
  • 3
2
votes
1 answer

no matching function for call unresolved overloaded function type

First I'm a newbie to C++ so my question might be already answered somewhere but I couldn't find a straightforward answer to it. I'm creating a simple library for my hardware. I'm using a Scheduler library which is working fine on Arduino IDE (here…
Masoud Rahimi
  • 5,785
  • 15
  • 39
  • 67
2
votes
1 answer

#define EDB_REC (byte*)(void*)&

I'm programming on an Arduino Due using the Extended Database Library and encountered the following line in the example. EDB_Status result = db.updateRec(1, EDB_REC logEvent); I do not understand the EDB_REC logEvent part. What does EDB_REC do?…
2
votes
1 answer

Arduino Due to PC High Speed USB communication

I am working on a project that uses the Arduino Due (microcontroller ATSAM3X8E). My goal is to be able to track the values of some of the key variables I am using in my firmware in real time. The fact is that I need to plot the change in the values…
Subbu
  • 839
  • 2
  • 12
  • 34
2
votes
1 answer

Which MQTT library to use for connecting ESP8266 Wifi-Mdodule on Arduino DUE

I have succesfully established a Wifi-Connection with my Arduino DUE and an ESP8266-01 Module attached to it. I now want to establish a connection to an IoT Platform (e.g io.adafruit.com) with a MQTT Protocol. However the MQTT Library provided by…
Kev1n91
  • 3,553
  • 8
  • 46
  • 96
2
votes
1 answer

Performing hefty image processing/path planning tasks on Arduino Due

So, I want to make a robot that is able to navigate through an unknown maze. The only information provided to it would be a monochromatic bitmap image of the maze , and the robot has to identify the start and end points from it, the boxes in which…
2
votes
1 answer

Django based app on heroku showing error HTTP/1.1 505 HTTP Version Not Supported

I need to send some data from an arduino to an rest based web application. To test I have created an django based web application on heroku Now when I trying to send the data from arduino using GSM AT commands it's showing below error HTTP/1.1 505…
anand
  • 392
  • 3
  • 8
2
votes
2 answers

SysTick->LOAD vs SysTick->CALIB

I am currently porting my DCF77 library (you may find the source code at GitHub) from Arduino (AVR based) to Arduino Due (ARM Cortex M3). The library requires precise 1ms timing. An obvious candidate is the use of the systicks. Conveneniently the…
Udo Klein
  • 6,784
  • 1
  • 36
  • 61
1
vote
0 answers

How to run unit tests in CI pipeline locally on an Arduino Due

I want to run the Unit Tests of my Bitbucket CI Pipeline using a local runner on an Arduino Due. I already managed to set up the Bitbucket Pipeline that runs the unit tests on a local runner. I use my own Dockerfile: # Dockerfile FROM…
1
vote
1 answer

Debugging Arduino Due in Visual Studio Code using Atmel-Ice

I'm trying to figure out which external hardware debuggers are compatible with Visual Studio Code and JTAG. I was looking at the Atmel-Ice but it's not clear if this can integrate with Visual Studio Code. Any tips to get me started? Thanks -John
JohnKoz
  • 908
  • 11
  • 21
1
vote
0 answers

Understanding TC interrupts in a measurement function

I am trying to understand the use of the interrupt for LDRBS in this specific pseudocode. Our task is to measure the temperature using a temp sensor. Here is the pseudocode steps: Initialization 1) Don’t forget the PMC 2) Select Timer_Clock1 as…
Maso
  • 35
  • 5
1
2 3 4 5 6