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
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 ...
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
1
answer
379
views
Best Solution to Parallel UART reads with Arduino Due
I have 4 Arduino boards pushing data over UART to 4 serial ports on the Arduino Due at 115200 baud rate.
Data format - <Short URL>,<Number of the Node>
Eg: px.ht/d/mCxG,1"
Arduino Due ...
2
votes
3
answers
34k
views
How to connect Arduino 5v pin with multiple things?
I am trying to connect a Bluetooth module and a gas sensor to Arduino.
Bluetooth module: HM-10
Gas sensor: MQ-2
I read the guides for the HM-10 and MQ-2 and they both need to use the Arduino's 5v pin. ...
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
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
2
answers
1k
views
Keypad pin as an interrupt (Wiring or programming)
I have this project of a "phone". It consists of:
Arduino DUE,
4x4 Keypad,
SD Data shield,
a phone receiver detect (on/off)
an Amp and a Speaker.
In the beginning, after the phone receiver ...
-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
votes
1
answer
374
views
What is the minimum sampling rate in ADC in Arduino due?
I am looking for a very low frequency application like below 300Hz. What is the minimum sampling rate in Arduino due? I am very new to this. I see in the datasheet that max sampling rate is 20MHz.
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
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: ...
11
votes
4
answers
21k
views
SAM3X8E (Arduino Due) Pin IO registers
How do the IO registers of Arduino Due work?
On Arduino Uno just set DDRx, then PINx to read, PORTx to write, I'd like to do the same thing with an Arduino Due, but it has many more registers, such as ...
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 ...
3
votes
1
answer
2k
views
How to enable exception handling on the Arduino Due?
While the question here gives some hints, the solution provided there does not directly work on the Due, since it uses a different compiler and toolkit. Also, the Due has more than enough flash for ...
3
votes
1
answer
840
views
ov2640 with 18 pin and no arducam shield
I bought this ov2640 camera module with 18 pins and I don't have shield to insert it to. I am looking for a library or working code on this my camera sensor but all I kept getting was arducam examples ...
1
vote
0
answers
174
views
how to set the arduino due adc automatic trigger
How do I trigger automatic conversion on the ADC on the DUE? If this was the uno, I could just do
sbi(ADCSRA,ADATE); sbi(ADCSRA,ADSC);
but for the due, I seem to have to use
adc_configure_trigger(ADC,...
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 - ...
2
votes
1
answer
1k
views
Extracting .hex from Arduino Due
I have an Arduino Due that was programmed by the Arduino IDE, to cut things short I lost access to the original sketch (.ino) file, there is no way of recovering it no matter what.
I know that in the ...
0
votes
1
answer
229
views
Setup Due counter
How do I setup a Due to count rising edges on a pin automatically without having to waste time on an ISR?
I have some wheel encoders, the simplist implementation is direction less where you only count ...
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 ...
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, ...
0
votes
1
answer
190
views
If and while statements not working
The second and third while and if are not working but the first while and if do work. Am I doing something wrong?
#include <DFMiniMp3.h>
int sw1 = 3;
int sw2 = 4;
int sw3 = 5;
class Mp3Notify
...
1
vote
1
answer
322
views
Arduino and Processing Call and response not working
I have been trying to develop a connection from the arduino IDE to Processing so I can send data measured on the arduino Pins to processing to display.
I first packaged the 10-bit integers I was ...