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
1answer
38 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
1answer
30 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 } ...
2
votes
0answers
18 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 ...
0
votes
0answers
42 views

DMA not working between Arduino DUE and ethernet shiled (W5500)

I have a little project which consists of taking every impulsions from an encoder and sending them through UDP. The encoder delivers 16384 signals (ACP) for 1 turn and 1 signal (ARP) every turn (to ...
0
votes
0answers
56 views

How to connect Arduino Mega2560/DUE to a perfboard?

The pin position of Arduino mege2560 / due is not standard. I need to use the perfboard in the project and connect the DUE to it. This project is mainly to do a sampling circuit, the running speed of ...
0
votes
1answer
49 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
1answer
50 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
0answers
23 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\...
2
votes
1answer
85 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
64 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
0answers
29 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
54 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 = ...
0
votes
0answers
38 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
36 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 ...
1
vote
2answers
32 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
1answer
267 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
51 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
63 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
2answers
116 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
123 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
0
votes
1answer
38 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
2
votes
1answer
82 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
49 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 ...
2
votes
0answers
70 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
0answers
35 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
81 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
1answer
49 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
0answers
45 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" ...
3
votes
2answers
111 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
89 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
94 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 (...
2
votes
0answers
41 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 ...
3
votes
0answers
111 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
44 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
40 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 ...
1
vote
0answers
29 views

Arduino Due Master Programming

I am newbie. In my application Arduino Due is configured as Master and Arduino Uno as Slave. I need to transfer 24-bit Hexadecimal data of about 79-registers to slave device. At the slave end in ...
0
votes
0answers
33 views

arduino due: how to read more than one byte at a time in serial uart with tfmini liar sensor

I'm trying read tfmini lidar sensor from arduino due board with uart. Here i can read only one byte at a time using serail.read() method but i need to read 9 byte at a time and store it in array. ...
0
votes
1answer
231 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 ...
1
vote
1answer
42 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%...
1
vote
0answers
95 views

Arduino Due with Logitech F710 gamepad

I'm having Arduino Due board and Logitech F710 Wireless Gamepad. I have connected the receiver dongle to native port of Due board via OTG cable. As the native usb host library supports only keyboard ...
1
vote
0answers
32 views

Does DFR0063 I2C LCD work with Arduino Due? I cannot even pass i2C scanner

I have 2 Due and Two DFR0063 I2C LCD. I cannot even pass i2C scanner. I always got No I2C devices found. I tried both SCL/SDA and SCL1/SDA1. For SCL1/SDA1, I do add 10K pull up resister. But still ...
0
votes
1answer
39 views

Arduino Due SPI clock pauses each octet

I'm trying to communicate with SPI slave using Arduino DUE as master. Device requires commands to be 32 bit wide, SPI mode 3. I've ran the minimum code (using Arduino IDE 1.8.12) to send some 32 bit ...
0
votes
1answer
116 views

Is it possible to count rising edges of a 4 MHz clock on an Arduino Due and trigger an interrupt like all 4'000'000 edges?

I am struggling with my Arduino Due and the Timer Counter functionallity. The following is what I am trying to achieve: I want to execute a function to a specific point of time or more precisley ...
2
votes
1answer
243 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 ...
1
vote
0answers
55 views

MLX90129 - SPI protocol

I don't know if someone has already worked with the MLX90129. Right now, I'm trying to establish the SPI protocol between MLX90129 and an Arduino. I'm using the example that it is showed in the ...
1
vote
2answers
106 views

Use of “static” with “RTClib”

I've got a question concerning the Arduino library "RTClib" by Adafruit and the use of the word "static". Here you can see an excerpt from the example provided for the pcf8523 real-time clock: #...
1
vote
0answers
25 views

Why calling digitaWrite(pinNum,HIGH) before setup() not working? [duplicate]

I am writing a library to operate a linear actuator, let's call the library ActuatorV2. It is composed of two files, a .h and and .cpp files. To create an object, I instantiate the object as follows ...
1
vote
0answers
51 views

How to calibrate Arduino DUE analog readings?

I am having a problem with the analog readings on my Due. On pin A4 and A5 I am measuring voltages: double vcc = 3.288 // taken on pin 75 (ADVREF) ; analogReadResolution(12); result = analogRead(A4) ...

1
2 3 4 5
9