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
0 answers
7 views

2 Arduino uno R3 in one GSM module Sim800L V2

it is possible to use 2 arduino uno in 1 GSM module. like there are 2 PIR sensor in 1 arduino so i have 4 PIR sensor in 2 arduinos and i need to connect it in 1 GSM module.
0 votes
2 answers
43 views

How to return a value from a non integer input between 0-5 from an output range of 0-320 in map() method

I am experimenting using the map() method in an ArduinoIDE sketch in an attempt to obtain a pixel position for a horizontal meter in the range 0-320 from an input value in the range 0-5. However, ...
  • 49
1 vote
1 answer
25 views

How to use ESP_LOGx?

I can't get the logging to work on the ESP32. Here is my example: #define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE #include <esp_log.h> void setup() { Serial.begin(115200); ESP_LOGE("Test",...
  • 111
0 votes
0 answers
17 views

enum class - not declared in this scope (Arduino IDE) [duplicate]

Why does this code: void foo() { } enum class Foo {bar}; bool bar(Foo arg) { return arg == Foo::bar; } void setup() {} void loop() {} throw a compiler error: (3:10: error: 'Foo' was not declared in ...
user avatar
-1 votes
0 answers
11 views

How to use ESP32 to add and delete RC522 cards [closed]

I have tried many ways and ended up with failure, if anyone knows what to do, please contact me!
1 vote
0 answers
36 views

IDE will not upload to ATTiny88

I was successfully compiling sketches and uploading to various MCUs, including the ATTiny88. Suddenly the IDE quit compiling and complained of various missing compilers. I found and corrected an ...
-1 votes
0 answers
27 views

problem converting String to uin32_t

obviously i am doing something wrong!!!!!! using ESP32 i came to a point where i needed to convert String to uin32_t i tried toInt() and atoi() neither seemed to work but both return the same answer ...
2 votes
1 answer
46 views

Why is Arduino not visible in MacOS USB port list? [duplicate]

When I connected my Arduino Nano 33 IoT to my 2017 iMac (Ventura OS), the USB port did not show in the Arduino IDE port list, even after double-clicking the Nano reset button to put it in the right ...
-1 votes
0 answers
40 views

Im trying to control a servo motor with MPU6050 & ESP32. I found the code for it and whenever i try to upload the code i get this error

ERROR: WARNING: library Servo claims to run on avr, megaavr, sam, samd, nrf52, stm32f4, mbed, mbed_nano, mbed_portenta, mbed_rp2040 architecture(s) and may be incompatible with your current board ...
2 votes
0 answers
51 views

MAX30102 doesnt show data when it's interfacing with other sensors MLX90614 and MPU6050

The hardware I am using is ESP32 with MAX30102, MLX90614 and MPU6050 sensors and Using Blynk to show my data from the sensors. The issue I am facing is when I ran the code with all three sensors only ...
1 vote
0 answers
48 views

ESP8266 not sending text message to telegram bot

I've been trying to get my esp8266 to send a message to a telegram bot as soon as it connects to the wi-fi, whenever it encounters an obstacle, or whenever an SOS push button is pressed. But I didn't ...
1 vote
1 answer
77 views

How does Arduino IDE reset a board before flashing? Why doesn't avrdude do it?

I have the beetle board, a Leonardo clone same as in this question. Using the reset pin and quick hands on the keyboard, I am able to flash with avrdude and get also the board info with a command ...
  • 113
1 vote
0 answers
16 views

Connecting HM-10 and relay to Arduino Uno

I have an 8 channel relay, an Arduino Uno, and this HM-10 bluetooth module: https://www.amazon.com/dp/B06WGZB2N4 The Goal Send a number (1-8) from my Android phone via bluetooth to turn a relay on. ...
2 votes
1 answer
78 views

Sudden Error: File does not exist [closed]

I am suddenly getting an error every time I try to compile code in the IDE, even though every one of the sketches previously compiled just fine: Arduino: 1.8.13 (Windows 7), Board: "MH-ET LIVE ...
1 vote
0 answers
38 views

Dump data check failed on a TinyPICO using ESP32

I use the TinyPICO microcontroller with ESP32 and I program it using the Arduino IDE. I recently got a new error on my Serial Monitor: E (113) esp_core_dump_�^X.K�ɕ�dump data check failed: Calculated ...
2 votes
1 answer
50 views

Arduino IDE 1 interfering with Arduino IDE 2?

In our electronics tinker club, we had installed Arduino IDE 1.8 including drivers + the Holtek UART bridge (vendor ID 04D9, product ID B534) for the Elegoo Smart Car Kit 3.0 Plus (product link). The ...
-1 votes
0 answers
20 views

Installing Raspberry pi 4 hardware core on Arduin IDE

How can i install Raspberry pi 4 hardware core on Arduino IDE ? (to program these boards via Arduino IDE)
-2 votes
1 answer
87 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 ...
1 vote
1 answer
110 views

ESP32 failing to read from DHT11, MH-Z19C sensors

I got MH-Z19C (CO2 ppm) (datasheet), and DHT11 (temperature) sensors from Ebay and followed instructions online to set it up with my ESP32 board (ESP32). I'm using a breadboard and 5V/3.3V power ...
-2 votes
2 answers
34 views

DHT11 sensor burnt after connecting with arduino board

I was attempting one of the project of DHT11 and connected the sensor to my arduino board but when the current passed the sensor became very hot and i think it is damaged now. Please help me
  • 1
2 votes
1 answer
52 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 ...
  • 21
0 votes
1 answer
70 views

Arduino Nano 33 BLE getting the current time using RTC

I have a an arduino NANO 33 BLE and I'm trying to get the current time and date. Based on the documentation, the arduino has nRF52840 microcontroller which comes with a 24 RTC timer It is listed in ...
3 votes
1 answer
124 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 ...
  • 221
1 vote
1 answer
45 views

an lcd with I2C is not recognized by esp32

I have a NodeMCU esp32-s board and I'm trying to connect My 16x2 lcd with PCF8574T I2C bus to the esp32 , the problem is that the lcd doesn't show anything and the WireScan sketch can't recognize the ...
0 votes
1 answer
34 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&...
  • 338
1 vote
1 answer
85 views

UDPSendReceiveString example using Arduino Due with ENC28J60 Ethernet Module

I was trying to learn how to use UDP protocol to use in my automation project to send commands to an Arduino Due on ethernet with an ENC28J60 breakout board which I have connected to the Due from SPI ...
  • 111
0 votes
0 answers
52 views

Capacitance from AD7746 always "saturated"

I'm trying to use AD7746 with an arduino board to continuously measure capacitance (I'm currently using a 2pF capacitor for testing). Datasheet here. I managed to correctly write and read the ...
-1 votes
1 answer
159 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>...
  • 382
-1 votes
2 answers
150 views

ATTiny85(Digispark) not connected/recognized

I have 1xDigispark(ATTiny85) from Amazon https://www.amazon.pl/gp/product/B076KS2QDS/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&th=1. When i connect it into USB port nothing happen i didn't get ...
  • 11
0 votes
1 answer
121 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 ...
0 votes
1 answer
40 views

Single Method for 2 Ultrasonic Sensor is not working as expected

So I have created a method to read and return Ultrasonic Sensor Data. I have 2 Ultrasonic Sensors. Below is my code.    // Ultrasonic Pins    #define T1 2 &...
0 votes
0 answers
120 views

ESP32 Multiple Master SPI Setup -> VSPI - NRF24 and HSPI - ST7735 Simultaneously

I have been trying to use dual SPI masters, I know it is possible and followed the explanation best I could, and the code below is what I got. The issue is that the code is running the radio but not ...
1 vote
1 answer
163 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 vote
1 answer
127 views

Need help ATtiny85 not working as standalone

I have ATTiny85 that I want to drive a servo. Burned bootloader to the ATTiny85 and I am using HW-260 development board to program and to test the code. While the ATTiny85 works perfectly on the HW-...
1 vote
2 answers
103 views

Stoplight Simulator - White LED not turning on with button press [closed]

I am working on a relatively simple stoplight simulator that uses four LEDs - red, green, yellow, and white - in addition to a button. The 3 colored stoplight LEDs cycle as a real stoplight would. If ...
-1 votes
1 answer
51 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 ...
  • 89
1 vote
0 answers
137 views

Is there a FreeRTOS library for an Arduino Nano 33 BLE?

I can't seem to find any library online so I can start developing FreeRTOS tasks for the Arduino Nano 33 BLE in the Arduino IDE. Is FreeRTOS incompatible with this Arduino?
  • 11
1 vote
0 answers
71 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 ...
  • 11
-1 votes
1 answer
78 views

Multiple if else statements for distance-triggered LEDs

I have a sketch that calculates simple distance from the device to the nearest preset GPS coordinate (there are 3 in total) and I would like to have LEDs in the neopixel strip light up according to ...
  • 89
0 votes
0 answers
75 views

Delay in I2S audio from SD card to MAX98357A aplifier

I am trying to play wav file saved in SD card using ESP32 dev module. For output I am using MAX98357A amplifier module and using I2S. Everything works fine except I get delay in output of around 4 to ...
  • 109
0 votes
1 answer
71 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 ...
-2 votes
1 answer
99 views

Serial communication between python and Arduino nano BLE sense 33 for running six DC motor

I am controlling six DC motors by varying their voltage. I have figured out the voltage required for each motor in python; now it's time to send this voltage through Arduino Nano BLE Sense 33 to run ...
0 votes
0 answers
41 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 ...
  • 1
2 votes
1 answer
68 views

Issues Uploading Code to ATTiny84 with Sparkfun AVR Pocket Programmer and ATTinyCore

I am getting back into programming with Arduino and built a POV fidget spinner inspired by an instructable by MakersBox. I am using the SparkFun AVR Pocket Programmer and an ATTiny84 (8MHz internal ...
0 votes
0 answers
77 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 ...
  • 1,184
2 votes
1 answer
74 views

for loop crashes program

Just started out with tinyduino(tinycircuits) and I am trying to develop a hangman game. I have this chunk of code that randomly picks a word from my array. I've omitted some code for readability. ...
2 votes
2 answers
121 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 ...
-1 votes
1 answer
41 views

Continous Rotation Servo not changing directions

I have coded a robot to be controlled by a ps3 Controller. I am using continous rotation servos but unfortunately I can not figure out how to get them to change direction. My input for my if ...
  • 1
0 votes
1 answer
75 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
2 answers
80 views

How to reduce codes numbers

I am new in Arduino projects, i made a digital counter that counts from 00 to 99. Here is my code below void setup() { pinMode(0,OUTPUT); pinMode(1,OUTPUT); pinMode(2,OUTPUT); pinMode(3,OUTPUT); ...

1
2 3 4 5
31