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.
438
questions
0
votes
1answer
1k views
Communicate with custom usb slave device with DUE?
I have a arduino due which i know has usb host mode. The usb library that comes with the due supports mouse and keyboard.
I have another usb device (diacnostic tool) id like to talk to, it use a:
USB ...
1
vote
1answer
335 views
SimpleAudioPlayer + sleep function
I have tested the SimpleAudioPlayer example.
https://www.arduino.cc/en/Tutorial/SimpleAudioPlayer
This works fine, but when I add a sleep(1000) at the end of the loop() function, the music sounds ...
2
votes
1answer
71 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
0answers
54 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 ...
2
votes
1answer
1k views
Creating Sine wave with DAC and feeding it back
I want to produce Digital Sine wave send it to DAC0 and then receive it back as input on A0 and plot the graph. I am using Arduino Due. I wrote the following code:
#define maxSamplesNum 120
#define ...
0
votes
1answer
50 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 = ...
1
vote
0answers
23 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 ->...
0
votes
1answer
362 views
Arduino Due as Triggered DMA SPI Slave is possible?
Is it possible for arduino Due to act as DMA-SPI-slave device which can exchange SPI data (uint16_t TX[10] and RX[10]) in triggered slave mode?
I have a setup in which time period is very short (~...
0
votes
0answers
32 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
0answers
26 views
Due examples for using DFPlayer mini
After researching many sketches on interfacing with the DFPlayer Mini, all of them include softwareserial.h which the Due does not use. So are there any example sketches for the Due interfacing with a ...
2
votes
1answer
124 views
Arduino due erase button and power switching
Last days I have been investigatin schematics of arduino due board. The purpose of proper understanding of schematics in crucial for me, beacuse I indend to build myself my own board with some minor ...
1
vote
2answers
31 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 ...
1
vote
1answer
129 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 ...
7
votes
2answers
33k views
Arduino Due vs Mega 2560
What can an Arduino Due do that a Mega 2560 can't? What can a Mega 2560 do that a Due can't? I've heard the Due is 3.3V so it can't work with most shields.
3
votes
1answer
250 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
vote
0answers
46 views
I'm having trouble using Serial.readStringUntil() on the DUE [closed]
I'm working with a DUE.
The call Serial.readStringUntil() doesn't work.
This is the error message I get when I compile:
no matching function for call to 'UARTClass::readStringUntil()'
Is it possibly a ...
0
votes
0answers
61 views
bit banging SPI ADC on DUE
Is it possible to bit-bang multiple SPI ADC, 12 bit sampled at 100khz? This would translate to a GPIO speed of about 1.2 Mhz.
2
votes
1answer
13k views
Manual Arduino Due Installation
Not sure if this is the right place to post this.
I have an Arduino Due I'd like to start using. I've been using Unos, Megas etc no problem. The newer IDEs have removed the Due support. I've been ...
2
votes
2answers
99 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 ...
0
votes
1answer
104 views
Bare Metal Programming of Due
I don't know much about Arduino but I am interested in buying a Due 32bit board. I was wondering if you can program it bare-metal and if this requires a separate debugger or not?
Thanks
1
vote
1answer
2k views
fatal error: avr\wdt.h: No such file or directory in arduino due
I am using Arduino DUE for vehicle tracking gps/gprs device. Before using Arduino DUE I used Arduino UNO. When I am trying to load my code in Arduino DUE It shows me "fatal error: avr\wdt.h: No such ...
1
vote
1answer
41 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 - ...
0
votes
1answer
36 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
4
votes
1answer
461 views
Flash Arduino Due via UART
I would like to write code in Arduino language, compile it in the Arduino IDE, grab the resulting binary code, and flash it to the Due via the TX/RX UART pins, bypassing both the USB Programming Port ...
2
votes
1answer
73 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 ...
1
vote
0answers
44 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 ...
4
votes
3answers
6k views
How to read/write variables persistenly on Arduino Due (no EEPROM/shield)?
I am relatively new to Arduino and I am currently writing some code to control a relay board. The on/off times are provided by the user at run-time and should be stored persistently (EEPROM or flash) ...
2
votes
0answers
53 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 ...
3
votes
0answers
76 views
Getting atsam3x8e (Arduino Due) to work
I decided to make a pcb based on the atsam3x8e (microcontroller used in Arduino Due). For the design I copied most of the layout that I found on this site and looked at the official Arduino Due ...
0
votes
1answer
640 views
Writing data from multiple sensors in burst mode to an Arduino Due
I need help developing a simple sketch that can read data simultaneously from 3 analog accelerometers and send it in 'burst mode' to be stored on an SD card, to reduce the effect of latency.
I used ...
2
votes
0answers
31 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 (...
1
vote
0answers
67 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 ...
1
vote
0answers
33 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" ...
0
votes
6answers
10k views
AnalogRead always 1023 on Arduino Due?
Just using the Basic Example AnalogReadSerial.
// the setup routine runs once when you press reset:
void setup()
{
// initialize serial communication at 9600 bits per second:
Serial.begin(9600)...
1
vote
1answer
40 views
Ardiuno DUE board. Sketch uploading Error
I am working on Arduino UDE board in Ubuntu 18.04. I've followed following link tutorial.
https://www.arduino.cc/en/Guide/ArduinoDue#:~:text=Use%20your%20Arduino%20Due%20on%20the%20Arduino%20Desktop%...
3
votes
2answers
104 views
Writing a 1Mb bitmap to an SDcard with only 96kB RAM
My goal is to have an Arduino Due (96 KB RAM) write a +-1MB bitmap to an SD card.
I have an array of a several coordinates on my Arduino Due and I would like to generate the bitmap where all the ...
1
vote
0answers
17 views
Brushless ESC Recommendations
I've got a project in which I'll be controlling 8 24V/10A brushless DC motors with an Arduino Due on a quadrupedal robot. I've been having trouble finding ESCs that would work well for this ...
0
votes
1answer
186 views
Arduino Due 16U2 Programming Port Documentation
Are there any documentation or whatsoever on what the 16U2 does when trying to program the Sam3X in Arduino Due?
I reallynwant to know what's wrong with my made up board but can't get pass the No ...
0
votes
1answer
78 views
If and while statements not working
The second and third "while and "if" are not working but first "While" and "if" does work.. Am I doing something wrong?
#include <DFMiniMp3.h>
int sw1 = 3;
...
1
vote
0answers
71 views
TFT menu system sometimes doesn't refresh the screen properly
I have a project in which I control a display using an Arduino Due microcontroller.
The user can navigate on the TFT display (RA8875 driver ic) with a rotary enconder/pushbutton.
The display shows a ...
1
vote
0answers
43 views
Connect output of Arduino DUE to input of Arduino Uno
I have a distance sensor connected to an Arduino DUE and I want to wire its output to an Arduino UNO.
In Arduino DUE, after calculating the distance, I convert a range of distances (0-10cm) to Volts (...
1
vote
1answer
253 views
void loop() stops running after an hour or so
So I have a program that measures temperature and humidity over time. Here isthe code I use:
#include <SD.h>
#include <SPI.h>
#include <DHT.h>
#include <Wire.h>
#include "...
2
votes
1answer
217 views
Does the MKR WIFI 1010 support the arduino mouse and keyboard controller?
I am working on a project right now that needs to connect to my computer via bluetooth and access the arduino mouse and keyboard library. In my research, I've found that only the Leonardo, Due, and ...
0
votes
1answer
111 views
Reading multiple pins via registers on the Arduino Due
I would like to read multiple pins at once in Arduino Due via registers just like PINB, PINC, PIND of the arduino uno. I know that the pins will be scattered to multiple registers, but i deduce it ...
3
votes
0answers
30 views
How to access bootloader recovery mode (like the Micro) or equivalent on the Due?
I would eventually like to use a Due as a custom USB device PC-side (through programming port) while using it as a USB Host on the native port.
Adding the programming port endpoints (perhaps willingly ...
1
vote
1answer
96 views
PC not recognizing Arduino when working with a class and MIDIUSB library
I've recently bought an Arduo Due to create some sort of a Midi controller together with the MIDIUSB library.
I have create a simple a test program with 1 potentiometer (without the use of a class) ...
0
votes
1answer
39 views
How to break out the due power supply and USB connectors?
I am planning a build with my own enclosure for the arduino due. As an alternative i would like to bypass the power jack and usb port that are factory soldered onto the board, in order to use jacks ...
2
votes
1answer
34 views
Reset a UART connection on a Due
I have a system that involves an Arduino Due connected to a Raspi 4 through UART in which the Due sends a heartbeat signal over UART for the pi to receive and send back as confirmation. One of the ...
0
votes
2answers
4k views
Arduino Due analog output has 500mV offset
I use a simple serial connection to tell the Due what to output into an analog output pin. However, the outputs are offset about 550mV (as seen on an oscilloscope) and the maximum value of 255 gives ~...
1
vote
1answer
110 views
Set SPI MOSI pin to idle low on a Due?
I have an SPI slave connected to Due. I send the SPI slave into sleep mode. During sleep, I need to pull all pins low, including MOSI. What's the best way to pull the SPI-4 pin low on a Due?
Here's a ...