New answers tagged

3 votes

Read values from a txt file on an SD card

These symbols were introduced in the Arduino AVR core 1.6.7, in December 2015. You can find them in Stream.h. They are probably defined in other cores too. For some reason, the Teensy cores do not ...
Edgar Bonet's user avatar
  • 41.4k
0 votes

How to loop over analog pins?

Assuming pin numbers are consecutives you can iterate them: int acc = 0; for (int Ai = A0; Ai < A0 + NUM_ANALOG_INPUTS; Ai++) { acc += analogRead(Ai); } Serial.println(acc);
josePereiro's user avatar
1 vote

convert string representing a binary number to binary

As pointed out by @EdgarBonet, I can convert the string to binary number with strtoul() and pass this to my led control. Adding this as an answer for future readers: LedControl mat = LedControl(...
vilmarci's user avatar
  • 109
0 votes

Help with program upload problem!

Is the arduino MEGA you have a "chinese" version? if it is, try installing this drivers and try again : https://www.arduined.eu/ch340-windows-10-driver-download/
Nuno Santos's user avatar
0 votes

Expected signature for ATmega328P is 1E 95 0F; I can not burn bootloader on my arduino Uno

Well a couple of options: Plug the Arduino with USB, do you see a Serial PORT? If you do there is a good chance the USB CHIP is ok. Try programming the Arduino with a 12v High Voltage Programmer and ...
Nuno Santos's user avatar
0 votes

SPI with DMA in a Arduino Due

#include <dmac.h> #include <SPI.h> #include <Arduino.h> #include <sam.h> uint8_t sourceBuffer[256]; void setup() { SPI.begin(); SPI.setClockDivider(21); // 4MHz clock (...
b1n3t's user avatar
  • 276
1 vote

ArduinoJson reading `null` from Serial

As observed on your serial console settings, it mentions both newline and 9600 baud. Let's break this down: Issue with Serial Communication Partial Payloads: You are currently assuming that when ...
b1n3t's user avatar
  • 276
0 votes
Accepted

How to add one JsonDocument to another in ArduinoJson

You can add a JsonDocument inside another one, but you must pass the document by value, not by pointer. Since you receive a pointer, you need to dereference it before trying to assign: doc[F("...
Benoit Blanchon's user avatar

Top 50 recent answers are included