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
3
votes
1
answer
2k
views
Creating a sine wave with a DAC and feeding it back
I want to produce a digital sine wave, send it to DAC0, and then receive it back as input on A0 and plot the graph. I am using an Arduino Due. I wrote the following code:
#define maxSamplesNum 120
#...
0
votes
1
answer
12k
views
SPI Slave Programming for Arduino
In my application Arduino Due is configured as master and instead of the actual slave device I am making use of Arduino Uno as Slave.I will share the Master code which I have worked out. Can Anyone ...
2
votes
2
answers
95
views
DWT to measure time between rising edge of two pulse waves
I have given two square waves as input to an Arduino Due's digital pins, and I'm trying to find the propagation delay between them. For this purpose, instead of using micros() I want nanoseconds ...
1
vote
1
answer
1k
views
UDPSendReceiveString example using Arduino Due with ENC28J60 Ethernet Module
I was trying to learn how to use UDP protocol to use in my automation project to send commands to an Arduino Due on ethernet with an ENC28J60 breakout board which I have connected to the Due from SPI ...
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 ...
0
votes
1
answer
5k
views
fatal error: avr\wdt.h: No such file or directory in Arduino Due
I am using an Arduino Due for vehicle tracking with a GPS/GPRS device. Before using Arduino Due I used an Arduino Uno. When I tryi to load my code in the Arduino Due, it shows me "fatal error: ...
3
votes
1
answer
554
views
Has anyone modified a 16x2 LCD shield to work with Arduino DUE?
Since the DUE works on 3.3 volts has anyone successfully modified a 5V 16x2 LCD shield to work with Arduino DUE? I'm thinking 3.3V will be seen as a logic "1"
by the 5V LCD shield and there ...
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 ...
2
votes
1
answer
695
views
Maximizing SPI-speed between Arduino DUE and RA8875 display driver
For a project I would like to be able to control my RA8875 display driver as quick as possible using an Arduino due.
I started from the Adafruit library and replaces all "digitalWrites" ...
4
votes
4
answers
12k
views
How to package a 16 bit integer to send it with serial.write?
I am trying to display the values i get from reading a potentiometer (0-1023) in the program called 'processing'.
when I just use Serial.write(integer) and display the value on a line graph in '...
0
votes
1
answer
7k
views
Arduino Uno: avrdude: stk500_recv(): programmer is not responding
I have an original Arduino Uno board purchased directly from the official arduino website. I have used it successfully with IDE v1.8.5 on my Windows 10 laptop for various projects in the last 6 months....
1
vote
1
answer
227
views
Register writing by compound assignment and pointer in Arduino due
I'm confused with register wrting method by compound assignment and/or pointer because I don't know where are some of the values come from.
Example 1
REG_PMC_PCER1 |= PMC_PCER1_PID36; // Enable PWM - ...
1
vote
0
answers
41
views
Code uploads to Due and fails to execute but runs on Redboard
I have run into this issue where my code will upload to my Due but fails to execute. I have verified the code works on a SparkFun Redboard. The only code difference is that the SPI pin assignments ...
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() ...
1
vote
0
answers
151
views
Read State from Variable
I am attempting to use radio modules to receive a value from a sensor, either 1 or 0, and complete an action. The only problem is that I would like the action to only complete once per state change, ...
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
517
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 ...
2
votes
1
answer
482
views
Arduino Due unable to access library
I am unable to run code on Arduino Due that I earlier ran on an Arduino Uno. The error indicates it is unable to recognize the library. Could this library access problem be due to difference of the ...
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
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 ...
3
votes
2
answers
914
views
5V alternative to Due?
I've designed a circuit controlled by an Arduino Mega 2560 involving a number of external components all running on and sending out 5V signals. I'm now realizing that the 8Kb of SRAM on the Mega 2560 ...
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
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 ...