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.

0
votes
0answers
16 views

Programfault when dereferencing a 64bit int on due

I am running into a strange behaviour with my code. The following works without problems on an Arduino Nano but it seems to crash on a DUE void putData64(byte* packet, int pos, uint64_t data) { ...
0
votes
0answers
20 views

Help Connecting Lidar sensor over SPI to arduino Due?

I'm very new to Arduino and have never used the SPI protocol before. I've tried following tutorials online, but my SPI.transfer always returns a value of 255 whether the sensor is connected or not. ...
0
votes
1answer
703 views

analogWrite(DAC0, X), Analog voltage on DAC0 pin is higher for lower X value - is this normal?

I am using an Arduino DUE. Using the analogWrite(DAC0, X) command I am writing an analog value to this pin. X = 0 - 255 as I understand it. I am observing that when X is lower, the voltage on DAC0 ...
0
votes
1answer
164 views

Triggering an SPI transfer with an interrupt in Arduino Due

I have a DDS that is controlled by an Arduino DUE, loop() waits for Serial commands and based on them calls one or another function that sets the DDS's frequency, phase, amplitude etc via SPI. In ...
-1
votes
2answers
53 views

Problem of repetition

I have encountered a problem concerning the repetition of the program that means it executes once (since the sensor passes to 1 it calculates 5 seconds (the sensor is still at 1) after the lamp is lit)...
0
votes
0answers
23 views

BLUETOOTH MODULES Arduino

I am new to the world of electronics so please forgive me if I ask stupid questions. I would like to ask if there is a difference between Bluetooth Modules that state: "for Arduino" as well as those ...
0
votes
3answers
879 views

Converting Random Binary Data to PWM Signal

I am using a Arduino Due. I am doing a project on Visible Light Communication. I need to convert a binary data into a PWM Signal. Can anyone suggest me a method of generating that PWM Signal based on ...
0
votes
0answers
30 views

Arduino Due function Can0.available()

In the example of CAN_SendingTest I just put some println and It seems that the function Can0.available() isn't working (return 0 all the time), the sending frames works (returning 1), and I don't ...
0
votes
0answers
29 views

Is it possible to record data from an input while simultaneosly running other output code [closed]

I have code to generate a specific output. The input data occurs while the code is running to create the output. The input is based on the output. is there anyway I could delay the analog input data ...
0
votes
0answers
23 views

Arduino_Debug doesn't successfully upload sketch to Arduino if JAVA is not installed

I use arduino_debug to upload my sketch to an Arduino Mega 2560 and to an Arduino Due from my application (Windows). I saw the following issue: When JAVA is not installed or it was installed only ...
0
votes
1answer
54 views

Output set to 'low' when new variable in buffer

I would like to turn on and off the output of two pins on my arduino independently from each other. However, so far all my attempts have failed. My current idea is to save the status (which I chose ...
0
votes
1answer
529 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 ...
0
votes
1answer
55 views

Digital map in A* search algorithm in Arduino [closed]

I am building an Automated Guided Vehicle as my graduation project. I'm new to path-finding algorithms and I've only worked with small projects based on Arduino as of now. I've chosen A* search after ...
0
votes
1answer
607 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 ...
0
votes
0answers
13 views

SIM800L save message to draft in sim memory

I want to save some data in sim memory as draft message and later read it. I am Using Arduino DUE and SIM800L Basically my main target is to keep in check the total uptime(approximate, error of upto 2-...
0
votes
4answers
3k views

Programming Arduino in Pascal?

My question is simple: there is any Pascal or Pascal-class (FPC, Delphi, mikroPascal) programming language for Arduino? Preferably (I hope I don't ask too much) that language should not be older ...
0
votes
0answers
25 views

Arduino Due Atmel IC heats up

When i tried powering the board the Atmel IC heats up and led goes of after a second .the board does not get detected on my IDE software . 1) I have tried out finding the issues with the board and ...
1
vote
1answer
251 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 ...
0
votes
0answers
44 views

Reasons Flash Page is Locked Due

Using the Arduino Due on a project, I have found that I commonly run into the issue Flash Page is Locked when attempting to upload. I have used the library write functions of DueFlashStorage that ...
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 ...
0
votes
0answers
38 views

Problem I²C Communication between Arduinos

My Problem seems to be that my I²C slave randomly disconnects. I have an Arduino Due communicating with a Arduino Chestnut board (bought hardware). I now measure data with the Due and then send the ...
0
votes
1answer
42 views

timer library on Arduino DUE

I'm trying to call an interrupt routine (let's call it handler() ) every second on my arduino DUE. I thought the simplest way to do this was to use this library but it seems that i don't know how to ...
0
votes
0answers
21 views

Arduino Due Custom Clock Output

I have Arduino Due, and I want it to output clock at 3.072MHz (which is a clock rate used for I2S) How do I go about this? I tried the following code, but it doesn't give the exact rate, and I ...
0
votes
0answers
21 views

Bool function for color variables

I am new of using Arduino. I have seen code for color variables that has uses bool function. Is there anyone who can say me how this function connect to the colors of RGB LED matrix? This code has ...
0
votes
1answer
127 views

Issues with I2C and Wire.Available()

I am working on a project which requires communication from an Arduino Due (Master) and an FDC2214Q1 C to D IC (Slave), but there is some variability as to whether the code works or not depending on ...
1
vote
0answers
44 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
3answers
382 views

Why does my LED turn off automatically after about 18 seconds on its own?

I am using the Arduino Due and I am programming it with Atmel Studio 6.2. I have had a HUGE learning curve using this IDE and the Atmel ASF. Nothing is straightforward as it is in the Arduino IDE. ...
0
votes
0answers
50 views

AD7606 DAQ and datalogging

I'm making a Data Acquisition System for force impact usign an AD7606 from Analog Devices, an Arduino DUE and a load cell. I already tested it following this guide an making the proper changes for ...
0
votes
1answer
1k 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=...
0
votes
1answer
149 views

Arduino Uno: avrdude: stk500_recv(): programmer is not responding

I have an original Arduino Uno board purchased directly from the official arduino website. I have used it successfully with IDE v1.8.5 on my Windows 10 laptop for various projects in the last 6 months....
0
votes
0answers
80 views

Arduino Due, MCP2515, SPI and CAN message

I use Vector network to send CAN messages to MCP2515 through CAN HIGH and CAN LOW lines. I connect MCP2515 with Arduino Due through SPI protocol. Connections are good. But I receive "not acknowledge ...
0
votes
2answers
67 views

Analog vs Digital Accelerometers - pro's and con's? [closed]

For my project i need to measure accelerations up to 16g. My options are either digital accelerometers such as the MPU6050 or MPU9250 or an analog accelerometer such as the ADXL326. What are any ...
0
votes
3answers
2k 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 ...
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 ...
1
vote
2answers
629 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: ...
1
vote
1answer
205 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
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
votes
2answers
1k 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
1answer
49 views

Error with Sparkfun MP3 Shield and Arduino Due playing music files

The code worked on my Ardino Uno. I plugged it up the exact same way and am now getting an error. Here is the error I get when I try to upload my code to the due: Arduino: 1.8.5 (Windows 10), Board: ...
1
vote
2answers
47 views

Most efficent way to adjust value

I am working on a system that starts a process based of a set time value (startHour). The user sets the start hour and can only select values from 00-23. I have been asked to start the same process at ...
1
vote
0answers
976 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 ...
0
votes
2answers
874 views

LCD not displaying text

I am working with an Arduino due and currently using the Arduino liquid crystal library to display data on an LCD screen (mc42004A6wk-bnmlw) which uses the Hitachi HD44780 controller. The LCD has been ...
1
vote
4answers
261 views

How to package a 16 bit integer to send it with serial.write?

I am trying to display the values i get from reading a potentiometer (0-1023) in the program called 'processing'. when I just use Serial.write(integer) and display the value on a line graph in '...
0
votes
2answers
86 views

Porting the FastNoise c++ library to Due

I'm trying to use the FastNoise library with a Due, however, I get something like the following errors, when I try to complie. error: 'abs' was not declared in this scope error: 'mt19937' is not a ...
0
votes
1answer
136 views

Trouble configuring Arduino Due SPI to ADC

I am having trouble configuring Arduino Due SPI to an AD7490 ADC. Here is how I have the pins connected: +3.3V > 7490 pin 22 Vin +3.3V > 7490 Vref DUE CS (8) > 7490 pin 20 SS - slave select) DUE ...
3
votes
1answer
191 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 ...
1
vote
1answer
152 views

16 bit SPI on Arduino Due

I'm trying to control AD7091-8 using Arduino Due. This IC calls for 16 bit SPI R/W. I'd read that I can change the transmit and receive bits of Arduino DUE by changing a register (bits 4-7 of SPI_CSR)...
0
votes
1answer
75 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 "...
1
vote
1answer
2k 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 ...
2
votes
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 ...