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
34 views

Persistence of user input after reboot

I am creating an application where user input is required. After a user browses through available choices (via buttons and LCD) depending on the choice of the user a function is run from several ...
0
votes
2answers
747 views

Serial1 is not reading the Xbee on a Arduino Due

I am trying to test simple communication between a Xbee on my Arduino Due and a Xbee linked to XTCU. I attached jumper wires from RX and TX to RX1 and TX1 (Serial 1 hardware port) but I cannot send or ...
0
votes
2answers
307 views

Scheduled loops using same function

I am using an Arduino due and have multiple schedules running at the same time. I am using this Library. I have a function that 3 different loops use. Two of the loops are driven by user interaction ...
1
vote
0answers
558 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
167 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 ...
0
votes
2answers
2k views

The fastest way to read out a digital pin state in an Arduino Due

What is the fastest way to read a digital pin status in an Arduino Due? Is it possible to achieve speed in the Nanosecond area? With which type of code I can achieve this? Edit: This question is not ...
1
vote
0answers
216 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
1answer
521 views

SSD1306 OLED LCD Library Errors

Recently i bought an "Serial 128X64 OLED LCD Display SSD1306". I searched for available libraries and tried to find the best one to use before actually experimenting with this device. I came across ...
0
votes
2answers
97 views

Advice needed, commercializing an Arduino Due project

We have a project using an Arduino Due, and we are looking to commercialize the project. How would one typically proceed? Would you use the Arduino Due inside the project? This seems very amateur. ...
2
votes
1answer
730 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 ...
1
vote
2answers
349 views

Did I fry my DUE by powering it from a external source and USB at the same time? If so, why?

I guess I just fried my second DUE in a week. The first I didn't really see what happened, but I couldn't upload any sketches, even if the computer could recognize it, and the SAM would get really hot....
1
vote
1answer
598 views

Arduino Due connection with FLIR Lepton

I'm trying to connect a FLIR Lepton to an Arduino Due. A thread by pureengineering talks of rerouting some pins. I am not sure what they precisely mean. Does this rerouting mentioned in the link also ...
0
votes
2answers
4k views

Fastest communication between Arduino and PC

I am using an Arduino 2 which collects data from a set of microphones and stores it in an array of unsigned short of 40000 elements and sends them to the PC via Serial USB. It is working but I'd ...
1
vote
0answers
266 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 ...
0
votes
1answer
833 views

Trouble while using Arduino DUE as programmer [duplicate]

I'm trying to use the arduino DUE board as a AVR Programmer. My target device is atmega328p. After uploading the ArduinoISP into the DUE Board. I've tried to let a pin toggle using the following code:...
0
votes
2answers
1k views

Increase Serial Rx buffer

I am working with an Arduino Due and I am having some issue with the serial Rx buffers size. I am using a GSM module and some of the replies to the Arduino exceed the number of bytes I can store in ...
0
votes
1answer
773 views

Measuring ADC sample rate - Arduino DUE

I want to measure the conversion rate of an arduino DUE. I know I could just take it from the datasheet but I need to measure it because I am running the ADC in free running mode. Hints are welcome, I ...
0
votes
1answer
1k views

Arduino due - SAM-BA bootloader is it there even if you replace the original chip

On this page http://playground.arduino.cc/Bootloader/DueBootloaderExplained it mentions the sam-ba bootloader is permanently burned into the rom of the chip. Does this mean even if I buy a new chip ...
0
votes
1answer
396 views

Arduino DUE as a FTDI programmer

I want to use Arduino DUE board as a FTDI programmer. The task is to program ESP32 module which is connected to the Arduino Serial port. I can use only DUE Native port. There is no DUE programming ...
0
votes
1answer
589 views

How to save a hex file into Arduino Flash to send it via Serial?

I have a text file with hex values formatted in the following style: A0 3F 55 01 00 C7 55 01 00 C7 AA 29 71 11 00 0B 00 C7 AA 29 71 1F AA 29 71 11 55 01 A0 3F 55 DC ... How can I save this data into ...
2
votes
1answer
2k views

while(1) loop blocks program to enter interrupt

I want to build a program in C that enables / disables a passive matrix display. But my problem occurs before I can even implement one function of this display. I have a simple switch connected to ...
0
votes
1answer
619 views

SPFD5408 for TFT in Arduino Due

I have interfaced HC024071 TFT Display with Arduino Due using SPFD5408 Adafruit library. It works perfect. But using the same library with Arduino Due (with pin connections modified as follows): // ...
0
votes
1answer
798 views

Arduino Due: ADC gain adjustment problem

I want to increase gain of the ADC channel. To achieve this I'm using adc_set_channel_input_gain function from adc.h. Here is the entire sketch: const byte aPin = A6; void setup() { ...
1
vote
1answer
2k views

Arduino DUE deadlock problem, watchdog not working

I am using Arduino DUE in my project. The project is massive (about 7000 lines of code in total, with massive schematic), so I decided not to post the whole code and schematic, except explain the ...
0
votes
1answer
74 views

Shared 5v power for Due dedicated application

I would appreciate input on this situation: I plan to power a fairly high current, 5 volt supply, 3.3v signal, device from a suitable wall wart. I would like to power the due that controls it through ...
2
votes
1answer
406 views

Sim800L's library can not compile on Arduino Due

Sim800L's library can not compile on Arduino Due. Is there any way to create a library for Arduino Due? #include <Sim800l.h> #include <SoftwareSerial.h> Sim800l Sim800l; char* text; char*...
1
vote
1answer
183 views

How do I code my arduino to return a throttle servo to idle?

I have an Arduino powering a small 180 degree Parallax servo that is used to control the throttle link for a small engine. I have code right now that will allow me to open/close the throttle (in ...
1
vote
2answers
4k views

How to measure free RAM on an Arduino Due in Runtime?

I use this Library to measure my free RAM on a Mega in runtime. But this Library does not work on the Due.
1
vote
2answers
111 views

What is the best type of Arduino board for simple delivery robot? [closed]

I'm new to arduino, and I want to design a Simple Delivery Robot for Data Center, which has an arm to move items, and it follows line while moving. I have no idea if there is a special arduino board ...
1
vote
1answer
4k 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
2answers
1k views

Sending Large Packets and Reassembling over Serial

I'm trying to send info of about 30-40kB over the Serial ports on an Arduino Due. But I'm running into a few problems. First, before we get into the actual transfer over the Serial, I want to try ...
3
votes
1answer
261 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 ...
2
votes
0answers
3k 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 ...
2
votes
0answers
87 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. ...
0
votes
1answer
117 views

Arduino Due: multiple TCS sensors

I am trying to run 2 TCS3200’s from one Arduino Due. Next, I must increase to 4 sensors. I need to read the data from the 2 digital pins but how do I read both within the same loop rather than in ...
0
votes
1answer
303 views

ISR halts in DUE

I am using the following simple code to test the interrupt functionality of due: void aMillion(){ for(int i = 0; i < 1000000; i++){ if(i % 1000 == 0){ Serial.print("m"); ...
2
votes
0answers
558 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 ...
0
votes
3answers
3k views

Advanced ADC setup on Due (SAM3X8E) to increase precision

I want to make some precise measurements with Arduino Due. Although I'm using very good external voltage reference (LTC6655) measured data is still jumping around, especially significant when I'm ...
2
votes
2answers
965 views

Problem using an array inside a switch statement

I am having a problem when using a switch statement to check for something inside an array. I am using an int as my switch, then I compare the character arrays using strstr. So it reads like this: ...
0
votes
1answer
675 views

How to make PCA9685 work with Arduino Due?

I have Arduino Due and PCA9685. I use this library: https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library The board does not do anything with servo connected. I tried to use SDA/SCL pins and ...
0
votes
3answers
853 views

Arduino is freezing during Serial.Print() while passing a char array

This problem is on an Arduino Due. I am trying to populate a char array buffer that is receiving information over a serial port. I am reading the information off of the serial port and storing it into ...
2
votes
0answers
562 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] ...
1
vote
1answer
359 views

Arduino Due ( Atmel Microcontroller) IC Heat up and led goes off

I was connecting L293d Motor Driver IC with an Arduino Due Board. May be due to wrong connections, but when I made the grounds common, the Arduino LED goes off and Atmel IC heats up. When I reconnect ...
1
vote
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=...
2
votes
1answer
3k views

Reading Two Quadrature Encoder using a single Arduino Due

I am working on an autonomous robot in my summer vacations. I am currently working on running the motors of my robot in a closed loop. In order to do so, I have to interface two Quadrature encoders of ...
3
votes
2answers
180 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 ...
0
votes
1answer
1k views

Arduino due + mcp2551

I am currently using an atmega328 along with the mcp 2515 and the 2551 for CAN communication in my systems. However, I've now decided to upgrade to the arduino due for my operations. Can anybody tell ...
2
votes
2answers
822 views

Arduino Due SRAM

I'm trying to create an array in Arduino Due and when the array exceeds the size of 32768 integer elements the compiler (Atmel Studio) complains. I read that Arduino Due SRAM size is 96K in 2 banks....
5
votes
2answers
493 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 ...
0
votes
1answer
8k views

Code example SPI multiple slaves Arduino DUE

I'm trying to get 2 devices (camera and sd card)to work on the SPI interface with an Arduino DUE. I'm having trouble finding example code online showing how to communicate with multiple slaves on the ...

1
3 4
5
6 7
9