Questions tagged [arduino-ide]

This is for questions about the official IDE. The open-source IDE makes it easy to write code and upload it to any Arduino board. It runs on Windows, macOS and Linux.

Filter by
Sorted by
Tagged with
-1
votes
0answers
28 views

I am not getting any output on serial monitor. What is missing in the below code for chess pawn movement? [closed]

//1 for white enum{ pawn1 =10, rook1 =1, knight1 =2, bishop1 =3, queen1 =4, king1 =5, //2 for black pawn2 =20, rook2 =11, knight2 =12, bishop2 =13, queen2 =14, king2 =15, none =0, }; int count =1; //...
7
votes
1answer
5k views

Adding a custom board to the Arduino IDE

I would like to know what is the procedure for adding a custom board to the Arduino IDE? My custom board is similar to the Arduino Zero. Instead of using the ATSAMD21G18, my board is based around the ...
0
votes
0answers
24 views

Porting Arduino for ATMEGA16U2 [duplicate]

I have a bunch of ATMEGA16U2 in my drawer and I need to make a small production of custom boards with Arduino-based firmware. After a Google search I learn the ATMEGA16U2 is often hosted on the ...
2
votes
1answer
9k views

ESP32 in Arduino-IDE with FS.h and SPIFFS

I'm working on a webserver on ESP32 in Arduino IDE and would like to load an html-file. Tried to use SPIFFS.open from the library FS.h from github. Errormessage says SPIFFS was not declared in this ...
0
votes
1answer
830 views

SD Card Read/Write Arduino Mega Fail

I have an Arduino Mega 2560 where I have used a MicroSD Card Module to Read/Write Data on the Micro SD Card. I have tried using the Example in the Arduino IDE but the data is not being written or read ...
0
votes
1answer
19 views

how to put whitespace in long Serial println() input [closed]

I have this long, Serial.println() that is in quotes, on multiple lines. Arduino IDE warns: "Missing terminating character". I am certain there is a way to break the lines up, while having ...
0
votes
1answer
31 views

Should I use C or C++ for a pure code implementation of Arduino?

I have an arduino board (SAMD21 microcontroller) which supports either Arduino or CircuitPython programming. I'd like to program in pure C/C++ instead of Arduino, which seems to be possible without ...
0
votes
2answers
3k views

Checking size in flash memory Esp32

I recently purchased an Esp32 and am doing some tests using Arduino IDE. In one of the tests, I am recording a lot of .txt files with some text inside them in the flash memory, however, I would like ...
1
vote
1answer
44 views

Need help figuring out how to adapt a code for a Snake Game I'm trying to make. Help greatly appreciated!

first of all thanks for clicking on this post :D For the last couple of days I've been trying to test out a game for the classic nokia snake game I've found online, but I can't seem to get it to work. ...
1
vote
0answers
29 views

ERROR: Timed out waiting for Arduino 101 on COM4 [closed]

I tried uploading the Blink premade script on my Arduino board. Instead of uploading the code it shows this: Sketch uses 87160 bytes (55%) of program storage space. Maximum is 155648 bytes. Starting ...
2
votes
1answer
176 views

Set control register to low in ds3231 rtc

I have been using ds3231 rtc module for keep tracking and make alarm along with backup battery. when I used it for first time it worked fine. but now it doesn't keep track my time when the power lose ...
1
vote
0answers
23 views

Arduino IDE Java error

I'm running IDE version 1.8.16 under Windows 10. Frequently I get the error message. The situation is solved only when exiting the IDE. Afterwards the compilation may be finished with or without ...
0
votes
1answer
19 views

String operations printing random character on Serial Monitor

I want to extract the file name MyFile.txt out of a path which is stored in a string "C:\\MyDirectory\\MyFile.txt"; I found a simple c code which does the job. string filename = "C:\\...
1
vote
1answer
19 views

How to debug "No device found on cu.usbserial, An error occurred while uploading the sketch"

I am testing a project on Arduino Nano. I copy-paste the code on the Arduino IDE and click "Upload". I see: No device found on cu.usbserial-<unique id> An error occurred while ...
1
vote
1answer
157 views

ESP32 Partition size and maximum program size

From an ESP32 example code, I extracted the following part, that just prints the flash partition list to the console. #include <string.h> #include <assert.h> #include "esp_partition.h&...
0
votes
0answers
30 views

watch dog timer time out?

i use esp32 in arduino ide i use external interrupt (it just count pulses) when external occur but it give me wdt time out so how i disable it or increase it's time i have searched about it.here what ...
1
vote
0answers
26 views

ESP32 Classic Bluetooth Set Password

I am using ESP32 classic Bluetooth Feature for data transfer. I am using the SerialToSerialBT example. I am able to scan and discover the Bluetooth device from my smartphone. But the pairing is ...
1
vote
0answers
62 views

ESP8266 NodeMCU Lolin V3 and using Firebase to update its software OTA

I want to update software OTA on multiple of my nodemcu devices that are currently sending data to my firebase database. I found this tutorial (https://medium.com/firebase-developers/over-the-air-...
0
votes
0answers
45 views

Nodemcu Lolin v3 Timeout error

I am getting the Arduino console error "the selected serial port serial.serialutil.SerialTimeoutException: Write timeout does not exist or your board is not connected". I recently upgraded ...
0
votes
1answer
88 views

Can't connect my ESP8266 to server database

UPDATED. I am trying to connect to a server, sending an HTTP request (GET) but keep getting errors. Output to the serial monitor shows connection failed or bad request What am I doing wrong? See code ...
0
votes
1answer
150 views

RFID RC522 reads the previous tag serial with different tag

I hope someone can help me. I'm using a Mega with RC522, and this happens: I use a tag, it reads the right serial (e.g. AA:BB:CC:DD). Then I use a second tag and sometimes it gives me the correct ...
0
votes
2answers
109 views

Where is the Arduino IDE boards.txt file for Nano Every located?

My Arduino Nano Every runs at 16Mhz (but the 4809 can support internal 20Mhz). I know it may be possible to alter the boards.txt file and set it to build for 20Mhz. However, I can't find the boards....
0
votes
1answer
74 views

Infrared sending not working slight misconfiguration?

Edit: Took some advice from below but it still doesn't work. I think it probably blocking code but please tell me how I could fix it to send a the valid infrared signal, NOTE: I wouldn't actually code ...
1
vote
2answers
56 views

Wifi Scanning code for esp32 wroom 32

I am trying to scan wifi in sta_ap mode in my esp32 wroom 32 module but it is not scanning new wifi .Can anybody tell more about how does wifi mode works in this module and what's the problem in my ...
2
votes
1answer
33 views

In which package file is a default programmer selected?

After a clean IDE install, the programmer submenu already has a default option selected as shown below: I am working on creating a core package and would like a default programmer to be selected ...
0
votes
1answer
1k views

The Arduino Sketch does not save in Arduino folder location

I have just installed Arduino on Mac OS. The Arduino folder is created under Documents. But whenever I save the sketch it gets stored in some ghost location and gives an error, the same name already ...
-3
votes
0answers
37 views

FreeRTos on ESP 32 to speed up sending data

Thank you in advance for your time! I am using MCP3008 (10 bit ADC)+MPU6050 connected to an ESP32 to send some sensors data over Bluetooth. I used FreeRtos (to which I am really new) to speed up the ...
2
votes
2answers
58 views

UNO's Internal EEPROM "read" returns incorrect values when it precedes "write"

I am an Arduino instructor and I was preparing some material on the utilization of the Arduino UNO's internal EEPROM when I encountered a problem. The problem is, I am trying to show the original ...
0
votes
1answer
86 views

How to capture the compilaton output to a text file in Windows?

I am trying to capture the verbose output of the compilation to get it into a text file. I am using the IDE 1.8.12 running on Windows 10. I have tried looking for a right mouse button context menu, ...
4
votes
2answers
510 views

Can Arduino Sketch be used for production

There are lot of device support with the help of Boards Manager today and is on going in Arduino IDE. So I am curious to know about can one use those for production purpose. Or it is recommended for ...
0
votes
1answer
4k views

Arduino IDE: Board nodemcuv2 (platform esp8266, package esp8266) is unknown

I am receiving this error after reinstalling Arduino IDE (everything was working fine [same components, same code]): Board nodemcuv2 (platform esp8266, package esp8266) is unknown I have recently ...
1
vote
2answers
4k views

How do I turn off the blinking cursor/caret in the Arduino IDE?

I just purchased a RedBoard, knowing that it would work on Linux, and knowing that it could allow me to easily interface with some electronics project. I am aware of the ino command line tool but I ...
0
votes
1answer
97 views

Where is tcp.h?

This is for an esp8266 project that uses EasyAsyncTCP. In EasyAsyncTCP.cpp they #include "lwip/tcp.h". But I can't figure out where that file is. I've found a tcp.h in the following directories on ...
1
vote
2answers
379 views

Include in different file make different compiling error

I'm have problem compiling a code. ardutest.ino: #include "mylib.h" #include <SD.h> void setup() { } void loop() { fn(); } mylib.h: #ifndef mylib_h #define mylib_h #include "Arduino.h" ...
6
votes
1answer
2k views

Which C++ standard does the Arduino language support?

The "Arduino language" (as they call it) of the Arduino IDE 1 is obviously C++. Which C++ exactly? I tried to figure it out myself (Arduino IDE 1.8.13 for Arduino Uno), but I can't conclude ...
0
votes
1answer
56 views

Capacitive touch on Adafruit Trinket M0 goes unstable when USB cable from laptop is disconnected

Note that to get to this point, I used much of the helpful information from the Post How to use capactive touch on Adafruit board in Arduino mode? I am using a Trinket M0 with the Arduino IDE with the ...
1
vote
1answer
709 views

src folder in sketch structure and include library from subfolder

My Arduino/PlatformIO libraries folder libraries └── cleaner_robot └── TB6612_Dual ├── tb6612_dual.h └── tb6612_dual.cpp I used this code to innclude it: #include <...
4
votes
2answers
371 views

Code for ESP32 without Development Board

I'm very new to microcontrollers. I'd like to start developing for the esp32, as it has integrated wifi & bluetooth for quite cheap. This being said, i don't have a board yet. Is there a way i can ...
-1
votes
2answers
8k views

client.connect() problem

I'm using XAMPP(version-7.2.1) server in my PC to publish my arduino sensor data in a webpage. I have tried the code above and it shows an error like: Ethernet configured via DHCP Connecting......
0
votes
1answer
57 views

How can I make my code Thread-Safe?

So I made a post yesterday running into an issue on my ESP32 using both cores on the microcontroller (with wifi enabled, incase that is important). I'm using both cores to control two Neopixel strips ...
0
votes
1answer
26 views

ESP32 AP Automatic Web Page

I've often encountered WiFi networks that require you to sign in through a web page that automatically opens after connecting to the access point, such as hotels. I'd like to implement something ...
1
vote
1answer
114 views

How to find the time of any point on the graph on an Arduino serial plotter or Processing software?

I am plotting the graph of some sensor values on my Arduino serial plotter which looks something like this - But what I want to do is hover over any point on the graph and display the time at that ...
1
vote
1answer
48 views

Host a webserver on esp32d that has a hyperlink that triggers an ardiuno song through a buzzer

I would like to use my ESP32D to create a wireless access point and host an html page that has a hyperlink and a few other things on it that triggers an arduino song (rickroll), and plays it through a ...
0
votes
2answers
1k views

Esp32 external interrupts sometime is missing

In short. ESP32, two water meters (hot and cold). Booth, hot and cold, some interrupts are missed. When i connect ESP32 to serial monitor and watch then all interrupts are detected (about 5-10 minutes)...
1
vote
1answer
23 views

How do I get sensor values using transmitter and reciever

I used an HC-SR04 sensor and connected it to an arduino board (BOARD1) with a 433 mhz transmitter and the other board (BOARD2) is connected to the 433 mhz receiver but I don't know how to see the ...
1
vote
1answer
329 views

Can't upload sketches or flash Nodemcu 1.0 12E (CP2102) but have drivers and responds to RST on Serial monitor

I've been trying to get my nodemcu working for months and tried countless online references but none worked. I'm using the Arduino IDE to upload sketches and always get the error "Timed out ...
1
vote
1answer
57 views

How to load scal factor external to the code?

We know that, we need calibration factors (scale factors) to read current sensor data (ACS758) to arduino. I am also using voltage reader using voltage divider circuit for my project. I need to build ...
3
votes
1answer
4k views

How to flash pre-compiled bin files into NodeMCU using Ardunio IDE

How to flash pre-compiled binary into NodeMCU using Ardunio IDE. Since every time it require to compile and flash it. Is there way to flash binary alone to nodeMCU via Arduino IDE ? One can export ...
1
vote
0answers
47 views

Flash HEX onto an Arduino board

The scenario: I have built a device off an Adafruit nRF52840 and I need a way to deploy firmware updates. I have delivered the device to my end user and will need to periodically send him updates. I ...
7
votes
3answers
14k views

How to see log from Arduino IDE?

Where can I see outputs from such instruction in an ino file ? Serial.println("my message");

1
2 3 4 5
29