6
votes
reading device or board specific properties from the Arduino MKR WiFi 1010 device
The IDE shows the serial number so I looked into the SAMD core and found the function which reads the serial number from registers. It is in the CDC.cpp file
uint8_t Serial_::getShortName(char* name) {...
4
votes
Accepted
Arduino IDE equivalent to DataView?
There is no use for a DataView in the Arduino environment. In the
JavaScript language, a string and an array of bytes are two very
different things. That's why you need something like this str2DV()
...
4
votes
We have Arduino IDE code that needs to stop after a set number of "revolutions"
if (counter >= 2) {
return; //exit the loop
}
The return statement will end the loop, but the loop function is called over and over repeatedly. So it will just start over again.
There are a ...
3
votes
Nema 17 stepper motor speed problem
Stepper motors need to be gradually brought up to speed. If you try to go from zero rpm to anything over a few hundred rpm they will often just sit there and hum. Try AccelStepper (https://www.arduino....
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 ...
2
votes
Checking size in flash memory Esp32
The file system on the ESP32 is stored in a portion of the flash memory, and managed by the SPIFFS (SPI Flash File System) library. You can use the SPIFFS.info() function to get information about the ...
2
votes
How to upload already compiled code when no changes were made?
This is what I have done. In the arduino IDE settings panel, turn on the "Show verbose output during compile and upload". This way whenever you are doing verify and upload you can see all ...
2
votes
how to clear heap memory in esp32?
The heap memory in ESP32 cannot be cleared explicitly. The heap memory is used to store dynamically allocated objects, and when an object is no longer needed, it is automatically deallocated by the ...
2
votes
Accepted
Tools > Board settings: how are they captured?
The board settings from Tools menu are stored in the IDE preferences file.
You can open the file from the Preference dialog of the Arduino IDE. The path to the file is shown at the bottom of the ...
2
votes
Arduino code working via IDE, not via PlatformIO Arduino code
I had a similar behavior for a while and nothing I would change in the PlatformIO .ini configuration file seemed to help. I tried to re-init and clean the project, but also didn't seem to help.
...
2
votes
Does ESP32 can support WIFIDirect
I do know that you can host a web page on an esp8266, sending and receiving data on that. You can from there connect the Android to that web page. I am not sure what you mean by access point, and I ...
2
votes
Unlocking Digispark ATTiny85 after flashing it to HID
If you can't access the bootloader using USB your remaining option is ISP/ICSP (In-Circuit Serial Programming). I have that digispark board and I have never been able to program it using Arduino's IDE/...
2
votes
Accepted
Arduino IDE 1 interfering with Arduino IDE 2?
I spent more time (almost 20 working hours) to isolate this problem by
testing the behavior with all of our 9 robot hardware in the club
testing the behavior with all of our 8 notebooks in the club
...
2
votes
Accepted
ESP8266 seems to be killing a while loop
You can't trap an ESP in a while loop like that. There are things it needs to get back to main and do between loops. Instead, let the loop function be your loop. Make the while statements if ...
2
votes
Accepted
LED doesn't completely turn off with digitalWrite(led, LOW);
if (!digitalRead(led3) && difference>=600){
digitalWrite(led3, HIGH);
}
if (!digitalRead(led4) && difference>=800){
digitalWrite(led4, HIGH);
}
if (difference>=1000){
...
2
votes
Accepted
MD5 of File doesnot match data in flash Error with ESP32 S3
Yes, I have managed to get it working now, the issue encountered was with the strapping pins. Specifically, Pin 45 of ESP32S3 is responsible for configuring VDD_SPI_FLASH. To ensure it operates at 3....
2
votes
How to use Interrupt in Arduino to receive the data from Serial Input
Why do you want to use an interrupt anyway? The serial hardware already generates an interrupt, and inside that ISR the incoming byte is placed into a buffer.
I presume you have a main loop where you ...
2
votes
Why Arduino IDE is brignging wrong board name for ESP32 S3
You can just force Arduino IDE to recognise your board by locating your Boards Configuration File, putting in your VID and PID values, repackage and host the configurations and Point the Arduino IDE ...
2
votes
Having an issue conveying array values properly
Yes, if you send 5 bytes to the Arduino then they will arrive one at a time. When the 4th byte arrives then the if (Serial.available() == 4 ) statement is true and it runs that code. That code reads ...
2
votes
Having an issue conveying array values properly
I have a post here which discusses handling incoming serial data. Also here on Stack Exchange.
For handling serial input like you are trying to do I suggest using an "end of line marker" ...
1
vote
Using 1.1Vf to read stable battery voltage and sensor voltage
To measure the voltage at A0 with an internal reference of 1.1v, the formula is float voltage = 1.1 * analogRed(A0) / 1023;. Your code can be simplified as
float Vref = 1.1;
void setup(){
Serial....
1
vote
ESP32 failing to read from DHT11, MH-Z19C sensors
You did a good job of giving links. You could have improved your question by showing, not just telling us, how you connected the sensors.
How do you "debug" hardware? Is there no way to know ...
1
vote
1
vote
NodeMCU code that both display OLED and control WS2812 LED Ring
You need to stop using delay and instead keep track of elapsed time. One of the comments under your question suggests looking at the BlinkWithoutDelay example, which is part of the Arduino IDE.
The ...
1
vote
Accepted
How can I get the Arduino IDE v0021 running on Windows XP to communicate with the latest Nano v3.0
I agree with Juraj that any bootloader can be uploaded to the newer version of the Nano. However, the process of doing so is not simple. With Windows XP SP3 installed on my laptop I was running ...
1
vote
Arduino IDE for ESP32: Compilation Error: Exist status 255
I don't have Mac but I am working on Linux and I also had issues with Arduino IDE v2 (in the past). Because of this I'm still using IDE v1 with no issues and that's my suggestion: try older version of ...
1
vote
an lcd with I2C is not recognized by esp32
You can run the PCF8574 on 5V and the EXP on 3V3 just be sure the I2C is pulled up to the 3V3 and NOT the 5V. I do this a lot and have never had a problem. The reason it works is the bus is driven by ...
1
vote
ESP32-CAM rst:0x8 TG1WDT_SYS_RESET bootloop
Is your esp32_cam comes with PSRAM? I had a program running on esp32 wrover with PSRAM, the same code could not run on esp32 wroom. After checking, the esp32 wroom does not come with PSRAM.
Say ...
1
vote
How to install FTDI Serial Drivers on Mac?
I have just managed to get the FTDI set up for my M1 mac using the Pro Mini. I think the issue is that newer macs automatically block the FTDI serial connection from being used as a com port. You need ...
1
vote
Accepted
Error while uploading "A fatal esptool.py error occurred: Write timeout"
The "most common reason" mentioned in this answer was actually the problem I had. Unfortunately I was using a charge only cable even though the cable package clearly said it was a data-cable....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
arduino-ide × 1558arduino-uno × 377
esp8266 × 234
programming × 127
c++ × 124
esp32 × 122
serial × 95
nodemcu × 91
arduino-mega × 84
arduino-nano × 71
library × 61
wifi × 47
c × 42
sensors × 41
uploading × 34
atmega328 × 31
ide × 31
bootloader × 30
attiny × 30
compile × 30
compilation-errors × 30
bluetooth × 27
arduino-leonardo × 26
avrdude × 26
http × 26