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
0answers
52 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
25 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
16 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
38 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
88 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 ...
4
votes
1answer
434 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 ...
1
vote
0answers
16 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
155 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
47 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
33 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 ...
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
333 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 ...
1
vote
0answers
36 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
207 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 "...
0
votes
1answer
314 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 (~...
1
vote
1answer
140 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
79 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 ...
1
vote
0answers
18 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
104 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 ...
2
votes
0answers
23 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 ...
1
vote
1answer
82 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
33 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
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 ...
0
votes
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 ...
2
votes
1answer
29 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 ~...
0
votes
1answer
627 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 ...
1
vote
1answer
72 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 ...
0
votes
0answers
24 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
1answer
106 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 ...
0
votes
0answers
27 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. ...
3
votes
1answer
4k views

Using SD card shield on Arduino Due

I have a Seeed Studio SD card shield (V3) that I am trying to use on my Arduino Due. I am having trouble using the SD examples that come with the Arduino IDE. They worked fine on my Arduino Uno by ...
0
votes
0answers
63 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 ...
0
votes
0answers
25 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
32 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
2k views

How to configure 2nd Quadrature Decoder IO pins in Arduino IDE

I am working to read two quadrature encoders using a single Arduino DUE, as part of my summer vacations project. According to the following link http://atmel.force.com/support/servlet/fileField?id=...
3
votes
1answer
14k views

Graph plotting on Python using Tkinter Canvas

I'm trying to plot a graph with python using the canvas widget, I'm currently sending data in from an arduino sensor sketch ..does anyone have an idea on how I can plot this graph in real time on ...
0
votes
1answer
52 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 ...
0
votes
0answers
87 views

How to use NVM or EEPROM on SAMD51?

I had to upgrade to Arduino Grand Central M4 ( running SAMD51 ) due to large code and demanding memory . I know SAMD51 does not have a classic EEPROM but it still has NVM for user data storage between ...
0
votes
1answer
90 views

Convert Arduino MEGA Code to Arduino DUE Code?

I've been working with MEGA before. This code works completely with MEGA. I'm still at beginner level in Arduino. Q: How do I adapt this code to DUE? Note: I'm asking this question because I think ...
0
votes
0answers
52 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
57 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 ...
0
votes
0answers
31 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) ...
0
votes
0answers
19 views

File location of core libraries used in arduino Due

I am creating a library for arduino DUE that assumes the core libraries are installed. Where are these files located? I am using a different IDE to write the code since its much easier and it is my ...
1
vote
1answer
65 views

Home made drum kit - How can I speed up the response time after my sensor gets triggered?

I am trying to make a psudo drum kit with my Arduino Due and a couple Force Sensitive Resistors (activated with my fingers, no drum sticks). So far in my testing I'm only using one FSR. I've attached ...
0
votes
1answer
40 views

Servo Program Questions

Hi programming in arduino, I am trying to get a nested for loop inside a for loop with industrial servo which used PUL +- DIR+- (bought motor off amazon). My goal is to get the puls delay to increase....
0
votes
1answer
39 views

Gauss solver for IIR filter

I write a piece of code in online GDB using c++, the code calculates some coefficients for a IIR filter which tries to approximate a fractional derivative and integral for a fractional PID control. ...
1
vote
0answers
155 views

How to access native USB port of Arduino Due on Synology NAS?

I would like to flash my Arduino Due from my Synology DS218+ NAS which runs on an Intel 64bit Linux-derivate platform. Previously, I was able to flash a Mega 2560 from this NAS via avrdude and ...

1
2 3 4 5
9