Stack Exchange Network

Stack Exchange network consists of 174 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
46 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 ...
0
votes
0answers
18 views

what kind of motor works best with the TransistorMotorControl tutorial?

What kind of motor should I get if I want to follow the tutorial at https://www.arduino.cc/en/Tutorial/TransistorMotorControl I tried getting a uxcell a12122600ux0382 8000RPM 9V 68mA High Torque ...
0
votes
1answer
67 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 "...
0
votes
1answer
34 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
0answers
48 views

Reading data from differential pressure sensor(pitot tube)

I am trying to read data from differential pressure sensor to calculate wind speed using arduino DUE. The sensor that i used is MPXV7002DP. I tried different methods and i didn't handle the right ...
0
votes
1answer
11 views

ESP8266EX along with Arduino Due rev3 to check wifi status

Hi i am using ESP8266EX along with Arduino Due rev3 to check wifi status. when i compile my following sketch compiler give me error User\Awais\Document\Arduino\liberaries\espsoftserialmaster\...
0
votes
0answers
32 views

Stack Trace Arduino Due

Is there a way to capture the reset reason on an Arduino Due? I would like to print this to the serial monitor and save it to an SD card log on reboot. I haven't been able to find anything in the ...
0
votes
1answer
46 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
0answers
31 views

Stop phone charging using Arduino

I am developing an automated test tool for Android phones. For this, I need to know how to stop the charging capability of android phones whenever it is connected to the PC via USB. I need to do this ...
0
votes
1answer
32 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 ...
0
votes
2answers
168 views

How to give an analog output of 0-5V

I'm trying to program an Arduino to control a motor at different intensities by giving a 0-5V reference value from the board. I have some programming experience, but have very little knowledge of ...
0
votes
0answers
61 views

Using ICSP header for SPI extension in Arduino DUE

I'm trying to connect a sensor and a TFT display to the hardware SPI pins of Arduino DUE using the concept of extended SPI. The TFT and sensor need the SPI's MISO,MOSI AND SCK pins commonly. But for ...
-2
votes
1answer
33 views

ssPin, resetPin, updatePin, ps0, ps1, osk - was not declared in this scope

The code below produces the error: ssPin was not declared in this scope This error is repeated for all elements of DDS, i.e. ssPin, resetPin, updatePin, ps0, ps1 and osk Can anyone spot the ...
0
votes
0answers
26 views

Connecting Arduino with GPS receiver

I have the components as shown and I installed the TinyGPS library. I'm pretty new to hardware stuff and I'm not sure if these wires would work? (pins on both sides) The GPS module has 5 pins - GND,...
0
votes
0answers
69 views

Blink example compilation error

I just installed the Arduino IDE on Mac and connected the programming port to my Arduino Due. I selected the corresponding board from Tools (though not sure which ATMEL programmer I should choose) I ...
0
votes
1answer
210 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
32 views

Pyserial doesn't receive serial data from arduino

I have the following python script: #!/usr/bin/python import serial # import syslog import time #The following line is for serial over GPIO usb_ports = ('COM3') s = serial.Serial(usb_ports) print("...
0
votes
1answer
54 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 ...
0
votes
0answers
53 views

Adding timestamp to data from ADC (Arduino DUE)

I want to read voltages from a resistor and I am using stimmer's method to get 1Msps from the Arduino Due Code can be found here: https://gist.github.com/pklaus/5921022 I just don't really get how I ...
4
votes
2answers
84 views

FastLed LED Strip Output Checksum

I am wondering if anyone has ever connected the output of their LED strip back to the Arduino to read and make sure the strip is functioning correctly, kinda like checksum functionality. I am using ...
0
votes
0answers
26 views

Decimal missing when data is send between UNO and DUE

Members, The DUE send a request aprox every second for data. How can the program be modified to read 1,2 or even 3 digits? Thanks Code running on the Uno: // SimpleRxAckPayload- the slave or the ...
0
votes
1answer
52 views

Rc receiver giving wrong values when controlling servo

So I'm building a helicopter. That why I need a receiver (tgy 9x) to read the values from my controller. Those values get passed to my Arduino due where some calculation happen and then get sent to ...
0
votes
2answers
81 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 ...
-2
votes
1answer
56 views

USB reset fails on arduino due because of 5v on digital pins

I have the signal channels of four 5v magnetic encoders connected directly to the digital pins of the arduino due. I am aware that this is not allowed according to the specification which says that ...
0
votes
1answer
57 views

Digital Pins reads 1 when configured with internal_pullup

I work with Arduino DUE. I would like to configure few of my digital pins as INPUT pins. When the µc sets these particular 4 pins , the DUE must be activated. Something like a DATAREADY pin in the SPI,...
1
vote
0answers
28 views

Arduino Due board disappears after some time

I installed an Arduino Due board from the boards manager without any problem and successfully uploaded my sketch to the board. I turned off my PC and the next day I came and saw that there is no "Due"...
0
votes
0answers
37 views

Automatically detect and address module voltage on board on 3v board

Let's say I have the objective to simplify project assembly, for kids, perhaps. I have three requirements: Use industrial made, and readily available boards and modules. No development here. Extend ...
1
vote
0answers
115 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
2answers
320 views

Using Due (SAM3X8E) native USB port for programming?

I would like to make my own version of the Arduino Due. What I can't find the answer to is; Can I program a blank SAM3X8E using the native USB port from within the Arduino IDE, or do I first need to ...
0
votes
1answer
97 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 ...
0
votes
1answer
56 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
-1
votes
1answer
95 views

Only getting error from ESP8266 AT commands Ask Question

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 ...
0
votes
0answers
264 views

Arduino DUE as slave in SPI

This is continuous from this forum: http://www.avrfreaks.net/forum/spi-between-atmega-and-arduino-due My question, my master is an ATmega microcontroller working at 4 MHz and the slave is a Due. The ...
0
votes
1answer
302 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
2answers
536 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 ...
-3
votes
1answer
200 views

Power Arduino Due and 6 servo motor with Battery [closed]

I would like to create a project contains 6 servo motors and Arduino Due board, but I have no idea how to operate should I use only a 9V battery only or in addition to 4 AAA battery?
1
vote
1answer
172 views

Communication over UDP between Dues with Arduino WiFi Shield

I'm using the Arduino WiFi Shield to make two Arduinos Due communicate using UDP. The first node to send a message (the Client) doesn't always receive a reply from the other node (the Server). The ...
0
votes
0answers
918 views

Arduino Due pwm frequency

I've been trying for hours to change the PWM frequency of my Arduino Due to a value between 15kHz...18kHz but nothing worked. I found this manual https://folk.uio.no/jeanra/Microelectronics/...
0
votes
0answers
75 views

How to read/write from/to mpl3115a2

I am a newbie to Arduino and learning about how to use mpl3115a2. Here is my problem, I want to, for example, write a byte to a specific register in mpl3115a2. The quick guide says: /****************...
1
vote
1answer
967 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 ...
0
votes
0answers
194 views

How to write I2C multi-master code with different address?

I'm trying to write code where the Arduino Due board with ADDRESS - 0x6 (Slave) will receive 20 bytes of data from another micro-controller with ADDRESS - 0x2 (Master). After receiving the data, ...
7
votes
4answers
670 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 ...
1
vote
1answer
65 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)...
-1
votes
2answers
2k views

How to connect Arduino 5v pin with multiple things?

I am trying to connect a Bluetooth module and a gas sensor to Arduino. Bluetooth module: HM-10 Gas sensor: MQ-2 I read the guides for the HM-10 and MQ-2 and they both need to use the Arduino's 5v ...
0
votes
0answers
153 views

Use of a logic level converter with Arduino Due PWM

Maybe I am way over my head here, but here it is: I am trying to regulate a spindle RPM. The tachymeter part is now working flawlessly. Now I am on the PID part, to control and regulate that speed. ...
1
vote
1answer
221 views

How can I have 2 differents frequency on the 2 DAC outputs on an Arduino Due?

I would like to blink, using specific waveforms, 2 LED controlled by the 2 DAC output of the Arduino Due. I wrote this : #include "Waveforms.h" int i = 0; int sample; void setup()...
1
vote
1answer
164 views

I2C Packet ocasionally send a garbage data

I have a project with Arduino working as I2C slave. The master request data each 300ms. The code of Arduino is: /* Name: SimpleClass_Applcation.ino Created: 5/26/2017 4:18:28 PM Author: ...
1
vote
0answers
74 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 ...
1
vote
1answer
397 views

L and ON keeps blinking

I am not sure why the ON LED and the L LED keeps blinking on my Arduino. I was just trying to implement a simple circuit using breadboard, and everything worked fine until I unplugged one wire with ...
0
votes
1answer
94 views

Arduino due temperature reading shows random temperatures

I am using an Arduino Due board to read three temperatures from three separate smt160-30 digital sensors but the program is behaving very randomly. the code I am using is one I got from arduino ...