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.
1,581 questions
-2
votes
1
answer
326
views
Using 1.1Vf to read stable battery voltage and sensor voltage
After several tries, i was successful with reading stable battery voltage using internal voltage reference of 1.1v, now the issue i face is that i cannot read stable sensor voltage, could you please ...
2
votes
1
answer
506
views
Arduino code working via IDE, not via PlatformIO Arduino code [closed]
I have a working Arduino code. The code works as intended when I upload it to an Arduino Nano using the old bootloader via the Arduino IDE. However, when I upload the same code via PlatformIO, the ...
3
votes
1
answer
2k
views
Arduino IDE for ESP32: Compilation Error: Exist status 255
Problem:
I have a ESP32 and I've been trying to flash it with the Arduino IDE, however it's been giving me Python error messages :/ when I'm trying C/C++ code to flash the Arduino.
Question:
How can I ...
2
votes
1
answer
218
views
Tools > Board settings: how are they captured?
In the Arduino IDE, the Tools menu can be used to make some board-specific settings like this:
... such as Processor Version = "Atmega168P", Processor Speed = "16MHz Crystal Resonator&...
1
vote
1
answer
2k
views
Just installed Arduino 2.0.3 - what is windows path to associated libraries?
Just installed Arduino 2.0.3 and I attempted to build a sketch which includes a library that I manually installed in version 1.8.19 and it can't be found:
In my program I have
#include <DS3231.h>...
0
votes
1
answer
920
views
Why am I receiving this Error: Debug exception reason: Stack canary watchpoint triggered (task1) in ESP32 using a FreeRTOS program?
I'm getting this error by running a FreeRTOS program on my ESP32 using arduino ide, I don't understand why this happens because this same program works on an arduino Uno with no errors:
Guru ...
1
vote
1
answer
310
views
Run encoder code simultaneously with other code in Arduino
volatile unsigned int temp, counter = 0;
int county=0;
void setup()
{
Serial.begin(9600);
pinMode(2, INPUT_PULLUP);
pinMode(3, INPUT_PULLUP);
attachInterrupt(0, ai0, RISING);
...
-1
votes
1
answer
293
views
How "fast" could GPS data be refreshed while moving and does it depend on the mcu?
I'm using Nano Every and SIM33EAU GPS module for my project and today I went riding shotgun to test how it works when moving on the road. I am using u8g2 library and one of the things that I have ...
1
vote
0
answers
209
views
wemos d1 mini keeps resetting while using SIM800L
I am trying to do a small project with SIM800L with Wemos d1 mini. It is a DTMF based project. The problem here is, every time I make a call the d1 mini is getting reset. This is my first project with ...
0
votes
1
answer
166
views
Replace char based on user input
I am developing a hangman game on tinyduino(tinycircuits) and I am currently stuck on how to properly replace a char based on user input within a for loop. My current code does actually replace the ...
0
votes
0
answers
129
views
ESP32-WROOM-32 Wifisecureclient read() result in gibberish data
We are testing our own library with ESP32-wroom-32.
In the .cpp file we have:
void HttpDownstreamClient::tokenCreate(char* URL, char* Subname, char* Suber, int expiretime) {
Serial.print("The ...
2
votes
1
answer
1k
views
Is it possible to save and restore the Arduino IDE "Tools" settings somehow?
I'm using quite a few different types of microcontrollers with the Arduino IDE (v 1.8.19). Several AVR-based boards, but also ESP32 and Arduino Due. Particularly the newer boards have a quite long set ...
2
votes
2
answers
591
views
How to unload a sketch
I've loaded a sketch onto Arduino using the Ardunio IDE and it works but when I press the reset button I realize it doesn't remove the program. Is there a way to unload the program? Why? Because when ...
0
votes
1
answer
261
views
Balancing pendulum using PID
Dear all, referring to the video at here on how to make a PID balancing pendulum as shown in the picture and the author also provided the arduino code in the video description. May I ask whether this ...
0
votes
1
answer
1k
views
Connect OLED SSD1306 to Elegoo Uno R3
I'm trying to connect the OLED SSD1306 screen to my Elegoo Uno R3 and display something using Arduino IDE. However, nothing shows up on the screen for some reason.
I have connected every pin in the ...
2
votes
4
answers
17k
views
ESP32-CAM rst:0x8 TG1WDT_SYS_RESET bootloop [closed]
I have ESP32-CAM that I plan to use as a simple security camera. I tested the software and it was working perfectly. I programmed it using FTDI programming board with 5V. After testing everything I ...
6
votes
1
answer
565
views
How to turn off the display of line numbers on Mac Arduino IDE?
I'm trying to turn off line numbers on the Mac Arduino IDE but don't see the option for it after navigating to Arduino IDE > Preferences. Below is a screenshot of what I am seeing.
I saw this ...
1
vote
2
answers
2k
views
Call functions of one class from another class - Callback
I am new to C++ & I need to call functions of one class from another class. And so that the classes do not know anything about each other. How to do it in Arduino environment?
class Encoder {
...
1
vote
0
answers
141
views
Touch Board from Bare Conductive not uploading arduino code example
I have an issue with this example https://github.com/BareConductive/mpr121/tree/public/MPR121/Examples/SimpleTouch when trying to upload it. Also, there was an issue when compiling it, however, the ...
1
vote
1
answer
185
views
Can't upload sketch after overheating
I'm using an Arduino nano, after an unfortunate event, The mega chip heat up and when I tried touching it, it burned my finger. After that, I connected to my laptop's USB port and the computer ...
2
votes
1
answer
3k
views
Unable to upload code to my digispark ATtiny 85 after upgrading bootloader
I've just received my digispark ATtiny85 (model B, I believe). I'm using Pop_OS for my PC, had a bit of a headache getting the arduino IDE recognising the device but after some trial and error I got ...
2
votes
0
answers
491
views
Coding issue with Fast LED Multiple Colour Palettes in a State Machine
I am working on a project using the WSB2812B LED strip, with a ATmega644A using the MCUdude/MightyCore plug in (https://github.com/MCUdude/MightyCore).
I am using Fastled 3.3.3 with Ardunio 1.8.13 on ...
1
vote
1
answer
760
views
nRF52832 BLE "conn_handle" to disconnect the current connected devices
I'm working on nRF52832 Bluefruit Adafruit Module. I want the BLE connection to disconnect using a function and can call whenever required. But the issue is the disconnect function needs "...
3
votes
2
answers
1k
views
Upload to ESP32-C3 fails [closed]
I have built a custom circuit board using the ESP32-C3-MINI-1-H4 module (datasheet).
Here is a schematic:
I have the GND, Tx, and Rx lines hooked up to an Arduino Uno without the ATmega. The 3.3 V ...
0
votes
1
answer
2k
views
Unlocking Digispark ATTiny85 after flashing it to HID
I made a simple test sketch to make my ATTiny85 emulate a Keyboard and send a sequence of keystrokes.
#include "DigiKeyboard.h"
void setup() {
// don't need to set anything up to use ...