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
vote
2answers
69 views

Switch case (millis()) UPDATED

I want to create a sketch that counts the days from the moment the "project" start and send and osc message every two days (or more) for 3 weeks. So: day zero : osc message -> 0 day two. : ...
1
vote
0answers
26 views

Arduino Serial Communication possible with IDE 1.8.5 but not with IDE 1.8.13

I have the following problem: I am working with an Arduino Nano 33 IoT and a second serial interface via sercom0. The code is just taken from this tutorial: http://www.getmicros.net/serial-...
1
vote
0answers
44 views

how to clear heap memory in esp32?

I am using Free RTOS on esp32 in my program. However at some point of time when I execute xTaskCreate() it returns -1 , which error is could_not_allocate_required_memory. In my program, each time i ...
1
vote
1answer
48 views

esp32 Stack canary watchpoint triggered

I am writing a program for esp32 on Arduino IDE. On some point of execution of code for File reading I am facing this exception, Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception) ...
1
vote
1answer
34 views

IDE compiles incorrect file after renaming them

I am using the stand alone Arduino IDE to build some projects, and I have a few .cpp files now, but during work I renamed them .c and back. When compiling the project now (with Ctrl-R), it is still ...
1
vote
1answer
22 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 ...
1
vote
1answer
60 views

How do I resolve error message “assignment of function 'void digitalWrite (uint8_t, uint_8)”?

I am a beginner in using Arduino and programming in c/c++. I am trying to connect a 10-segment LED and a moisture sensor to my Arduino Uno, and when the moisture level is very low, the first 2 red ...
1
vote
1answer
38 views

Why do I get different results when compiling the same code with different ide?

I have a basic code about reading true rms.I compiled the same code with arduino ide and atmel studio, then ran it in a proteus simulation.I'm trying to measure how long the read_rms() function takes. ...
2
votes
1answer
33 views

ESP8266 SocketIOclient constant disconnect with Python WebServerSocket

I am writing a program that echos back the message sent to the web socket server on a host machine. When running the ESP module, the connection is established but immediately disconnects as seen in ...
1
vote
0answers
50 views

Why is the same program taking up more space in atmel studio?

When I compile the same program with atmel studio, the result is: Program Memory Usage : 1326 bytes 16,2 % Full Data Memory Usage : 0 bytes 0,0 % Full ...
0
votes
1answer
52 views

After reinstalling Arduino IDE, can't program Attiny with Arduino Uno [solved]

I use Ubuntu 20.04, and recently have reinstalled Arduino IDE. After that, I can't program Attiny85 or 2313 with an Arduino Uno board. Earlier, this setup worked fine for -85 chip. Test 1: upload a ...
0
votes
0answers
103 views

Arduino two sketch add to single sketch based on timers [duplicate]

How to add two sketch in single sketch and run same time because one sketch timer1 used and another sketch used timer0 and timer2 both sketch have setup()and loop () so how to add please help us with ...
0
votes
1answer
27 views

Making HTTPS requests using ESP8266 AT commands

I am trying to make HTTPS GET/POST requests to the following server using AT commands. AT+CIPSTART="TCP","54.166.71.140 ",443 I get errors when i use port 443 but on port 80 the ...
1
vote
0answers
35 views

GET/POST request via AT Commands

I am trying to send a simple GET/POST request to a dummy end point on https://requestbin.com/. I am using an ESP8266 module. I am using the arduino serial monitor to send these AT commands. I connect ...
0
votes
0answers
38 views

DHT11 sensor not working on ESP8266, no response

recently Ive set up an ESP8266 to control temperature and humidity in rooms, for this Im using DHT11 sensor, thats the basic code I have in order to check functionality in Arduino IDE #include "...
0
votes
0answers
85 views

Fried 2 MKR Wifi 1010 after plugging them to a solar panel

I fried 2 MKR Wifi 1010 after powering them using a solar panel. Here is the diagram: Both were working fine as long as I used the LiPo battery and/or my macbook (using USB) as power sources. They ...
1
vote
0answers
21 views

How can I rewrite my Bluetooth Classic Arduino code into Bluetooth Low Energy Arduino code (and have everything working the same)

My original code for BT Classic My Work in Progress BLE Code I am trying to take all I did in BT Classic and have it working exacly the same in BLE but the Rssi keeps returning 0's in the BLE code and ...
1
vote
2answers
57 views

Can't upload code to Arduino board on Mac

I'm using a MacBook Pro with 10.13.6, an Official Arduino Uno Board and Arduino 1.8.13 IDE. I'm having troubles uploading code to the Arduino Board. I have 5 ports available: dev/cu.-AvnetaSPPPort ...
1
vote
0answers
22 views

Why Micro SD card can't log the data when we connect servo motor?

recently Iam making a project which includes Arduino Nano, MPU6050, BMP280, micro SD card module and a servo motor. Brief explanation of my project is basically I am trying to collect data from the ...
2
votes
1answer
31 views

Recognition of the signal duration from the sensor

Good afternoon! I create a human movement alarm. I am signaling atmega328. I receive a signal from the sensor and if there is a signal, then using the "tone" I generate a sound. I am using ...
3
votes
0answers
68 views

Why Arduino Pro IDE is not open source? [closed]

I just found the alpha version of Arduino Pro IDE and I was wondering why this project is not open source as the classic IDE. I didn't found anything about that online.
1
vote
0answers
41 views

Error compiling for board NodeMCU 1.0 (ESP-12E Module)

I am trying to connect MFRC522 using nodeMCU and send a simple code to scan the tags but the IDE brings the following error: Multiple libraries were found for "MFRC522.h" Used: /home/...
1
vote
1answer
35 views

Register writing by compound assignment and pointer in Arduino due

I'm confused with register wrting method by compound assignment and/or pointer because I don't know where are some of the values come from. Example 1 REG_PMC_PCER1 |= PMC_PCER1_PID36; // Enable PWM - ...
0
votes
1answer
45 views

NRF24l01 Channel switching

I have a NRF24L01 radio module. The description indicates that it can work in the ISM frequency range of 2.400 ... 2.525 GHz. The channel step is 1 MHz, and there are 125 channels in total. The ...
5
votes
1answer
273 views

Does the compiled binary of a sketch include uncalled functions from a library?

I am writing a GUI using a TFT display and the Adafruit GFX library and its default font on Arduino Nano. I want to be memory efficient and I assumed that the 'optimise for size' default setting of ...
0
votes
1answer
38 views

Arduino waits until button release to activate

I'm fairly new to arduino, and on my own I'm trying to move a servo to the left and right using 2 buttons. I've got it working for the most part, however when I hold the button down nothing happens, ...
3
votes
2answers
203 views

Form a signal from an array of bits

I need to reproduce with a digital pin of an Arduino such a key in the form of a sequence of 1's and 0's, where a one takes 2 ms high and 2 ms low, and a zero takes 1 ms high and 1 ms low. int key =...
0
votes
1answer
37 views

MKR ZERO is not detected in IDE / MKR ZERO not showing up in windows 8.1/

I m connect it with my IDE software and its work perfectly yesterday, but today morning I'm connected it to software to upload another sketch but its didn't detect the port and the charge led is not ...
2
votes
2answers
92 views

Programming Questions / Capacitive Soil Moisture Sensor

Good day All, This is my first time posting to this forum and kind off my last resort as I would've liked to figure it out myself. I am trying to create a soil moisture probe which can be used on ...
1
vote
0answers
34 views

esp8266 sending to both webserver and myphpadmin

I have tried to send all the variables to both the webpage and to myphpadmin. I seperated the code into two functions and put the functions inside the void loop() function under the impression that it ...
0
votes
0answers
83 views

Alternatives to Nextion display

I am wanting to have a display where I can design the GUI on a program and then somehow transfer it to the display. For the graphics I want to make, it would be really hard to manually write the code. ...
3
votes
2answers
73 views

'Servo_Pointer' was not declared in this scope

I can't seem to find the error I made; can anyone help me? The error message: 'Servo_Pointer' was not declared in this scope I get the error at the end of the code with the line: Servo_Pointer.write(...
0
votes
1answer
40 views

Reading and Writing to a JSON File on the Desktop from Arduino?

I'm fairly new to Arduino. I'm working on a project where I'm making HTTP requests using a python code and this lets me read and write to a JSON file on my desktop. I have an Arduino with sensors that ...
1
vote
0answers
29 views

Multi-array number generation

This part of my project is very hard for my brain to wrap around and comprehend. But basically I just need to go through every combination. For example: If I have an array with 255 variables and I ...
0
votes
1answer
68 views

If and while statements not working

The second and third "while and "if" are not working but first "While" and "if" does work.. Am I doing something wrong? #include <DFMiniMp3.h> int sw1 = 3; ...
1
vote
1answer
175 views

What can I do to optimise this code?

I have optimised it as much as I feel I can and want to know what suggestions you have that could make it more efficient etc. Note: I know the array goes on forever :) volatile uint16_t IRCode[]={340,...
2
votes
0answers
23 views

Brushless motor vibration/jitter/noise - arduino uno

I am currently using these motors and driving them off these drivers and an arduino uno, and alternatively trying to make them turn using the setup in step 6 (both with l298n and without) in this ...
1
vote
1answer
37 views

How can I program 2 ultrasonic sensor, one on the servo motor and one attached on the front side of the car?

I want to attach two ultrasonic sensors to an obstacle to avoiding the car. One on the front of the car Second on the servo motor on the car It is an obstacle avoidance Project. I am getting the ...
2
votes
0answers
31 views

Clock Problem when Migrating from Arduino IDE Mighty Core to Atmel Studio

I've been programming an ATMega1284 using the Arduino IDE with the MightyCore package. I'm now trying to migrate to Atmel Studio. Atmel Studio (7.0) will now compile the sketch and all required ...
1
vote
0answers
51 views

Arduino 2 times slower? Broken?

Hello I have been here for a couple hours troubleshooting code and turns out it wasn't even my code that was the problem. My arduino uno is like 2 times slower than what its supposed to be. If I blink ...
0
votes
1answer
79 views

Infrared Low Frequency Transmission

I have some basic code that I will soon expand for my project which is a universal remote for air conditioners. I have all of the codes but the problem is 3 of the codes are below 1khz. (500hz). My ...
0
votes
0answers
48 views

How to add additional include path (e.g. as a flag) to Arduino Compiler?

I have been trying for a while to add an additional include path to Arduino compiler (in VS-Code) to be able to compile my project that has header and source files distributed in different levels of ...
0
votes
1answer
44 views

Wide range of protocols one chip?

Is there some way to do raw radio on a esp32 and change frequencies. If not what would I need to transmit rf, wifi, bluetooth, zigbee etc. There seems to be no tutorials on how to do anything of the ...
0
votes
1answer
105 views

No SPIFFS only OTA in NodeMCU ESP8266

I have a NodeMCU ESP8266 ESP-12E and I tried uploading a file thru the SPIFFS. I am not sure why I see OTA instead of the SPIFFS? Is there a configuration that I missed?
2
votes
0answers
40 views

Communication between two slaves via single SPI bus

I am trying to control both RC522 and lcd st7920 (128x64) via a single SPI bus on the NodeMCU esp8266. I am using Arduino core for my esp8266. Now in this portion of the code, I only want to display ...
1
vote
1answer
46 views

ESP-NOW with esp32 and esp8266

I want to use ESP-NOW with esp32 and esp8266. The esp32 will mostly send data to esp8266.I was not able to find any good tutorial on YouTube to achieve this. The only videos I found was for either ...
1
vote
0answers
84 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 ...
2
votes
1answer
36 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 ...
0
votes
2answers
167 views

Is 1MB flash enough for OTA upload in ESP-01?

I'am asking this question, because in my ESP-01 OTA upload always fail. In fact update won't even start. When update was triggered esp wifi led(build in blue) indicates "working" , but after ...
1
vote
1answer
45 views

Error message - Need help

I found this Haptic Headband project on YouTube (link below) and I am trying to verify the code that was given in the instructions with the Arduino IDE. However, I keep getting the message below and ...

1
2 3 4 5
28