New answers tagged

2

The problem is the preprocessor in the IDE. It's not clever enough to work out the extern "C" when adding function prototypes. With your comments you end up with: #include <Arduino.h> #line 1 "/home/matt/t/t.ino" #line 1 "/home/matt/t/t.ino" void setup(); #line 6 "/home/matt/t/t.ino" void loop(); #line 10 "/...


2

The Arduino Core for supporting Arduino Due is called ArduinoCore-Sam, which can be found at https://github.com/arduino/ArduinoCore-sam, inside the system directory, you will find the CMSIS device driver.


1

The unmodified RTCLib DS3231 sample code running on Arduino Due defaults to the Wire I2C connection on pins 20 SDA and 21 SCL. To enable the same sketch to connect to a device connected to the Wire1 I2C connection on pins 70 SDA1 and 71 SCL1, I changed line 333 of RTClib.h to reference &Wire1 rather than &Wire. Successful test output from the Wire1 ...


-1

There is a datasheet for the module at https://www.mpja.com/download/35647mpdata.pdf It references the Arducam library at https://github.com/ArduCAM/Arduino/tree/master/ArduCAM. The library specifically supports this camera type. By studying the camera specific code you may get a better idea of what is required. To connect the module directly to a Due, the ...


2

You need to pick a timer that isn't being used for anything else and configure it as a simple counter with the clock source set to the external clock pin for that timer. At block level, input clock signals of each channel can either be connected to the external inputs TCLK0, TCLK1 or TCLK2, or be connected to the internal I/O signals TIOA0, TIOA1 or TIOA2 ...


3

The Due's DAC can go up to, and I quote direct from the datasheet: Up to 350ksps conversion rate That means you can set up to 350,000 data points on your waveform per second. With two datapoints (giving you a square wave or, more realistically, a waveform with a sharks fin shape) the maximum you could get is (350,000/2) 175kHz. Given that you stipulate you ...


2

I think you may be overestimating the capabilities of the Due DAC. My understanding and experimentation is that waveform generating code (e.g., https://forum.arduino.cc/t/funkgenie-a-wavetable-based-function-generator/214938) can generate consistent output waves up to “a few kHz”. After which the wave shapes suffer from distortion. If wave shape is not ...


Top 50 recent answers are included