Questions tagged [arduino-ide]

Arduino is an open source IDE running on Windows, Mac OSX and Linux.

The open-source Arduino environment makes it easy to write code and upload it to the i/o board. It runs on Windows, Mac OS X, and Linux. The environment is written in Java and based on Processing, avr-gcc, and other open source software.

It comes already with many examples with a wide variety of possibilities. It's currently the simplest way to work with any Arduino board and it's code.

You can import many third party libraries to work together with the basics. Some recent versions include a Library search tool that helps finding many of them.


External links

1276 questions
2
votes
1 answer

ESP32 CAM module: A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header

I am getting the error below. I pressed the reset button of the esp32 cam but it didn't work. Kindly help. Arduino: 1.8.12 (Windows 10), Board: "AI Thinker ESP32-CAM, 160MHz (WiFi/BT), QIO, 80MHz" Sketch uses 699158 bytes (22%) of program storage…
2
votes
1 answer

ESP32 Arduino-ide how to get unique id

I'm trying to set a unique id to each esp32 automatically. Before I was programming the devices using the ESP-IDF Framework that provides the method esp_efuse_mac_get_default() this will return a 8 byte value unique over all devices I had my hands…
gxor
  • 335
  • 3
  • 11
2
votes
0 answers

NodeMCU keeps running the previous program

After countless days and hours, I finally can upload my sketch into my NodeMCU successfully. But, just after that, I've got another problem. If you've checked my previous post, you'll see I have two sketches. The first one is at my question and the…
Su1010
  • 31
  • 1
  • 5
2
votes
1 answer

VS code doesn't recognize arduino specific syntax

I've installed C++ and Arduino extensions for my VS code, and most of it seem to work (it tries to connect to a board, for example), but the language recognition and IntelliSense keep marking Arduino keywords as errors and doesn't complete anything…
young marx
  • 378
  • 1
  • 2
  • 15
2
votes
1 answer

MPU-9250 sample rate lower than the one selected in register map

I'm using Arduino UNO and I2C protocol to read data from MPU 9250 in arduino IDE. But the sampling rate is lower than the one I selected, indeed, I try to use 1KHz but the maximum speed I can reach is by reading only one of the sensors and is 25 Hz.…
2
votes
0 answers

Using MATLAB to write to Arduino serial monitor to control stepper motor

I am currently building a positioner that will move a probe in the x and y direction through the use of three stepper motors and a RAMBo 1.1b board. I have written code through the Arduino IDE that allows me to do so through inputting options in the…
2
votes
2 answers

Why does #define not multiply numbers as expected in arduino/c++?

Arduino has been giving me unexpected values when trying to multiply numbers together in preprocessor. e.g. #define msPerDay (24 * 60 * 60 * 1000) void setup() { Serial.begin(9600); Serial.println(msPerDay); } void loop() {} This should…
Jail4Kale
  • 63
  • 1
  • 1
  • 7
2
votes
1 answer

"exit status 1 'microsecondsToInches' was not declared in this scope"

I'm trying to Program a Ultrasonic Sensor for a small project where I'm trying to design a level sensor. This is for a beginner mechatronic course that I'm taking right now. But it keeps giving me this error in line 42, bellow the void loop, that…
jenrique15
  • 21
  • 3
2
votes
0 answers

Android Live Streaming using MJPG on HTTP or RTSP protocol

I purchased ESP32 camera and installed code on ESP32 camera using Arduino IDE. I am able to see the feed on chrome and VLC. I am writing an android app which used Android MediaPlayer and Surface View to view the live streaming video. But in the…
2
votes
1 answer

Serial monitor showing unexpected input from Arduino Mega

I'm using an Arduino Mega to control a CS1237 ADC. I'm sending a signal to the clock pin and after each clock pulse, waiting 1ms and then reading the response, according to the datasheet I found (via…
2
votes
2 answers

Cannot find Arduino IDE VS Code

I am using windows and I installed the Arduino IDE from Microsoft store, but I wanted to code everything in VS Code. When I want to run the program or select the board it just says this: Cannot find Arduino IDE. Please specify the "arduino.path" in…
2
votes
1 answer

How to display the local IP of nodemcu esp8266 in Serial using arduino

This is the Serial of my arduino it doesn't show anything what am I doing wrong in my code? Arduino Code #include #include #include #include const char* host =…
2
votes
1 answer

Arduino ESP8266 - stack ERROR - ESPExceptionDecoder to debug - need help to find ERROR

i have one project that can ready compiled. The function is break on the hardware an i need help to finde the error. I am a beginner and ask for help. How can I narrow the error down? Platform Hardware: AZDelivery NodeMCU Lua Amica Modul V2 ESP8266…
2
votes
0 answers

How to improve the sensitivity of ESP32 for BLE scanning?

I am using ESP32 WROOM-32 board and programming it from Arduino IDE. It scans some BLE advertising devices. I have checked these data coming from a distance(Checked about 15 meters far from devices) on a mobile phone. But the ESP32 could only get…
2
votes
0 answers

Unable to retrieve iBeacon UUID (ESP32 BLE Scanner)

I have been using the ESP32 to scan for nearby iBeacon but I was unable to retrieve the UUID of beacons. The serial monitor keeps displaying "N/a". However, I was able to get the UUIDs of beacons when using the normal android BLE scanner app. Is…
Kevin Tan
  • 31
  • 3