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

Communication over UDP between Dues with Arduino WiFi Shield

I'm using the Arduino WiFi Shield to make two Arduinos Due communicate using UDP. The first node to send a message (the Client) doesn't always receive a reply from the other node (the Server). The ...
1
vote
1answer
3k views

Arduino Due not executing code after power on

My Arduino Due does not execute its code when powered on after being powered off for ten seconds or longer. I have to press the reset button for the code to execute. I've read some older threads ...
8
votes
4answers
1k 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 ...
1
vote
1answer
103 views

Garbled high bits on serial output

I'm trying to send the byte 0x5A (0b01011010) on the serial output of an Arduino Due. My program is based on this example project, but I've stripped out all the unrelated parts: #![feature(lang_items)...
0
votes
2answers
18k views

How to connect Arduino 5v pin with multiple things?

I am trying to connect a Bluetooth module and a gas sensor to Arduino. Bluetooth module: HM-10 Gas sensor: MQ-2 I read the guides for the HM-10 and MQ-2 and they both need to use the Arduino's 5v ...
0
votes
0answers
214 views

Use of a logic level converter with Arduino Due PWM

Maybe I am way over my head here, but here it is: I am trying to regulate a spindle RPM. The tachymeter part is now working flawlessly. Now I am on the PID part, to control and regulate that speed. ...
1
vote
1answer
429 views

How can I have 2 differents frequency on the 2 DAC outputs on an Arduino Due?

I would like to blink, using specific waveforms, 2 LED controlled by the 2 DAC output of the Arduino Due. I wrote this : #include "Waveforms.h" int i = 0; int sample; void setup()...
1
vote
1answer
578 views

I2C Packet ocasionally send a garbage data

I have a project with Arduino working as I2C slave. The master request data each 300ms. The code of Arduino is: /* Name: SimpleClass_Applcation.ino Created: 5/26/2017 4:18:28 PM Author: ...
2
votes
0answers
177 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
1answer
1k views

L and ON keeps blinking

I am not sure why the ON LED and the L LED keeps blinking on my Arduino. I was just trying to implement a simple circuit using breadboard, and everything worked fine until I unplugged one wire with ...
0
votes
1answer
195 views

Arduino due temperature reading shows random temperatures

I am using an Arduino Due board to read three temperatures from three separate smt160-30 digital sensors but the program is behaving very randomly. the code I am using is one I got from arduino ...
1
vote
1answer
2k views

Arduino Due's clock frequency

I want to change the clock frequency of the Arduino Due. The default value of the main clock, according to the SAM micro-controller, is 4 Mhz. But I found in some forums that it is 84 Mhz. But I need ...
0
votes
1answer
1k views

PROGMEM on Arduino Due (ARM Cortex M3)

I've been working with the PROGMEM function on my Arduino Uno and I'm thinking about changing to the bigger Arduino Due which is based on a ARM Cortex M3 processor instead of the AVR processor on the ...
1
vote
6answers
5k views

What is a faster alternative to parseInt()?

I'm making an LED spectrum analyzer with an Arduino Due and my PC. The audio processing is done on the PC, and then sent to the Arduino. The exact data sent is a 'coordinate', or more specifically, a ...
1
vote
1answer
296 views

Why is this IIR Filter unstable on the Arduino Due?

I am using an Accelerometer (on the MPU6050) and connected it to the Arduino Due. In order to filter the signal I am using an IIR Filter with the following transfer function: H(z) = Y(z)/X(z) = B/A ...
0
votes
1answer
160 views

Is the Arduino Due compatible with a Dual VNH5019 Motor Driver Shield?

I'm planning on buying an Arduino Due and there is a shield I would like to attach to it. I have seen a lot of things saying that some shields are not compatible with Arduino Due... I was wondering if ...
1
vote
1answer
557 views

View Arduino M0 SD card content on a computer

Recently I bought an Arduino M0 board and I'm using it in one of my projects, which logs GPS data into an SD card. Can an Arduino M0 be programmed as a USB SD Card reader? So that I don't have to ...
0
votes
1answer
110 views

Including Arduino library in a Makefile for Due

I'm currently using a Makefile for the Arduino Due I've found on Github (with some modifications). It's useful to me cause it allows me to add a static library for cryptographic functions I need and I ...
1
vote
1answer
288 views

OLED on Hardware SPI, on DUE

I want to use an OLED with DUE. I plan to connect it via hardware SPI. The Due has a 3X2 pin connector labeled SPI. Is it here where i connect the SCK and MOSI? If indeed, i connect it here, then ...
0
votes
1answer
1k views

Reduce PWM Frequency Arduino DUE

I'm newbie in arduino due. I need to reduce the default PWM frequency of arduino Due. Anyone have any tutorial to do this? (Frequencys like 25hz, 50Hz for example) I read in some posts, if i change ...
0
votes
0answers
37 views

ADXL345 hangs the microcontroller as vibrations increase [duplicate]

I am using ADXL345 accelerometer with Adafruit_ADXL345 library for vibration measurement. I am reading acceleration at X, Y, Z-axis of a sensor placed on a vibrating platform.And serially sending it ...
2
votes
1answer
482 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 ...
0
votes
1answer
550 views

Comparison of Board Shape between Arduino MEGA and Arduino DUE

I'm using KiCAD to design boards, and while it has a lot of Arduino templates, it doesn't have one for the Arduino Due. Now, I've did some searching, and it looks like the Arduino MEGA is very similar ...
2
votes
2answers
4k 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 ...
0
votes
1answer
394 views

Arduino Due not properly detecting SD card

I have an SD breakout for my Due that isn't properly detecting the SD card. On one card, it cannot detect at all, and the other it says that the SD isn't formatted with FAT, even though it is. Here is ...
1
vote
0answers
400 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/...
5
votes
3answers
1k 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(){ ...
-2
votes
1answer
258 views

Why would digital outputs on Arduino Due be less than 3.3V?

We are working on a project that requires a temperature sensor to tell the Arduino Due to turn a digital pin to HIGH (3.3V) to active a relay so a heating pad can be powered on. We have diagnosed all ...
1
vote
4answers
2k views

How to speed up Due ADC

I'm doing a project where in I'm using Arduino Due to measure the time difference of arrival of signals to four piezoelectric sensors. The piezo sensors where glued on a board and we want to localize ...
1
vote
1answer
307 views

Serial write skips on Arduino Due

I bought Feetech SCS09 smart servos (also known as SCS009 or SCS0009). Please note that these servos are not regular PWM servos, they are devices that communicate with board using Serial connection ...
0
votes
1answer
2k views

Recording and playback sound

I'm working in an art project, is some kind of loop between contact microphones and walkie talkies. I want to create some kind of noisy feedback. I'm putting one walkie-talkie inside of a bottle, and ...
0
votes
1answer
359 views

Code flow execution between loop() and timer interrupts

My platform is the Arduino DUE. I know that the timer counts up to a certain value, then generates an interrupt. In the Arduino DUE, you can specify the timer value. In other words, you can specify ...
1
vote
2answers
3k views

Is Arduino Ethernet shield compatible with arduino due?

Arduino Due's operating voltage is 3.3 volt and Ethernet shield operates on 5 volt supply. So my question is that this Ethernet shield will work on an Arduino Due and also if it will not harm the ...
1
vote
1answer
404 views

Arduino Due unable to access library [closed]

I am unable to run code on Arduino Due that I earlier ran on an Arduino Uno. The error indicates it is unable to recognize the library. Could this library access problem be due to difference of the ...
0
votes
2answers
643 views

Reducing noise and finding sampling rate

I have Arduino Due R3 (84MHz) and I am trying to find the mean of value from AnalogRead. I have to set the sampling rate of 8000 samples/second with 4 channels. I tried using for loop for this purpose....
2
votes
1answer
2k 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
499 views

Compilation issues on Arduino Due

I wrote an code on Arduino and I getting compilation errors. I am using Arduino Due . I wrote the following code : void setup() { Serial.begin(9600); analogWriteResolution(12); // set the analog ...
1
vote
3answers
717 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 ...
0
votes
2answers
164 views

Hardware interrupts for buttons not directly assigned to pins

The Adafruit LCD shield offers an LCD and access to 4 button, using only a two wire connection with the Arduino. This is achieved with the MCP23017 I2C port expander IC. These buttons are not ...
4
votes
4answers
3k 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". ...
2
votes
0answers
281 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
1answer
756 views

Arduino Due power supply

I have an Arduino Due. It communicate to the computer with the native usb port. It is also powered by the native port. Anyway, the connected sensors are pretty sensitive to the current, thus I would ...
1
vote
2answers
6k views

How to chooce SDA/SCL pair on Arduino Due ?

On Arduino Due, there is two pairs of pins SDA/SCL that I can use for I2C. There is SDA0 and SCL0 at, respectively, pins 20 and 21 and an another near AREF. How do I choose which one of them I use ?...
2
votes
1answer
9k views

fatal error: avr/io.h: No such file or directory

I'm compiling a project on Due that was working correclty using UNO. I get this error : 'avr/io.h: No such file or directory'. Searching across the web, it seams I'm not the only one to get that error ...
0
votes
2answers
2k views

Arduino DUE samples per second with the DAC

I want to know how many samples per second the arduino due DAC can generate, I need to generate an ultrasonic signal (40Khz), the arduino due is not going to do anything else that generate this ...
0
votes
2answers
170 views

Is the use of malloc() and free() necessary in my Kalman noise Filter function?

I had a code that implements Kalman noise filtering on Arduino, and there is a use of malloc() and free(). I'm wondering if this will affect the Arduino or not (for example, the program will not ...
-1
votes
1answer
1k views

Cannot locate Rx Tx pins on SIM800a GSM module

I recently bought a SIM800a GSM module in India and I am unable to find the Rx Tx pins of the module to make calls using a Arduino duimilanove. The main problem is also that I can't find the data ...
-2
votes
1answer
1k views

Arduino Due DAC pins with 0V

I know the DACs on the Arduino Due only allow for a range of output voltages from 1/6*Vdd to 5/6*Vdd (see here). This suits my needs, for the most part. My question is if it is possible to have 0V on ...
7
votes
2answers
34k 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.
0
votes
2answers
667 views

Arduino Due: enable reentrant interrupt

I'm using the TC3 interrupt on my Arduino Due to run some code periodically, like this: void TC3_Handler() { TC_GetStatus(TC1, 0); // Remove interrupt flag // My code... } However, as I've found ...

1 2 3
4
5
9