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
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=...
1
vote
3answers
164 views

Simple compiler design help: Variable length arrays in Arduino?

I'm trying to write a simple compiler in the Arduino language that I am making up for my lab. The compiler will have to be able to turn a string like this: "do command_one 3 times" into a data ...
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 ...
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 ...
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". ...
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 ...
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 ...
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
1answer
465 views

pushing accelerometer data in packets from an arduino due to the pc and unto processing

I'm quite a newbie to this and I've been struggling for sometime now with my school project, trying to find a way to send accelerometer data from my MMA7361 in data packets, I understand that I have ...
0
votes
3answers
12k views

Simultaneously reading data from multiple serial ports

I have three sensors latched on to three different Arduino devices. The respective Arduino devices are connected on to an Arduino Mega on Serial1, Serial2 and Serial3. The data from each device ...
0
votes
1answer
545 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() { ...
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, ...
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 ...
1
vote
2answers
985 views

Arduino Control over the internet

I am really interested in IoT (enthusiastic noob) and I would like to use the arduino board. Here are the steps according to me, with my queries: User goes to example.com/arduino_switch Interacts ...
1
vote
0answers
98 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 ...
0
votes
1answer
2k views

Arduino Serial.write sending more than 64 bytes

I am using an Arduino Due to collect a large amount of data from an encoder (about 1kb). Afterwards I need to send the collected data to a C# application I wrote over the serial port. I serialized my ...
0
votes
2answers
6k views

Problems uploading sketch to Arduino Due

Windows 7 here. I just bought an Arduino Due and downloaded the Arduino IDE. I wrote a simple "blink LED" program (see below) and am trying to flash it to the Due. When I connected the Due to my ...
0
votes
0answers
991 views

Arduino Due and BNO055

For a physical activity monitoring project, I am developing a prototype based on an Arduino Due and several IMUs (BNO055 from Bosch). I have to collect the data from the sensors simultaneously (3 for ...
0
votes
1answer
2k views

What does this error mean?? Arduino Due loop warning

I am getting this error on compilation of the code given further below; warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations] leds[XY (x, y)].r = redarray[x][y]; ...
0
votes
2answers
2k views

Can all Arduino Due pins be used as digital input/output?

I am using an Arduino Due for a project. I am running out of digital pins, using 22 to 53. Can pins 0 to 13 and SCL1, SDA1 be used as digital inputs? How about analog pins (A0 to A11) and DACs? ...
0
votes
1answer
3k 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 ?...
0
votes
1answer
3k views

Arduino is not responding to a Tiny RTC I2C modules, How to fix?

We have an arduino due with a Tiny RTC I2C module and we're trying to print the current time to the serial monitor. However its not working, currently its printing the time as 2165/165/165 (Monday) ...
0
votes
1answer
254 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 ...