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

Ardunio wireless voice transmission

I made a project based on calling with gsm module and arduino and now i want to transmit to voice wirelessly to my bluetooth earphone which module should i use for this purpose.
1
vote
0answers
71 views

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

rst:0x10 (RTCWDT_RTC_RESET),boot:0x1f (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371 I am getting this error in my esp32 devkit v1 How to solve it? I am using arduino IDE for programming ...
4
votes
3answers
365 views

Programming Arduino Uno R3 to trigger a relay once every 24 hours

I programmed Arduino UNO R3 to trigger a relay once every 24 hours from the moment it is powered on I calculated milliseconds and used the function delay() 24 hours * 60 minutes each hour * 60 second ...
2
votes
2answers
497 views

How to create a 1 hour timer with ATtiny13A microcontroller?

I want to control an AC load such that it powered on for 1 minute, then off for 1 hour, then on again for 1 min, and so on, in a loop. I just modified the blink sketch to do: Turn A1 on Then delay ...
1
vote
0answers
36 views

ESP8266-01 Upload Sketch Problem Arduino UNO

My problem is actually in two stages. I am very new to arduino uno and 8266-01. I have read many documents and watched videos for nearly 2 weeks, but I cannot even run the simplest "blink" ...
8
votes
1answer
2k views

Confuse about PROGMEM and R“====()====”

I saw the following code from https://circuits4you.com/2018/03/10/esp8266-jquery-and-ajax-web-server/ but I could not understand it thoroughly... I looked at the documentation of PROGMEM from this ...
2
votes
0answers
73 views

SG 90 servos randomly spinning

I started one project where i need 4 servos to control 4 grabbers jaws. i use STM32F103C8T6 with arduino IDE for programming it. The motor TZT Micro Servo 9g SG 90. First, I was playing with stepper ...
1
vote
0answers
387 views

How to use LCD display HD44780 with arduino without using any library

My professor wants me to implement a display to an old project prototype we had laying around on the lab. But he wants me NOT to use LiquidCrystal.h library or any other to achieve that. I read ...
1
vote
0answers
33 views

How to create QR code [closed]

How to create qr code based on 30 digit number and send the generated qr code to wireless printer.
1
vote
0answers
101 views

Change arduino output from input

I'm trying to change values such that the arduino uno outputs comes from what is input, with the code, int PinOutput = 11; int PinInput = A0; int inph; int inpl; int input; void setup() { // put ...
1
vote
0answers
159 views

Nextion Display won't show data

I'm prototyping my Weather Station on Wemos D1 mini pro (ESP8266) with BME280 sensor and Nextion Display. The problem is that my display doesn't show data from the sensor and from the internet (...
1
vote
2answers
775 views

Controling 5V relay with Wemos D1 R1

I would like to control a 5V relay with Wemos D1 R1 module through webserver. I'm using the following modules: Tongling 5vdc Relay Wemos D1 R1 I'm using the following schematic: and here is the ...
-2
votes
1answer
43 views

Problem with serial input from android serial usb app

I'm using two (nrf24L01 + Arduino Uno) nodes to communicate with each other. Serial input from node1 will be sent to node2. A special character 'p' when sent to node2, it will reply that it's ...
0
votes
0answers
95 views

ESP8266, Twilio doesn't send SMS

I've been trying to create SMS alarm using Twilio, Firebase and Arduino IDE. Using sensors I am measuring the temperature. If the temperature is higher than a specified value (ESP reads that value ...
2
votes
2answers
3k views

Linux can not open arduino IDE - java.lang.NullPointerException

I use arch linux. I installed arduino ide with pacman. When I try to run it, loading window will show for few socends and than program crashes. There are logs: john@arch-thinkpad ~ [1]> arduino ...
0
votes
1answer
144 views

ESP8266 - ESP01S with relay. Toggling the relay with http (GPIO0) and GPIO2 at the same time

I have an ESP8266 module with a relay like this: https://aliexpress.com/item/4000348370586.html. I have been able to control the module, I can deactivate and activate the relay by means of an http ...
0
votes
0answers
40 views

Arduino SD card module failure

I am recieving SD card failuer and I did everything I could. I use the correct SPI pins; CS > 10 MOSI > 11 MISO > 12 SCK > 13 VCC > 5v GND > GND I did format my SD card to FAT32 I ...
0
votes
1answer
269 views

How to push two values to the same key from Arduino to Firebase

I would like to push two values at the same time (to the same node) from arduino to firebase. I tried to create an array and push the array to firebase, however, that is not working. Here are the two ...
1
vote
0answers
99 views

ESP32-POE/ISO unstable after 10 days of power up

i have one ESP32-POE and ESP32-POE and i'm using the Olimex RS485 module to read a power meter that is placed near the ESP32 (5 meters of CAT5 cable - 9600 8N1). My device has this workflow (it's ...
0
votes
0answers
27 views

How do I disable drag-and-drop text editing in Arduino IDE

How do I disable drag-and-drop text editing in Arduino IDE? This is very annoying. If not careful, this causes code to move around when trying to copy and paste...
0
votes
1answer
327 views

Ardutester Millenium I2c Lcd Not Showing Anything!

Hiii Friends...., I am Trying to Build Components tester Using Arduino Specifically Atmega328p Chip . I Downloaded The Ardutester Millenium Code From Here .. https://create.arduino.cc/projecthub/...
2
votes
0answers
182 views

Using an ATTiny85 and DigiKeyboard.h, can I detect when USB HID is connected?

I am building a project to send HID keystrokes to a computer with an ATTiny85. I want to detect when the USB communication is working, in order to turn on a LED saying that everything is good. If USB ...
2
votes
3answers
76 views

Using Two Arduino to Lower Power Consumption

I am planning to build a water quality sensor with ph, temperature, and dissolved oxygen, conductivity. The power consumption looks like it will be very high especially due to the signal isolator, I'm ...
1
vote
2answers
354 views

What exactly does the return type do in a function?

something I've never understood and still don't is, what does the return type do specifically? Everyone in tutorials just say that void returns nothing and int returns int, etc. But what does that ...
1
vote
0answers
92 views

regarding ardunio error

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno" c:\program files (x86)\arduino\hardware\tools\avr\bin../lib/gcc/avr/7.3.0/../../../../avr/bin/ar.exe: unable to rename 'core\core.a'; ...
0
votes
0answers
43 views

2xArduinos, 2xDevices, I2C setup

Is it valid configuration using hardware I2C pins: Especially: can NanoEvery initialize communication with DS2482, while it is slave for Mega2560? Using Wire library or should I use software I2C when ...
0
votes
0answers
94 views

I2C LCD displaying gibberish

I have connected a I2C LCD with my NodeMCU v3. My pin configuration is as follows: Node MCU ---> I2C LCD GND GND 3V VIN SDA D2 SCL D1 I have been testing a ...
0
votes
0answers
150 views

watchdog timer giving me fits on ESP8266, how to find relevant code from Serial output describing the RST?

I've written a pair of sketches for two NodeMCUs to implement a noise meter. The master MCU voltage samples off an opamp's output pin and periodically digests 500 samples at a time into an RMS-type ...
1
vote
0answers
43 views

Not able to setup Arduino port

I bought my Robotics kit yesterday. And, I am not able to set up my Arduino port. I have tried every method I could find on the internet. I am attaching images of my device manager and error I am ...
0
votes
1answer
742 views

esp32 http client response only 200 didn't receive the data after that

i am using esp32 as a client and using following example. So here i am getting header response only that is 200. I am not getting any response after that. here is the example #include <WiFi.h> #...
-3
votes
1answer
262 views

Any limitation on array size in Arduino Mega 2560?

I am writing an Arduino code with 3 arrays. Two of those are double and other one is int. Further first two arrays have nearly 420 elements for each. Now I noticed that with more that 89 elements on ...
1
vote
2answers
455 views

How do you remove an item from array arduino?

Is there a way that can change {3, 5, 3, 6} to {3, 5, 6} with a function? I checked all the arduino forums but they don't give the answer i need (just delete 1 item from an array with a function like ...
0
votes
0answers
40 views

esp32-pico-4d not working

My power supply is feeding the esp32-pico with 5v tho it says that there is 0 amps power drain, already there I know something isn't working since the power drain should be around 0.080amps, (it can ...
1
vote
1answer
139 views

Why is there a need of use delay() after using Serial.flush() in the program

This code is a part of a long code for understanding serial communication and the functions related to it. char buffer[18]; int red, green, blue; int RedPin = 11; int GreenPin = 10; int BluePin = 9; ...
0
votes
0answers
97 views

Burning Digispark bootloader without an Arduino

I've been wondering if there is any method to burn a Micronucleus bootloader into a blank ATtiny85 Digispark using just Windows or a Linux distro, and not needing another Arduino board such as UNO ...
0
votes
1answer
259 views

Cannot send any UDP packets from ESP8266 Wemos D1

I am attempting to send sensor data from a battery-powered device using UDP. The goal is to send a datagram immediately after the wifi station awakes from sleep then immediately go back to sleep after ...
1
vote
0answers
144 views

Digispark green led being the only one to turn on

I was doing some tests with an ATtiny85 Digispark module using Arduino IDE on my Windows PC. I was testing some stuff with the DigiKeyboard library from Digistump. Everything was going fine until ...
1
vote
0answers
51 views

Arduino IDE sketch for firebase-Dragino Shield v1.4

I would really appreciate it if someone could recommend a sketch for Arduino IDE that I can use to connect my arduino Lora shield v1.4 to firebase. All the sketches I find are for only esp8266 module. ...
1
vote
0answers
206 views

esp32 e-paper driver not working

I am trying to setup waveshare 7.5 display (Waveshare_7_5) with esp32 e-paper driver using ESP32-e-Paper-Weather-Display My code is here https://pastebin.com/raw/2zQDe9a9, have corresponding ...
0
votes
0answers
22 views

Defining a function before a class makes the class undefined? (MWE provided) [duplicate]

In ArduinoIDE 1.8.12 this code will Verify successfully: struct myINT { int i; }; myINT makeINT() { return myINT{5}; } void setup() {} void loop() {} ...no surprise, right? However this won't: ...
-1
votes
1answer
54 views

How to get data out of loop?

hi i wrote a code(i modified it actually, please forgive me, im in a mess please help me if you can) for my esp8266 to serial communicate with at tiny 85 ,it will monitor switch state and publish ...
0
votes
1answer
88 views

Error while inputting EEPROM.read() and EEPROM.write()

I am trying to store data in ATmega328 (Arduino Uno) using the following code using tinkercad: #include <EEPROM.h> void setup() { int addr, data=1; Serial.begin(9600); for (addr=0; addr&...
1
vote
0answers
33 views

how to serially off leds in an esp running mqtt

hi im using at tiny 85 to monitor dc switches and to serial print with this code below to esp8266 with local broker to turn leds on and off but its only working through mqtt but not with physical ...
1
vote
0answers
273 views

ESP8266 NODEMCU V3 web server with MAX7219 and DS3231 RTC

I am using ESP8266 NodeMCU with MAX7219 and a DS3231 teal time clock. I want to display the time and some text. The display is made of 4 FC16 modules which are made of 4 8x8 MAX7219 led matrix modules ...
1
vote
1answer
57 views

Using RX TX pin

Can i use pin RX TX on Arduino Uno as reguler pin ? . For input and output pin , because two digital pin on my board doesn’t work . Thank’s
-3
votes
1answer
80 views

Arduino expected ':' before '{' token

I wanted to compile a project yesterday which always worked until now. Probably since an adjustment of the libraries (update) I have not been able to do this anymore. I ask for help. ERRORMESSAGE: ...
0
votes
0answers
189 views

Fail starting Arduino IDE Ubuntu 18.04

for unknown reason, my Arduino IDE 1.8.12 stopped starting up ( worked OK before ). Can anyone share some steps understanding why ? edit1 after executing ./arduino guy@desktop:~/arduino-1.8.12$ ./...
0
votes
1answer
504 views

Running hardware interrupt function on NodeMCU ESP8266, Exception(0) after four iterations, can't disarm interupt function

I've been trying to test the stability and consistency of hardware interrupts on my NodeMCU ESP8266. I'm using the Arduino IDE. This sketch should not require any external circuitry and I think, but ...
-2
votes
1answer
585 views

How do I add multiple URLs to the Board Manager?

In the preferences menu I would like to add a second URL to the "Additional Boards Manager URLs:". What's the proper format?
0
votes
1answer
142 views

Compile-time 'Undefined reference' error for functions defined in a .cpp source file that are called in my main project file

I'm currently working with the NodeMCU ESP12E and MPU6050 IMU using the Arduino IDE and wanted to create a project that has a .h file that declares the variables and functions. In the .cpp file, I ...

1 2 3
4
5
29