Questions tagged [arduino-due]

The Arduino Due is a micro controller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU.

The Arduino Due is a microcontroller board based on the Atmel SAM3X8E ARM Cortex-M3 CPU.

Unlike the "original" Arduinos it is not based on the 8-bit AVRs but on an 32-bit ARM Cortex. It has 54 digital input/output pins (of which 12 can be used as PWM outputs), 12 analog inputs, 4 UARTs (hardware serial ports), a 84 MHz clock, an USB OTG capable connection, 2 DAC (digital to analog), 2 TWI, a power jack, an SPI header, a JTAG header, a reset button and an erase button.

It runs on 3.3 V instead of 5 V. It has significantly higher computational power both due to the higer clock frequency as well as due to the bigger word width. In addition it has more memory 96k SRAM and 512k Flash. However it lacks any EEPROM. Also its current consumption is higher as compared to the AVR cores.

An overview can be found on the official Arduino Due pages. The official pages also provide schematic and board layout information.

90 questions
1
vote
1 answer

setting right ADC prescaler on the Arduino Due in timer and interrupt driven multi-channel ADC acquisition

I am trying to follow, adapt, understand (and clean up a bit) a variation around the code available there, for the Arduino Due: https://forum.arduino.cc/index.php?topic=589213.0 . I do not like the forum format, as things end up buried deep, so…
Zorglub29
  • 6,979
  • 6
  • 20
  • 37
1
vote
1 answer

How to edit library to use with Arduino DUE?

I want to add Arduino DUE in this code. // Arduino Uno, Duemilanove, LilyPad, etc // #elif defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) #define ALTSS_USE_TIMER1 #define INPUT_CAPTURE_PIN 8 // receive #define…
77ay
  • 13
  • 3
1
vote
4 answers

Convert "String" above 255 to exact "Integer" or "Long" type in Arduino IDE

Appreciate your time. I am trying to convert "String" read from serial port in serialEvent() of Arduino IDE to integer values with exact representation. For eg, if String myString = 200 then int myInt should be 200. I have been somewhat successful…
Abstract123
  • 67
  • 1
  • 8
1
vote
1 answer

Setting up the ATSAM3X8E on Arduino Due for SPI Slave Operation

I'm trying to build up a communication between Raspberry Pi 3B+ and Arduino Due via SPI. I have chosen the Raspberry Pi to act as master and the Arduino as slave. Therefore I have written some C Code for the Raspberry that configurates the interface…
1
vote
1 answer

Data sent through serial on arduino gets byte-shifted sometimes

I'm sending data through USART on an Arduino Due. I'm currently filling a buffer so the data gets sent just when a buffer is full. The data I'm putting into the buffer is a lookup table of different wave shapes with 12 bits of depth (values from 0…
1
vote
1 answer

How i write multiple float data to Arduino from Rpi as master via i2c?

I read many post how Rpi receives float data via Arduino via i2c, with Rpi as master. But i need write floats values to arduino and i don't found any example. I want to use python smbus. Any one have a example? Thanks a lot!
1
vote
0 answers

Qt Serial with Arduino Due Native USB port and Bluetooth NR 42 configuring through Xbee explorer

I am trying to make an application in Qt to configure a bluetooth module RN42 http://ww1.microchip.com/downloads/en/DeviceDoc/rn-42-ds-v2.32r.pdf . In order to configure the module some command have to be sent via serial port, but here is where the…
1
vote
0 answers

Arduino Due RF24 SPI not working

I want to connect RF24 to the Arduino Due, but it's not working correctly. Arduino Due board runs at 3.3, so I need to use a logic level converter because the RF24 pins are using 5v except for Vcc(3.3v). I connect the MISO/MOSI/SCK to the ICSP…
lmaw
  • 23
  • 4
1
vote
1 answer

Serial port on C#, read until a byte sequence

I have a stream of data from a COM port. This stream is composed of sets of 30 bytes. The first 26 bytes are the information and the last four is a set of 0xFFF. For example, a set of array is [0xFF,0x5A,0x44,0x15,...,0x5F,0xFF,0xFF,0xFF,0xFF]. In…
youngz
  • 179
  • 2
  • 16
1
vote
1 answer

Strange behaviour when communicating over serial from VS WPF to Arduino

A basic overview. I am sending serial data from an Arduino Due to WPF application. Up until now this has all been working perfectly. Today I implemented a loop into the Arduino code that looks for a "Y" (ascii 89) in the serial port, if received it…
charley
  • 87
  • 4
  • 17
1
vote
2 answers

Why do I need to change the Baudrate after I send a Reset to the ESP8266?

So I have succesfully attached a Esp8266 to an Arduino Due. I can communicate with it via Serial Monitor if I choose the Baudrate to be 74880. Then all the commands come to it correctly and can be read back correctly. However, when I send the…
Kev1n91
  • 3,553
  • 8
  • 46
  • 96
1
vote
2 answers

Serial.Read in the setup of an Arduino code?

Is it possible to perform a Serial.Read in the Setup area of an Arduino code? I need my main loop to be fast and don't want it to be slowed down by a piece of code that only has to run once.
1
vote
1 answer

Arduino Due manipulate registers SAM3X8E

This is no code question. Does using an Arduino mean, we are all set and you just use an already existing lib and put the code together? I do not think so and therefore want to apply my c-programming skills and manipulate registers, as learned in…
john s.
  • 476
  • 9
  • 21
1
vote
1 answer

Arduino Due Timer crash

I am trying to read an analog input (A0) with a speed of 10KHz, using the library Due Timer, but, when I increase the value of the vector it crashs, the goal is to use the vector in a FFT analysis with a 5000 size vector. I have tried to work…
John
  • 11
  • 1
1
vote
0 answers

Arduino 1.6.5 Error compiling - avr-g++: error: CreateProcess: No such file or directory Error compiling

Situation: Arduino 1.6.5 have Error in compiling examples code "01.Basics/Blink" Verify the sketch without changing any coding, however shows following error What i have tried BUT doesn't work: 1) Go thru…
kin
  • 67
  • 4
  • 12