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, Mac OS X, and Linux.

Filter by
Sorted by
Tagged with
-1
votes
1answer
33 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 ...
0
votes
2answers
25 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
11 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.048amps, when I ...
0
votes
1answer
28 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
27 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
0answers
44 views

Arduino-Cli allow download libraries directly from GitHub?

I am creating some libraries that have other dependencies also created by me, and are not yet available for installation via the Arduino Library Manager, these libraries can be found for example at ...
0
votes
1answer
31 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 ...
0
votes
0answers
35 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 ...
0
votes
0answers
37 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. ...
0
votes
0answers
22 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
48 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
27 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&...
0
votes
0answers
24 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 ...
0
votes
0answers
39 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 ...
0
votes
1answer
48 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
45 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: ...
-1
votes
0answers
28 views

MIT App Inventor 2 and Android connected to Arduino - sending separate characteristics over BLE

Managed to find examples for sending separate data readings from Arduino BLE to Android phone with MIT App Inventor 2. But was only able to parse the data using a delimiter from a string put together ...
0
votes
0answers
41 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
37 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 ...
0
votes
0answers
38 views

Circuit Playground Express & Atmel Studio 7: Issues compiling binary file

I am having trouble compiling a binary .bin file that runs on the Adafruit Circuit Playground Express via Atmel Studio 7. Context: I created an Arduino ino sketch in the Arduino IDE. The code in the ...
-2
votes
1answer
45 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
24 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 ...
0
votes
1answer
20 views

Arduino Trinket and CCS811 sensor

I have connected trinket and CCS811 I am trying to build and upload sketch to the module: /****************************************************************************** Read basic CO2 and TVOCs ...
0
votes
0answers
20 views

Why dateTimeCallback in sd.h does not work?

I try to set the file timestamp with with SD.h If i use sdfat.h then it works fine but i must use SD.h. Here is my code: #include <SPI.h> #include <SD.h> File myFile; unsigned int ...
0
votes
1answer
55 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)...
0
votes
0answers
48 views

how to write freerun analog samples to a file on MacOS

I've only just managed to get the Arduino IDE on MacOS set up with my ESP8266 board. My loop is running and I can see the lovely serial output in the Serial Monitor window in the Arduino IDE. I'm ...
0
votes
1answer
25 views

Arduino Uno CTC mode interrupt is not tiggering

I am trying to generate LED blink after 4 second using Interrupt but Interrupt is not triggering not even once . Request: if you have arduino uno r3 please check at your end and let me know result. I ...
0
votes
0answers
22 views

Snake head in snake game always diagonal to rest of body

I am trying to create a basic snake game using the arduino UNO along with the MAX72XX module, the LCD module and the analog joystick module. I have made my program using object orientated programming. ...
0
votes
0answers
18 views

cannot find esp8266 via boardmanager

i'm using arduino ide 1.8.12 opened preferences window and did enter http://arduino.esp8266.com/stable/package_esp8266com_index.json, https://arduino.esp8266.com/stable/package_esp8266com_index.json ...
0
votes
1answer
34 views

Writing to flash memory fails with Optiboot

I am having some issue writing to flash memory on Arduino Uno. I burned the optiboot bootloader that ships with the IDE 1.8.3 to the chip, then uploaded the test_dospm sketch to write content to ...
0
votes
0answers
57 views

Arduino serial coming up with weird characters

I am trying to create a basic snake game using the arduino UNO along with the MAX72XX module, the LCD module and the analog joystick module. I am wanting to program my program using object orientated ...
1
vote
1answer
61 views

I am trying to read input from 5th PIN of PORT B?

In a nutshell i want to read a PORTB 5th pin without using digitalRead API ( i am trying to learn baremetal using arduino-uno-r3) Just to Learn How internal register works i did not used digitalRead ...
1
vote
1answer
28 views

request for member 'attribute' in 'object', which is of non-class type 'int'

I am trying to create a basic snake game using the arduino UNO along with the MAX72XX module, the LCD module and the analog joystick module. I am wanting to program my program using object orientated ...
0
votes
0answers
33 views

File Upload and sending Form data to the ESP using HTTP POST

i want to upload a file from my pc to the esp2966 webserver with sd card. all works fine. But i want to transmit some extra data from a input form field. The Upload works good. in the browser ...
1
vote
3answers
55 views

Arduino parsing Double is incorrect

Im having some problems with parsing gps coordinates with the arduino ide. To be honest I want to process the data without a library. From my sensor I get this String: 4815.98450 The result of ...
0
votes
0answers
40 views

how to get file date and time (Timestamp) from a file on sd card with SD.h?

i want to get the date and time (Timestamp) of a specific file on sd card. How can i do this? I use the sd.h and can not use any other like SdFat.h
0
votes
1answer
23 views

activate a relay with two esp8266 -12e pins

I have an esp8266-12e that I want to activate the reset side of a latching relay. The problem is that the 12e only puts out 12mA/pin and the relay needs more than that. I am using a transistor on ...
0
votes
0answers
48 views

Need debug Software that can be used with Arduino IDE

Background: I have made a standalone Arduino board using Atmega328PB. I have written code for a clock which lights LEDs based on the time. After a day or so it locks up. Sometimes it reboots. I ...
0
votes
1answer
33 views

How can I connect an OLED display to arduino

I'm new on this! So I want to know if is it posible to connect this oled display: oled display to arduino nano and if is it posible where can I found information of how to learn about connect this ...
1
vote
0answers
50 views

STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior

I'm going crazy trying to understand some strange reads from BME280 sensor. With this code: #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <...
0
votes
3answers
191 views

ESP8266 not responding after random intervals of time

4th Update: I bought an ESP32 (the successor to ESP8266) and am getting the same problem. I used the same code except used the Wifi.h library instead, also removed the ESP8266WiFiGratuitous.h code. I ...
0
votes
0answers
60 views

Arduino Nano with old bootloader flash fail

I have an arduino nano clone with Chip CH340G I installed the latest version of the firmware, it's OK I loaded the blink exemple and tried to flash the arduino nano Here are my options I connect the ...
0
votes
0answers
19 views

Android arduino Serial Communication between Wemos D1 R2 & Mini using OTG

I actually have been successful in doing the android arduino serial communication. Now, I want to shift my arduino circuit to Wemos D1 & R2 mini. Because of that reason, I want Android arduino ...
0
votes
1answer
40 views

RGB LED color control with a single value

Apps like Photoshop have a single slider to select color: . I'd like to achieve the same using variable resistance knob as a slider to control color of RGB LED. Can anyone put me on the right track ...
0
votes
0answers
15 views

ESP8266 & 2x VL53L0X Sensors cause WDT resets

I have a system that utilises 2 VL53L0X sensors. This works fine for the majority of time, but after around 20 hours till 2 days (varying), the ESP resets due to Software a WDT, I've managed to do a ...
-1
votes
1answer
44 views

MKR Zero not showing up in WIN10 device manager / Arduino IDE cannot detect port / COM

I'm new to Arduino and hope you guys can give some advise. I bought MKR Zero a few days before and tried to connect to my Win10 laptop. I can see the LED on the board is on, but the Arduino IDE ...
0
votes
1answer
63 views

Large number into variable

Probably something easy but I’ve not resolved it. I’m extracting data from a JSON string and all the values are correct accept for two. They are referring to two date time values and are in ...
4
votes
1answer
124 views

MEGA 2560: Simple program - One analogWrite turns off the other

I'm using Windows 10, Arduino 1.8.12 (Windows Store 1.8.33.0) I have an Arduino MEGA 2560 and a red LED connected to pin 4. #define RED 4 #define GREEN 2 void setup() { analogWrite(GREEN, 0); ...
0
votes
2answers
38 views

Why is function mentioned in global declaration?

I came accross this code for writing data into EPROM in arduino. Why is void printTemp(); void clearEEPROM(); and void writeTemp(); functions are mentioned in global declaration? How will this help? #...

1
2 3 4 5
26