Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
26 views

Code uploads to Due and fails to execute but runs on Redboard

I have run into this issue where my code will upload to my Due but fails to execute. I have verified the code works on a SparkFun Redboard. The only code difference is that the SPI pin assignments ...
Ender's user avatar
  • 11
1 vote
1 answer
169 views

Arduino native USB port and Simulink [closed]

I am trying to communicate through the native USB port of the Arduino Due with a PC. The native port itself works, I have tested this. The problem is, that every time I upload my Simulink model via ...
Lemonbonbon's user avatar
1 vote
1 answer
231 views

Can Arduino Due be programmed with both USB ports connected?

It seems, due SAM-BA (SAM Boot Assistant) inside ATSAM3X8E being listening to both Native USB and UART USB ports after a Reset for programming, allowing talking with SAM-BA, this time from your PC, ...
Brethlosze's user avatar
1 vote
1 answer
210 views

Dealing with USB Unplugging?

The following code, debugs SerialUSB Native Port, plugged to a PC, and connected through a Terminal Monitor (such as Termite, with any bps, 8N1, RTS/CTS). At start, the ports seeks for communication, ...
Brethlosze's user avatar
2 votes
1 answer
337 views

Reset a UART connection on a Due

I have a system that involves an Arduino Due connected to a Raspi 4 through UART in which the Due sends a heartbeat signal over UART for the pi to receive and send back as confirmation. One of the ...
Andrew Euredjian's user avatar
1 vote
0 answers
673 views

How to access native USB port of Arduino Due on Synology NAS?

I would like to flash my Arduino Due from my Synology DS218+ NAS which runs on an Intel 64bit Linux-derivate platform. Previously, I was able to flash a Mega 2560 from this NAS via avrdude and ...
fredlcore's user avatar
0 votes
2 answers
601 views

Interfacing Arduino with Python Serial

I am implementing an FIR filter using Arduino. I am using an input signal as an audio signal. The audio signal has a duration of 3 seconds with total samples, 66150. What I am doing is reading this ...
Asad Sultan's user avatar
1 vote
0 answers
136 views

Arduino Due 9-bit serial - Can core Due Libraries be modified to get this functionality similar to Mega and Uno?

Need help to see if I can get an Arduino due to receive and send 9-bit com as already implemented on AVRs like Uno, Mega and even teensy boards, by modifying hardware serial cores. Have not found any ...
Manny2574's user avatar
0 votes
2 answers
4k views

Serial.availableForWrite versus Serial.flush

Is there a difference between the following two line codes? while (Serial.availableForWrite <= 0) {} versus Serial.flush() Thanks!
user135172's user avatar
1 vote
1 answer
1k views

Arduino communication protocol with python - beyond pyserial and Arduino example

TL;DR does someone know of a advance and reliable/redudent USB protocol for communicating between a raspberry pi and Arduino due (native port) I am trying to learn how to build a little robot which I ...
will.mendil's user avatar
1 vote
1 answer
286 views

Arduino and Processing Call and response not working

I have been trying to develop a connection from the arduino IDE to Processing so I can send data measured on the arduino Pins to processing to display. I first packaged the 10-bit integers I was ...
Tom's user avatar
  • 59
0 votes
1 answer
3k 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 ...
tyler a's user avatar
  • 73
0 votes
1 answer
142 views

MAX232 chip fails to initialize properly with arduino

I have connected a MAX232 chip for RS232 communication with my Arduino. The chip input is connected to Arduino Tx and it is getting power from external 3.3 volt dc power source. My Arduino is also ...
Moithil Biswas's user avatar
0 votes
1 answer
985 views

Utilizing two different serial ports simultaneously on a due

I am trying to understand how the serial ports are configured on the due board. Please correct me if i'm wrong, but to my understanding, the due has: Four separate serial ports ("serial", and "serial ...
Erik's user avatar
  • 261
0 votes
1 answer
501 views

Arduino Due & Spec gas sensor - how to choose specific information from a stream of incoming bytes to store

I'm trying to build an air pollution sensor for a college project, with an Arduino Due and a series of Spec Sensors digital gas detectors. However, I'm having a little trouble getting the first one of ...
Gala Pagois's user avatar
0 votes
1 answer
117 views

Using digital pins 0/1 on Arduino Due when writing/reading over serialUSB port

I am aware that you cannot use pins 0 and 1 as digital pinouts when communicating over serial via serial.print(), but what if you are using the native port on the due with serialUSB.write()? Thanks
WhiteSpin's user avatar
1 vote
1 answer
121 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)...
Cactus's user avatar
  • 229
1 vote
6 answers
6k 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 ...
mr-matt's user avatar
  • 147
2 votes
2 answers
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 ...
cpoole's user avatar
  • 51
1 vote
1 answer
405 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 ...
Sergey Kravchenko's user avatar
2 votes
0 answers
596 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 ...
youngz's user avatar
  • 33
0 votes
2 answers
5k 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 ...
Francesco Pegoraro's user avatar
0 votes
1 answer
2k 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 ...
user1649972's user avatar
0 votes
1 answer
746 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 ...
William Roy's user avatar
1 vote
1 answer
5k 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 (...
Remy Grandin's user avatar
1 vote
2 answers
2k 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 ...
Andrew's user avatar
  • 107
2 votes
0 answers
4k 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 ...
Andrew's user avatar
  • 107
4 votes
0 answers
716 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] ...
Chuchaki's user avatar
  • 141
6 votes
1 answer
46k 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 ...
Metamorphic's user avatar
2 votes
1 answer
297 views

Is it possible to run 2 functions, that communicate with 2 different serial devices, in parallel using FreeRtos library?

This might seem like a very broad question but that's what i want it to be for multiple ways of implementation. I've an Arduino UNO communicating with 2 Serial devices interfaced using SoftwareSerial ...
Kushal Kumar's user avatar
0 votes
1 answer
3k views

Two or More Arduinos Handshaking

research would show that there are numerous ways for two arduinos to talk to one another. But i was looking for a 'basic robust protocol' (..it doesn't sound basic ....I know!), to allow for two ...
dada's user avatar
  • 127
1 vote
1 answer
687 views

How to disable the write protection of the USART mode register?

I have a device which transmits USART with inverted polarity, and I would like to read data from it with the help of an Arduino. I use an Arduino Due, which has a SAM3X processor, so it should be able ...
vsz's user avatar
  • 149
0 votes
3 answers
2k views

Serial Monitor not displaying anything

I have a very basic script that is supposed to display something to the serial monitor but no matter what I try the serial monitor won't display anything...I;ve watched about 5 tutorials now and each ...
mr-matt's user avatar
  • 147
0 votes
3 answers
18k 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 ...
dada's user avatar
  • 127
7 votes
1 answer
594 views

On Arduino Due webserver, there is a 5 second delay on Windows, only when connected via native port

My Due webserver was working perfectly fine for months when connected to Linux via the native port. But when connected to Windows 10 via the native port, if the Arduino webserver is idle for about 5 ...
Jerry's user avatar
  • 533
3 votes
1 answer
16k views

Graph plotting on Python using Tkinter Canvas

I'm trying to plot a graph with python using the canvas widget, I'm currently sending data in from an arduino sensor sketch ..does anyone have an idea on how I can plot this graph in real time on ...
dada's user avatar
  • 127
1 vote
1 answer
4k views

Graph plotting on Processing from Arduino sensor data

I am trying to plot a graph on processing but I'm having challenges going about it. The processing sketch below does work for plotting only one axis, and I'm trying to plot all three axis on the same ...
dada's user avatar
  • 127
0 votes
1 answer
1k views

Why does Arduino Due Native Port change serial ports after every reset? (Linux)

Previously I had my Due connected via Programming Port for weeks, and it never changed serial ports after pressing the reset button. Recently I switched to having it connected via the Native Port ...
Jerry's user avatar
  • 533
2 votes
0 answers
138 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 ...
kwiecien's user avatar
0 votes
1 answer
3k views

arduino due-Python interfacing for high speed data rate

Four our project, I want to send data mesured by an Arduino due to a computer via Pyton very vast. So I tried to make a simple benchmark by sending 10240 int datas to determine the time it take. In ...
Dubois Jérôme's user avatar
1 vote
1 answer
3k 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 ...
user avatar
0 votes
1 answer
84 views

Wrong code ouput, when the specific function runs more than once

If I run the following code, I get the correct output, and the path is displayed on the serial monitor. However when I run the code together with the commented out portion (in the code below) I don't ...
Muhammad Faique Shakeel's user avatar
1 vote
0 answers
1k 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 ...
BunkSB's user avatar
  • 61
2 votes
1 answer
785 views

What protocols and tools does Arduino Due use for flashing and debugging?

I am interested in writing a simple C program outside of the Arduino IDE and respective libraries, but deploying it directly to an Arduino Due (which uses a SAM3X8E ARM MCU). I am trying to figure out ...
smeeb's user avatar
  • 509
2 votes
0 answers
569 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 ...
ph1ash's user avatar
  • 21
1 vote
1 answer
549 views

Has anyone used an Arduino to transfer software to an Apple IIe?

Yes, you read that right. An Apple IIe. I have many retro computers and I was thinking that since the Apple II line of computers (especially the IIe) have pretty speedy serial ports that it should ...
cbmeeks's user avatar
  • 247
0 votes
2 answers
755 views

Is the used clock for the Baudrate generator adjustable on an arduino due?

I hope to find some answers or pointers to a boggling task of mine: Having an Arduino DUE that I want to push to its serial limits, I came up with the idea of hooking it up to my rPi via serial at ...
Jook's user avatar
  • 101
6 votes
1 answer
9k views

References (e.g, libraries and tutorials) for connecting the 24-bit ADS1256 ADC to arduino

The ADS1256 chip is a high precision 24bit, 8 channel, analog digital converter based on SPI communication that is suitable for biomedical applications and perfect for sensing ECG and EEG signals. I ...
mrsteve's user avatar
  • 181
0 votes
2 answers
660 views

Parse data from sensor without delimeters

Im using a variant of Arduino Due embedded on a ARM (Udoo). And I have connected a Medlab SPO2 Pearl 200 sensor to Serial1. Im just trying to parse input from Serial1 to Serial, in a human-readable ...
Christian Gil's user avatar
3 votes
2 answers
10k views

SerialEvent handling when using multiple serial ports

I would like to use multiple (three) serial ports on an Arduino Due. Instead of polling the ports continuously, I would like to use a Serial.Event function for each of the ports. These handler ...
hobie's user avatar
  • 487