Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

14
votes
1answer
284 views

Mysterious RX pulses on UART connect on OS X Arduino Due

Arduino IDE 1.6.8, Arduino Due, Mac OS 10.11.3 I am seeing eight mysterious pulses on the RX line when I connect to the serial port using multiple client libraries (Python, JavaScript as well as the ...
11
votes
1answer
2k views

Internet connectivity for the Arduino Due using AtmelStudio?

What hardware and software solutions work and what are the tradeoffs for connecting an Arduino Due to the internet? I gather the ethernet hardware is much cheaper than WiFi hardware (€29 versus €69). ...
9
votes
3answers
13k 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 ...
9
votes
1answer
3k views

How can a 5v Uno talk to a 3.3v Due?

I currently have an Uno (which operates at 5v), and I'm looking at buying a Due (which only operates at 3.3v). I'd like to make them communicate via Serial or SPI or similar, but presumably connecting ...
9
votes
1answer
837 views

SPI Arduino Due conflict with pinMode(), bug?

Consider the following minimal example, where I set pinMode before calling SPI functions: #include <SPI.h> void setup() { pinMode(10, OUTPUT); SPI.begin(10); SPI.setDataMode(10,SPI_MODE1)...
8
votes
4answers
15k views

Arduino Time Clock Accuracy

I'm currently trying to create an Arduino time clock by using the PJRC Time library (http://www.pjrc.com/teensy/td_libs_Time.html). I know that since most of the Arduino boards are running with a ...
8
votes
1answer
22k views

A digital I/O pin as ground

I want an I/O pin to return current in a circuit, similarly to the function of ground. Which of these will achieve what I require? pinMode(pinnumber, OUTPUT) digitalWrite(pinnumber, LOW) or ...
8
votes
1answer
7k views

Why does the Arduino Due have a native and USB programming port?

According to the schematics, the Arduino Due has two USB inputs: Native Programming Why is this? And when would I use the different ports?
7
votes
4answers
880 views

delay(time); vs if(millis()-previous>time); and drift

Going through an old project, I had code on two Arduino Due that looked like this void loop() { foo(); delay(time); } taking to heart the majority of literature on using delay(); I recoded this ...
7
votes
1answer
498 views

On Arduino Due webserver, there is a 5 second delay on Windows, only when connected via native port

My Due webserver was working perfectly fine for months when connected to Linux via the native port. But when connected to Windows 10 via the native port, if the Arduino webserver is idle for about 5 ...
6
votes
3answers
5k views

Breadboard-to-Arduino wiring with flat flex cable assemblies?

I want to wire Arduino Due connectors to a breadboard 8-at-a-time, so they're easier to remove and more reliable. I tried these Flat Flex Cable Assemblies (FFC assemblies) terminated with "solder ...
6
votes
4answers
2k views

Library to set internal analog gain of the Arduino?

My original question was if there is a library that covers the internal comparator and differential and gain modes for the Arduino Uno, Mega 2560, Leonardo, Due, Zero, M0. The answer is obvious: "No". ...
6
votes
1answer
6k views

References (e.g, libraries and tutorials) for connecting the 24-bit ADS1256 ADC to arduino

The ADS1256 chip is a high precision 24bit, 8 channel, analog digital converter based on SPI communication that is suitable for biomedical applications and perfect for sensing ECG and EEG signals. I ...
5
votes
3answers
934 views

Sizeof variables and Due's RAM

I set out to see how much space some arrays have. I used this test code bool state = false; uint16_t BuffA[46000]; uint16_t BuffB[20000]; uint16_t BuffC[20000]; uint16_t all = 0; void setup(){ ...
5
votes
2answers
951 views

Arduino onboard LED pin number as a constant

To use the onboard LED on an Arduino one usually has to know the pin number (13 in most cases), but is there a constant in the Arduino IDE one can use as well? So is it possible to use something ...
5
votes
1answer
1k views

Connecting breakout board to Arduino with UART

I'm using a DigiX (Arduino Due based 3.3V) board to connect to a GPRS/GSM SIM908 breakout board. The SIM908 EVB board has the following pins on its RS232: I've got all three UART TX lines hooked up ...
5
votes
2answers
5k views

Why was the Due retired? [closed]

Looking at the Sparkfun comparison, it seems that the Due is by far the fastest of the Arduinos and has I/O capabilities similar to the Mega. So why was it retired with no obvious successor?
5
votes
4answers
2k views

Employing C++ code for Arduino

I have Googled quite a lot regarding using a C++ program for uploading to Arduino and related, however I am confused now. Right, my problem is this: I have written a C++ program which imports RGB ...
5
votes
1answer
830 views

Syncing/taking external clock for SPI on Arduino Due

I have an Arduino Due with a SAM3X8E chip and am trying to read SPI data from an external source that is communicating in SPI. I was able to get data by identifying specific bytes that are identifiers ...
5
votes
1answer
12k views

How to connect 5V sensors to 3.3V digital input (Due)?

I'm completely new with Arduino and microcontrollers in general. I have several 5V sensors, and need 3.3V because that's the max for the Due. Is it possible to use a resistor to connect it to the ...
4
votes
3answers
3k views

Arduino Due and BNO055 address in i2c mode

I have a project where I need to have several IMUs, the BNO055 shuttle board (I explained my project here), I manage to get the Euler angles from one BNO055 sensor, which have the address 0x29, ...
4
votes
1answer
550 views

Need some explain before desigin my own custom Arduino Due board

I'd like to ask you some questions about ARM processor from Atmel like the SAM3X8E, the one used in the Arduino Due. I have found this [AVR programming guide] from abcminiuser on avrfreaks very ...
4
votes
2answers
427 views

What is the proper way to implement PID?

I'm having some trouble conceptualizing how to go about implementing PID into my drone. There are a few ways I'm thinking about implementing the pipeline: Having one PID Object for each of the six ...
4
votes
2answers
2k views

How to program arduino due without arduino ide

Is it possible to program the Arduino Due without the Arduino IDE? Is there a standalone program that can be downloaded, and be used to upload a .bin file (which has already been generated from the ...
4
votes
3answers
5k views

Arduino Due - creating an 8Mhz clock signal

I am attempting to interface a OV7670 camera to an arduino Due. (I am fairly new to this although have been programming for many years). I need to generate a clock signal for the camera at a minimum ...
4
votes
4answers
5k views

How do I connect Arduino to a Bluegiga112?

I am a new user of Arduino (I have a Arduino Due) and also I am a new user of BLE112 (Bluegiga module 112) My teacher told me to make the BLE112 advertisable and furthermore he told me to look for ...
4
votes
2answers
122 views

FastLed LED Strip Output Checksum

I am wondering if anyone has ever connected the output of their LED strip back to the Arduino to read and make sure the strip is functioning correctly, kinda like checksum functionality. I am using ...
3
votes
4answers
4k views

Read OUTPUT pin value in Arduino Due

I am trying to read the value of an output pin. online forums say that digitalRead(pinNum); should work, but that is not the case here. digitalRead always returns 0 (LOW). This is the code: int pin = ...
3
votes
2answers
18k 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
19k views

How do I read from /dev/ttyACM0 in Linux without a terminal emulator?

I just bought an Arduino Due and I'm having trouble reading from a simple serial IO program. I have a SparkFun RedBoard which is like an Uno. With that, I just ran a "stty" command to configure the ...
3
votes
1answer
2k views

Arduino Due: Interrupt-based ADC hangs processing

I am trying to build an oscilloscope using an Arduino Due and an LCD. I have the LCD running perfectly and started working on using the ADC peripheral to sample signals. Here's what I have so far: #...
3
votes
1answer
159 views

Due : DMAC BTSIZE trimmed modulo 8192?

On Arduino Due, I set-up DMA transfers using direct control of memory mapped hardware registers. There is a 16-bit BTSIZE field in CTRLA which indicates the number of (width sized) transfers. If I ...
3
votes
3answers
3k views

Connecting high sampling rate DAC and ADC to arduino DUE, timer consideration

I'm in the echopen association, our goal is to create a low cost, open source echographic probe. In order to do that, we use an arduino due for the first step. For doing acoustic imaging, we use ...
3
votes
3answers
17k views

Why am I getting “fatal error: SoftwareSerial.h: No such file or directory”

I downloaded the Adafruit_GPS library from Adafruit and I'm trying to compile the example code (due_parsing) but I can't seem to get past this silly error: In file included from due_parsing.ino:15: /...
3
votes
2answers
148 views

Arduino Due - using built in ADC as a DSO causes issues at high frequencies (kHz)

I am trying to use the inbuilt ADC of the Arduino Due to measure voltage signals. The frequency range I'm interested in measuring is up to about 30 kHz.But I'm observing a strong capacitor behaviour ...
3
votes
1answer
9k views

Speed of built in DAC/ADC in Arduino Due

Can someone tell me how fast the built in DAC (and ADC) in an Arduino Due can be written or read? I currently don't have the equipment to measure but need the information to plan my next steps. I ...
3
votes
2answers
5k 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) ...
3
votes
1answer
3k views

Faster GPS update rate for parser

I really hope somebody can help me. I need help making my code receive updates faster to the parser...I need the received GPS coordinates (Latitude and Longitude) to update 5 or more times a second, ...
3
votes
1answer
314 views

I2C communication between Arduino Due and Nano

I'm trying to communicate between two Arduino Due and Nano. Nano as Master and Due as a slave. As given in the library description Wire Lib When the master request for data from the slave, first it ...
3
votes
1answer
12k 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 ...
3
votes
1answer
267 views

Adding devices makes I2C read 0

I'm using an Arduino Due with a logic level converter to interface with two different 5v sensors via I2C. Being of poor quality, these sensors have no data sheet. When either one of these sensors is ...
3
votes
1answer
503 views

Problem with TIMER in Arduino DUE

I'm writing a code to print/update the value of sensors for each 10 ms, and I decide to use Timer instead of delay function (I'm afraid it's not exactly 10ms with delay function).But when I watch the ...
3
votes
1answer
190 views

Arduino Due randomly slows down, serial communications stops

I've got an Arduino Due connected to a Raspberry Pi via Serial3. The Due will randomly stop sending data to the Pi after a few days, or sometimes after several hours. Using an oscilloscope, I can see ...
3
votes
1answer
12k 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 ...
3
votes
0answers
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 ...
2
votes
2answers
580 views

Arduino due slow clock

To reduce the components amount I don't want to put the 32.768 kHz oscillator on my own Due. Can I leave the corresponding XTAL inputs unconnected? What is the main target of the slow clock? What I ...
2
votes
1answer
471 views

MCU Type ATmega16U2 not avaliable in Eclipse AVR Plugin

I am following this guide. Now I want to create the Create the "ArduinoCore library". But when I am creating a new project, I can not select ATmega16U2 as MCU type. But my Arduino Due R3-E and UNO ...
2
votes
2answers
8k views

SerialEvent handling when using multiple serial ports

I would like to use multiple (three) serial ports on an Arduino Due. Instead of polling the ports continuously, I would like to use a Serial.Event function for each of the ports. These handler ...
2
votes
2answers
5k views

Why does command line BOSSA not recognize Arduino Due?

Running Ubuntu 12.04.4 LTS (64 bit) I try to upload my code to the Arduino Due through the Native port. I have tried both the bossac that ships with the Arduino IDE (which is a modified version of ...
2
votes
1answer
2k views

Python - Arduino communication not reliable

I'm trying to establish basic communication between python and my arduino due. I have managed to get a message sent to the arduino and sent back, but the code that achieves this task does not give ...