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.

90 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
0answers
416 views

ArduinoDue - Matlab: SerialUSB.write() sends ASCII?

I'm trying to get some binary data from an Arduino Due to Matlab. Basically this is the setup: Due: byte usbMsg[33]= {0}; // filled with dummy as example usbMsg[1] = '00000001';// in[3]; usbMsg[2] ...
2
votes
0answers
351 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
0answers
98 views

Reading Reveive Hold Register from USART in SPI Mode on Arduino Due

Sending with this function here works fine: uint16_t usart0spiTransfer16(uint16_t spiMessage16) { uint16_t sdo = 0; byte firstByte = spiMessage16; byte secondByte = (spiMessage16 >> ...
2
votes
0answers
230 views

Arduino Due upload firmware issue

I have Arduino Due on SAM3x8e. I'm on Ubuntu 14.04. Before today I uploaded firmware via terminal using those commands: $ stty -F /dev/ttyACM0 speed 1200 cs8 -cstopb -parenb $ /home/q/apps/devel/...
2
votes
0answers
2k views

How to use the native USB of the Arduino Due for high-speed communication?

All the Arduino examples involving communication via USB I could find use a virtual COM Port. On the Arduino part it's Serial.begin(baudrate); Serial.write(byte); And on the PC part it's just ...
2
votes
0answers
848 views

Interfacing WM8731 code to Arduino Due

WM8731 codec was successfully interfaced with Atmega328 like variants in Arduino. It was first done successfully by Open music labs who are the makers of the breakout board for WM8731. Taking this ...
2
votes
0answers
358 views

Arduino Due - wireless programming via Xbee

I would like to integrate an Arduino Due into a project, which probably will evolve over time and will need some re-programming. Instead of having to disconnect and pull out the Arduino Due out from ...
1
vote
2answers
62 views
+100

Trouble with setting the PWM frequency for Arduino Due

I'm using Arduino Due and I set the analog read and write resolution to 12-bit for better resolution. Basically all I do is to vary PWM duty cycle by controlling analog DC input voltage from 0 to 3.3V....
1
vote
0answers
42 views

Reading data by port manipulation (Arduino Due)

I have shorted the 23rd pin of port A with 3.3v output pin (i.e. tieing 23rd pin of port A to logic high). Now I am trying to read the 23rd pin of port A by using following code- void setup() { ...
1
vote
0answers
51 views

Using ERASE button as PIO on Due

I'm working on a demo program for which I want to use minimal resources: all I need is one LED and one pushbutton. I'd very much like to use on-board resources. The user LED (PB27) is fine (I'd have ...
1
vote
0answers
267 views

Series of µsec pulse generation using Arduino Due

I'm working on a project in which I need a series of very accurate pulses containing 2 shots in every pulse. The pulse should have 100µsec on time followed by 300ms off time. But when I'm programming ...
1
vote
0answers
115 views

Interference in readings

I have an project which control a heat exchanger. I read 4 temperature sensors DS18B20, a distance with HC-SR04 Ultrasonic Sensor, and a flow with YF-S201 (with attach interrupt). I can turn on and ...
1
vote
0answers
357 views

Time to read/write memory on the DUE

I am onto a project where a need more memory. I saw the 23LC1024 chips are very popular with the Arduino DUE. A very helpful person told me he did some timing tests on the 23LC1024 and a page read/...
1
vote
0answers
918 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 ...
1
vote
1answer
228 views

PCA9685: how “unset” PWM signal?

I use my Arduino with Adafruit PCA9685 servo controller. To set PWM signals I use the provided library: https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library It allows easily set PMM signal ...
1
vote
0answers
226 views

Sleep mode Arduino Due through IR receiver control

I need to put my Arduino Due into sleep mode in order to consume less power. My Arduino Due receives IR data and does some work with it, but I need to make it sleep until there is no data. If data ...
1
vote
0answers
441 views

Arduino Serial Communication Issue

I state that I have already written a similar question on StackOverflow thinking that the problem is with my computer software. Anyway, after some shell debugs, I notice that the real issue is on the ...
1
vote
0answers
156 views

Arduino Due, program not there after power off

When i program my arduino Due after a RESET, my program is still there. However, when i power off my Due and then turn it back on, no program is there! There is no persistence in the program and i ...
1
vote
0answers
190 views

attachInterrupt HIGH

I'm trying to understand the implementation of attachInterrupt. For LOW, CHANGE, RISING and FALLING it seems simple enough; it sets some chip-specific registers and stores the given callback in ...
1
vote
0answers
211 views

No reply from GSM module

I have an arduino due sending and receiving data from a server using a GSM module (UBLOX SARA-U270). The issue I am having with it is that after a period of time working correctly the module stops ...
1
vote
1answer
3k views

SerialUSB on Arduino Due

I'm starting fiddling with a Due but I can't seem to be able to communicate over USB with it. Here is my code: int bauds = 9600; void setup() { SerialUSB.begin(bauds); } void loop() { if (...
1
vote
0answers
1k views

Reading Serial Data Using readBytes() and Use of Serial.read()

I'm trying to mix Serial.read() and Serial.readBytes() when reading over one of the Serial ports on my Arduino Due. I thought that using Serial.read() would clear what is on the serial, and then ...
1
vote
0answers
77 views

Bug read an image from SD card and draw it on TFT

I have developed a code to read an image stored on my SD Card and display it on a TFT. I can read the image from the SD Card successfully but I cannot draw it on the TFT. I dunno where is the bug. ...
1
vote
0answers
459 views

Arduino Due works perfectly on Windows but doesn't on Linux (SAM-BA operation failed)

I've been working with the Arduino Due for a project, we have been setting up these Arduinos with an ARM Board that hosts a Linux System with Busybox that connects to the Arduino. Recently I got ...
1
vote
0answers
65 views

initial power output in the digital io pins of an Arduino controller

I am a newbie.. I am integrating Arduino controller with Matlab I have connected my arduino DUE board in COM7. And I have also connected a DC Motor in one of the digital output pins (D3) So when I ...
1
vote
0answers
254 views

Help with Arduino Due and APA102 LED strip Vs Matrix

I am in a fix since last one week regarding this: As mentioned in a previous question (asked here only), I have been working to develop a APA102 LED based display. Now for this I have an Arduino Due. ...
1
vote
0answers
265 views

Parallel Chaining of APA102 LED matrices

I have four APA102 LED matrices (those flexible ones) and I want to connect them together to make a display for showing images. Now my problem is this: Consider the coordinate system with four ...
1
vote
0answers
434 views

Arduino Due Serial garbage

I have made a custom board based on the Arduino Due but have some problems with the Serial communication with the 16u2 chip. i have usb connection with the 16u2 chip and was able to load the arduino-...
1
vote
0answers
255 views

Due as USB Host timing issues

I own a UDOO Quad board which features two CPUs (SAM3X8E like Arduino Due and a ARM Cortex-A9) connected with an internal OTG USB. I am trying literally for months to use the USB Host Shield Library ...
1
vote
0answers
369 views

HM-10 and Arduino Due

I am trying to communicate between HM-10 module (without any breadboard or soldering) and experience problem with reading data from serial. Here is the code: #define TO_HEX(i) (i <= 9 ? '0' + i : ...
1
vote
0answers
839 views

Understanding types of timer interrupts

I'm learning this note about timer's api on Arduino Due. Interrupt can be attached with the next function: void tc_enable_interrupt( Tc * p_tc, uint32_t ul_channel, uint32_t ...
1
vote
0answers
303 views

Connecting Arduino Due's DAC output to pc sound card with protection

I would like to connect the DAC outputs of my arduino board to my pc sound card input so that I can use my sounds card as an osciloscope. I have two questions: 1- if I don't use an amplifier, how ...
1
vote
0answers
508 views

Bluetooth help with Arduino Due

I have been able to establish a successful connection between an RN-42 Bluetooth module and Arduino Uno, but I could not do the same with an Arduino Due. The module connects to the phone but whatever ...
1
vote
0answers
116 views

How to use Due PB0-PB7 pins as an external interrupt

In my board I need to use PB0-PB7 ports as an external interrupt sources. Is it possible? I spent a lot of time to understand that. Seems the easiest way is to update variant.cpp file by adding ...
1
vote
0answers
262 views

How to add new pins in the Arduino Due

I want to modify (extend) g_APinDescription array defined in the variant.cpp. It is necessary for new pin addition. I want to use PB0-PB7 ports as an external interrupts. I tried the following code: ...
1
vote
0answers
1k views

Errors when deploying Simulink model to Arduino Due

I am trying to connect an Arduino Due to Simulink to run it in external mode. I am unable to successfully deploy to hardware. I'm testing it with a blinking light model: A pulse generator connected ...
1
vote
0answers
70 views

Arduino DUE Bossac Lockup after Ubuntu Upgrade

I already asked my question in the Arduino Forum here: https://forum.arduino.cc/index.php?topic=353846.0 but got no answer so far. Thus I hope here might be people who have a hint for me. Since I ...
1
vote
0answers
729 views

Arduino Due native programming port

Arduino does not recommend to program the Due board via Native port as it is not reliable: If the MCU crashed for some reason it is likely that the soft erase procedure won't work as this procedure ...
1
vote
0answers
85 views

println() changes values of variables

I have a function which returns a float value. I want to see what value is returned so I print it just before the return statement. Surprisingly, the value is 0 (it shouldn't be 0). When I want to ...
1
vote
0answers
205 views

First recieved packet not displayed (Arduino with MRF24j40MA)

I'm trying to make two arduino card communicate, one is a sender and the other only receive packet from the first one and then display them. My problem is that the first recieved packet is not ...
1
vote
0answers
202 views

Programming Arduino for Mindflex

I am learning brain wave programming from Tinkernut tutorial. #include <IRremote.h> #include <IRremoteInt.h> #include <Brain.h> IRsend irsend; Brain brain(Serial); const int ledPin ...
1
vote
0answers
519 views

Can I use an Arduino Due as a flash drive?

More specifically, can I use an Arduino Due to have an interface that can plug in/out of a USB port on a computer, connect it to an SD card or similar via a sd card logging shield, and have it present ...
1
vote
0answers
93 views

Due ADC specs: full power bandwidth

I'm trying to compute Johnson resistance noise in a simple resistor circuit. However, since all frequencies contribute equally, I am getting an answer of infinity. It then dawned upon me that the ...
1
vote
0answers
100 views

Adrudio Due: How do MCU components USARTx & UART relate to board pins TXn/RXn?

I'm making USART support for SAM3x8e based Arduino Due board. I looked into arduino source code, exactly arduino-1.5.7/hardware/arduino/sam/variants/arduino_due_x/variant.cpp and see that for ...
1
vote
0answers
110 views

Arduino DUE and a ledmatrix with issues

I am trying to code something for fun using an Arduino Due and a LED matrix. The led matrix has a backpack controller. This device is using SPI. So I connect MOSI and SCLK to their respective pins and ...
1
vote
0answers
463 views

GSM shield for Arduino Due

Is there any good quality GSM shield compatible with Arduino Due? I have searched for gsm shield but it seems all shields have operation voltage 5v. Any suggestion would be helpful.
1
vote
0answers
492 views

Has anyone modified a 16x2 LCD shield to work with Arduino DUE?

Since the DUE works on 3.3 volts has anyone successfully modified a 5V 16x2 LCD shield to work with Arduino DUE? I'm thinking 3.3V will be seen as a logic "1" by the 5V LCD shield and there are no 5V ...
1
vote
0answers
420 views

Arduino Due - Multiple Serial Lines

I'm trying to interface with a serial device utilizing Serial1 (pins 18,19) on the Arduino Due. The normal serial port (Serial) is working just fine and is acting as a debug port at the moment - It's ...