New answers tagged programming
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 ...
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);
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(...
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/
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 ...
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 (...
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 ...
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("...
Top 50 recent answers are included
Related Tags
programming × 1649arduino-uno × 567
c++ × 209
serial × 129
arduino-mega × 127
arduino-ide × 126
c × 102
sketch × 95
sensors × 90
arduino-nano × 62
esp8266 × 59
led × 59
library × 52
motor × 47
lcd × 44
code-review × 40
array × 38
string × 37
pins × 35
interrupt × 34
servo × 33
communication × 31
timers × 28
bluetooth × 24
button × 24