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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
73 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
0 answers
27 views

Arduino Due timer based PWM pattern signal

Here's the PWM pattern I want to generate (I've drawn only 1 period's waveforms, this pattern repeats each cycle i.e this figure is between 0 and T (T = time period)) I have been able to generate the ...
  • 101
-1 votes
1 answer
47 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
23 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 ...
  • 11
0 votes
0 answers
38 views

Dynamic Phase Shift using Arduino Due TC?

Looking to add dynamic phase shifting to this h-bridge code. I essentially have two working complimentary pairs of signals running @ 100kHz with a 49% duty cycle. Here's what I have now. I want to be ...
1 vote
0 answers
71 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
69 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, ...
  • 11
0 votes
1 answer
96 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 votes
1 answer
88 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
206 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 ...
  • 829
1 vote
0 answers
67 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,...
2 votes
0 answers
71 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 ...
  • 285
0 votes
1 answer
62 views

Erratic behaviour using a DUE with the Microchip 24FC64 EEPROM chip?

I am attempting to read and write from/to an EEPROM chip, and have got access to this 64 kbit device. It appears I can write to the device and read from it, but there appears to be some strangeness ...
  • 285
1 vote
1 answer
138 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 ...
  • 285
0 votes
0 answers
90 views

How to modify an Arduino Due native USB port VID and PID?

I would like to know if it is possible to modify the VID and PID of the Native USB port of an Arduino Due.
  • 121
1 vote
1 answer
88 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
298 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 ...
1 vote
1 answer
93 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 ...
2 votes
1 answer
65 views

Comments change compiled behavior (sysTickHook weak reference override)

I have a very simple routine that lights up the built-in LED (pin 13) when a system tick timer fires off its interrupt. I override the weak reference to int sysTickHook(void) found in hooks.c. I found ...
1 vote
1 answer
43 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
328 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 ...
2 votes
1 answer
381 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 ...
0 votes
1 answer
96 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
2 answers
296 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 ...
2 votes
2 answers
503 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 ...
0 votes
1 answer
96 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
92 views

Can Arduino Due be programmed with both USB ports connected?

It seems, due SAM-BA (SAM Boot Assistant) inside ATSAM3X8E being listening to both Native USB and UART USB ports after a Reset for programming, allowing talking with SAM-BA, this time from your PC, ...
1 vote
1 answer
134 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, ...
2 votes
0 answers
216 views

Using ICSP pins as SPI in Arduino Due

I am using two RFID sensors operating on SPI with arduino Due. They will not be operating at the same time. Is it favorable to use the ICSP pins as SPI pins for one of them, or use them in a one ...
  • 121
1 vote
1 answer
132 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,184
1 vote
1 answer
60 views

Do I need an Microchip ATSAM3X8E Evaluation Kit?

I am intending to use the Arduino Due processors into my own designs. We have a very extensive (dozen of thousands of lines in .c code) sets of Arduino Due functional codes, and now I intend to move ...
0 votes
1 answer
188 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 } ...
  • 217
2 votes
0 answers
37 views

Generating Externally Triggered Complimentary PWM with Arduino Due

I need a 2KHz complimentary PWM waves with adjustable duty and phase that is triggered by an external 4KHz source. After reading the datasheet I think there might be 2 way to do this: Use a TC unit ...
  • 209
0 votes
1 answer
424 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
1 answer
206 views

How does one wire OV7670 camera with Arduino Due?

The parts that I want to interface together are: Arduino Due OV7670 Camera Module 3.5" TFT Touchscreen LCD (uses MCUFRIEND_kbv library) My goal is to get the video feed from the camera to the ...
1 vote
0 answers
92 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\...
  • 11
2 votes
1 answer
461 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 ...
3 votes
0 answers
144 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 ...
1 vote
0 answers
105 views

Arduino Due Serial Port Not Showing - Mac

Using a Mac (Big Sur 11.1) When trying to set up the IDE I was able to install the package that contained the Due board, but the serial port for my Arduino Due isn't appearing in Tools -> Port ->...
  • 111
0 votes
1 answer
157 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 = ...
  • 209
1 vote
0 answers
110 views

Connecting MPU6050 to Arduino Due but using Jeff Rowbergs Library

I am working on a personal project in which I need to collect accurate data from the MPU6050 using an Arduino Due. I can interface and read data from the MPU using the SLC and SDA pins and the "...
1 vote
4 answers
120 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 ...
  • 829
3 votes
1 answer
862 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 ...
  • 1,184
3 votes
2 answers
420 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 ...
  • 1,184
0 votes
1 answer
49 views

Are these GND connected resistors on the Arduino Due redundant?

Does anyone know why these 4 resistors are there (attachment)? It seems like they are useless since connected in a loop to GND. Full schematics here: https://store.arduino.cc/arduino-due
  • 85
2 votes
1 answer
151 views

Arduino Due: JTAG and SWD do not work after pressing erase button

I have an Arduino Due board. I can successfully upload code to it using Arduino upload via USB. However I am also exploring another approach, which is to upload code via Atmel studio using an Atmel ...
  • 85
1 vote
0 answers
80 views

Arduino LCD only display image for few second and turn screen to white

I have a problem with my Arduino and LCD touch screen. I create a few functional button in my Arduino. One of the button is START button. Right now, I want the image is display when I touch START ...
  • 11
2 votes
0 answers
206 views

Native USB port on custom ATSAM3x8e board not recognised in windows

I have been designing my own PCB using the atsam3x8e chip, the same as the Arduino due which I used to prototype with. So far I've managed to get my boards up and running by programming them via the ...
2 votes
0 answers
56 views

Weather station project Transmitter not communicating with Receiver

I am building a weather station that contains a transmitter and a receiver and the data at the receiver's serial monitor shows either ovf, nan, 0.00 or some crazy number for the outside data (...
  • 21
1 vote
0 answers
165 views

Writing a 32-bit register to 32 pins as fast as possible in Arduino Due

Problem: I'm using Due's QDEC function to decode a 32bit quadrature encoder. I need to pipe out the counter value as fast as possible to another instrument's DIO. The rear strip is selected as ...
  • 209

1
2 3 4 5
10