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

Variable sets to 32767 - MATLAB Arduino

I am running out of ideas of what may be causing this problem, and I would appreciate some help identifying anything I am overlooking. Quick Problem Summary A variable gets set to 32767 quite often ...
1
vote
0answers
111 views

Arduino Due: Measuring the time between pulses

I have a 'pulse train' generated from a photo interrupter and slotted disc mounted on a rotating shaft. My goal is to measure the time between each rising edge. I have looked at the data sheet for ...
0
votes
1answer
77 views

Running many devices on 5V pin. How to provide external power

I'm using my Arduino DUE 5V pin to power a lot of sensors and I'm worried about the drop in current. I'm powering the board using the USB port. Is this the correct way or is there a different way of ...
1
vote
0answers
59 views

No Device Found On Bare-bones SAM3X Chip

0 I've been trying to make my own board with a SAM3X and W5500 (Arduino Ethernet Shield) on it with those two chips connected via SPI. From the Arduino Due Board, most of the stuff, we don't need. ...
0
votes
1answer
138 views

How to decrease delay for String concatenation + Arduino Due

In my project I need to add a delimiter between integer numbers. In the following code. I add a "," between integer numbers obtained from inputsig matrix. The problem is that concatenation of these ...
1
vote
0answers
290 views

pin change interrupt on arduino Due

Greeting! I am finding it difficult setting up a pin change interrupt on an arm board ( I am using Arduino due). I found a sample online which I have used but I discovered that when ever an interrupt ...
1
vote
1answer
548 views

Motor with sinusoidal motion

I need to run a motor to have a harmonic motion with specified amplitude and frequency ( harmonic motion mean that the angular position of the motor is a sine function of the time). I’m Looking to do ...
0
votes
1answer
398 views

Does MFRC522 supports native SPI of Arduino Due?

Does MFRC522 library support native SPI interface of Arduino Due? By native SPI I mean this one: I came here with this question because the initializer asks for 2 pins: SS and Reset: MFRC522(byte ...
0
votes
2answers
1k views

Serial.availableForWrite versus Serial.flush

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

Soft wdt reset error on NodeMCU (ESP8266)

I am getting error on Serial monitor Soft WDT reset. I decoded the error code also and found the following stacktrace. I am using SIM808 module and DFRobot_sim808 as the library. 0x4010030d: millis ...
0
votes
1answer
50 views

Which Arduino-compatible microcontroller for 2 continuous analog audio recording and 2 digital pin snapshots every second?

Apologies if the title is not very well worded. I'm new to electronics and trying to learn more about embedded systems too. I have a small project that requires recording an analog audio input at 8-...
1
vote
0answers
46 views

Voice receiver arduino

I have the following situation. I would like to develop a bracelet prototype that identifies when a person is on the go and also issue a question to the person for that bracelet and get an ...
-1
votes
1answer
2k 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 ...
-2
votes
1answer
3k views

Only getting error from ESP8266 AT commands

I am trying to get the ESP8266 work with Arduino AT commands. I am using the due. How do I get the ESP8266 to respond with anything other than ERROR? Here is the current serial output: AT ERROR ...
1
vote
0answers
233 views

Programming Arduino for Mindflex

I am learning brain wave programming from Tinkernut tutorial. #include <IRremote.h> #include <IRremoteInt.h> #include <Brain.h> IRsend irsend; Brain brain(Serial); const int ledPin ...
1
vote
0answers
267 views

First recieved packet not displayed (Arduino with MRF24j40MA)

I'm trying to make two Arduino cards communicate, one is a sender and the other only receive packet from the first one and then display them. My problem is that the first recieved packet is not ...
1
vote
0answers
117 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 ...
0
votes
1answer
43 views

Arduino Due Digital Inputs without Response

On two of my Arduino Due, when connecting the pin 3.3V to any digital inputs (37,36,35,34), no serial message nor LED_BUILTIN is thrown as output, only the Test message. Digital Pins are set as ...
0
votes
0answers
117 views

Arduino Due ADXL345 Interference

I am working with an Arduino Due and the Analog ADXL345 through a module following this tutorial, with the wire.h library at Fast Speed (400kHz), the Accelerometer Sampling at 800Hz (for the Maximum ...
0
votes
0answers
103 views

WiFiServer Stops After Reconnection to WiFi

In the following code, the Arduino is reconnecting to the WiFi after several loops. The idea is to check and re-establish WiFi connection every 30 minutes or so. However, the WiFiServer seems to ...
1
vote
1answer
1k views

Faster Arduino Mega

I am using Arduino Mega 2560 for interfacing devices such as the Maxim MAX22500E and TI ADS1241. Now I am requiring more speed for hopefully the same coding, and I am thinking in the Arduino Due (84 ...
2
votes
1answer
148 views

Arduino DUE and 5V logic sensor?

For an application I use Arduino DUE and VNH2SP30 as the motor driver.I think this motor drive is only compatible with 5V logic but DUE provide 3.3V logic.Will my problem be solved if I use logic ...
1
vote
1answer
737 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 ...
0
votes
1answer
64 views

Why the global variables info is not shown for Arduino Due in IDE?

If I compile a sketch for the Arduino Mega: Sketch uses 1804 bytes (0%) of program storage space. Maximum is 253952 bytes. Global variables use 188 bytes (2%) of dynamic memory, leaving 8004 bytes ...
1
vote
0answers
447 views

HM-10 and Arduino Due

I am trying to communicate between HM-10 module (without any breadboard or soldering) and experience problem with reading data from serial. Here is the code: #define TO_HEX(i) (i <= 9 ? '0' + i : ...
1
vote
0answers
344 views

Due as USB Host timing issues

I own a UDOO Quad board which features two CPUs (SAM3X8E like Arduino Due and a ARM Cortex-A9) connected with an internal OTG USB. I am trying literally for months to use the USB Host Shield Library ...
1
vote
0answers
65 views

Combining ADC IRQ with SPI peripherals results in SPI not working

I'm working on a pet project that requires ADC, SD card (SPI interface, SdFat library) and a display in the future (also SPI). I have put together a piece of code that initializes ADC at the highest ...
2
votes
2answers
951 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: ...
2
votes
0answers
556 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] ...
0
votes
2answers
780 views

Code compatibility with Arduino Due

I am currently working on a quadcopter project that involves an MPU6050 accelerometer+gyroscope module, an ultrasonic sensor and control of electronic speed controllers. I have used existing examples ...
2
votes
0answers
86 views

Bug read an image from SD card and draw it on TFT

I have developed a code to read an image stored on my SD Card and display it on a TFT. I can read the image from the SD Card successfully but I cannot draw it on the TFT. I dunno where is the bug. ...
2
votes
0answers
3k 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 ...
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 ...
1
vote
0answers
279 views

Reading data by port manipulation (Arduino Due)

I have shorted the 23rd pin of port A with 3.3v output pin (i.e. tieing 23rd pin of port A to logic high). Now I am trying to read the 23rd pin of port A by using following code- void setup() { ...
2
votes
0answers
387 views

Series of µsec pulse generation using Arduino Due

I'm working on a project in which I need a series of very accurate pulses containing 2 shots in every pulse. The pulse should have 100µsec on time followed by 300ms off time. But when I'm programming ...
0
votes
1answer
32 views

What type of power supply is the Arduino Due’s 5v pin and what is its current?

I’m looking to use a Futaba Servo with my arduino Due and was told it requires a “high current 5 volt supply” and I don’t know much about current so excuse my arrogance. I know the arduino Due has a 5 ...
3
votes
0answers
1k views

Interfacing WM8731 code to Arduino Due

WM8731 codec was successfully interfaced with Atmega328 like variants in Arduino. It was first done successfully by Open music labs who are the makers of the breakout board for WM8731. Taking this ...
2
votes
0answers
111 views

Reading Reveive Hold Register from USART in SPI Mode on Arduino Due

Sending with this function here works fine: uint16_t usart0spiTransfer16(uint16_t spiMessage16) { uint16_t sdo = 0; byte firstByte = spiMessage16; byte secondByte = (spiMessage16 >> ...
1
vote
1answer
63 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) { ...
1
vote
0answers
218 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
1k 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
60 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)...
1
vote
0answers
35 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
1k 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 ...
1
vote
0answers
80 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
64 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
428 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
4answers
4k 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 ...
1
vote
0answers
36 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
356 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 ...

1 2
3
4 5
9