Questions tagged [arduino-due]
Arduino DUE is an microcontroller card based on the Atmel SAM3X8E ARM Cortex-M3 CPU. This is a 32bit ARM core MCU.
462 questions
0
votes
1
answer
98
views
Arduino DUE - I Have enabled A14, will this break anything?
I developed a quick custom PCB using the ATSAM3X8EA-AU as I wanted to use Arduino to program it as an Arduino DUE, I kept most of the schematic the same, however I used pin A14 pin 52 as an analog ...
1
vote
0
answers
240
views
LCD Wiki screen (ILI9341) works on Mega. How to get it working on the Due?
I have this exact LCD shield: http://www.lcdwiki.com/2.8inch_Arduino_Display
SKU: MAR2808
Driver IC: ILI9341
It works on an Arduino Mega 2560 using the old libraries the manufacturer (I assume) ...
-1
votes
1
answer
559
views
SPI with DMA in a Arduino Due
I have a project where I need to store data (~16 Mo) on a memory and be able to fetch the data fast (<36000 bits/s) with DMA because I have other signals to take care of.
Currently I use an SD card ...
3
votes
2
answers
1k
views
Send data through SPI with DMA
I need to send data as fast as possible from an Arduino DUE to an extern DAC. To do so I use DMA & SPI and I want DMA to fetch data from the memory and send it to the SPI which will just relay it ...
-1
votes
1
answer
143
views
Generate a sine wave with a predefined frequency and amplitude via DAC0 or DAC1 with Arduino Due
Good Morning to everyone,
I am a PhD Student in experimental fluid mechanics at the University of Naples "Federico II", Italy. I am working on Arduino Due card and i am novel in applications ...
1
vote
0
answers
353
views
How to properly set CS for SPI applications on Arduino Due
I needed SPI with CPOL=1 and CPHA=1. I read, that I could achieve this via SPI_MODE3. Further, I read to put the CS low and CS high code after SPI.beginTransaction(...) and before SPI.endTransaction() ...
0
votes
1
answer
758
views
Adjusting Threshold for Digital Pins
I am working on a project using Force Sensors to build a keyboard for MD patients.
I have connected the sensors (each with 4 input pins) to digital pins to Arduino Due.
I want to adjust the threshold ...
1
vote
2
answers
516
views
Is there a good reference for Arduino Due memory architecture and usage?
It's been harder than I expected to find a reference source or usage guide.
There's a number of sources I've looked at along the road to this question:
The Due is listed here and here as having 512KB ...
2
votes
0
answers
142
views
On initialising PWM with registers on my Due, why does unrelated duty cycle input influence my output?
I am finding that setting duty cycle on PWM channels 4 or 5 has an influence on whether channel 6 generates output. The following is a design of experiments view of my tests and results, where the ...
1
vote
1
answer
340
views
Is there a definitive reference for the Arduino DUE?
I am looking for a reference document or documentation system that concretely relates at minimum:
Screen printed pin name/number
SAM3X8E pin number
Register number
Channel number
Port name
In my ...
1
vote
1
answer
201
views
Arduino native USB port and Simulink [closed]
I am trying to communicate through the native USB port of the Arduino Due with a PC.
The native port itself works, I have tested this. The problem is, that every time I upload my Simulink model via ...
1
vote
1
answer
148
views
Why does Arduino Due appear to halt after single call to ADC_Handler?
In the simple example below I just software trigger an ADC acquisition and then set the builtin LED's digital out in the interrupt handler. I don't know why the program appears to halt however.
void ...
1
vote
1
answer
58
views
Where are source files for Due?
Where are the source files containing the definitions and the HAL functions located for the Due?
I am trying to do CMSIS programming.
2
votes
1
answer
953
views
Second I2C on Due RTClib, can't start
I am using SDA1, SCL1 for my DS3232 with RTClib on Due. It works on a Mega2560 on SDA, SCL.
I ran I2c_test with success after I inserted
#define Wire Wire1
However with ds3231.ino this define doesnot ...
1
vote
2
answers
555
views
Arduino Due generate 400KHz sine waze
I new in Arduino environment.
Found some code generate sine wave but frequency between 14kHz to 84kHz. URL is https://www.instructables.com/SineWave-Generator-for-Arduino-DUE/
I need to generate sine ...
0
votes
1
answer
213
views
Arduino DUE wheel encoder
I have an Arduino due, I am trying to keep track of ticks on two wheel encoders, polling in an infinite loop results in terrible performance. Have any suggestions?
It looks like the due might have an ...
1
vote
1
answer
248
views
Dealing with USB Unplugging?
The following code, debugs SerialUSB Native Port, plugged to a PC, and connected through a Terminal Monitor (such as Termite, with any bps, 8N1, RTS/CTS).
At start, the ports seeks for communication, ...
1
vote
1
answer
300
views
How do I get the size of my program at runtime?
(This question is specific for the Arduino Due, but maybe there's a general answer to the question)
I'm using DueFlashStorage to store application data in the flash memory of my Arduino Due. That ...
0
votes
1
answer
324
views
How can i call lcd.begin() from several different code files in a proper way?
I have a project split into several files:
//Loop.cpp
#include "LiquidCrystal.h"
void setup(){
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
lcd.begin(16, 2);
}
void loop() {
//Code
}
...
0
votes
1
answer
807
views
How to improve the sampling rate of Arduino due ADC?
I am now working on a project, which needs a cheap analog acquisition device with a sampling rate of no less than 5MHz. Before, I only used Arduino, and rarely operated the registers on Arduino. I ...
1
vote
0
answers
233
views
DHT-sensor-library-master
I only uploaded the library to check whether it has installed correctly. It's installed and i am having this error. Using library DHT-sensor-library-master at version 1.4.1 in folder: C:\Users\Mcniven\...
3
votes
0
answers
225
views
Black screen when using higher SPI-speed for RA8857 LCD-controller
I'm using an Arduino Due that talks via SPI to an LCD (800x480) with the RA8875 controller chip.
The most recent datasheet I could find is: RA8875 datasheet.
Everything works as expected when using ...
0
votes
1
answer
282
views
Why NVIC_EnableIRQ handler function only run once?
I have a code that spit out random number when the ISR register is ready:
#define TRNG_KEY 0x524E47
uint8_t lut[10] = {0xF6, 0x12, 0xAE, 0xEC, 0xD8, 0x7C, 0x7E, 0xE0, 0xFE, 0xFC};
uint32_t msk = ...
2
votes
5
answers
312
views
How to remove Arduino Due and Mega shields without bending pins?
What's your suggested technique for reliably removing Arduino Due and Mega shields while minimizing the chance of bending the strip header pins?
For example, there's a similar discussion here where ...
3
votes
2
answers
680
views
Memory allocation on Arduino Due never returns NULL
I'm working on a project that uses quite a bit of RAM to store and analyze data that is sent from the PC. The program heavily relies on malloc/free, which normally works just fine. However, if the ...