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
0
votes
0answers
16 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
0answers
13 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 ...
0
votes
0answers
35 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
18 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
0answers
30 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/...
1
vote
0answers
36 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 ...
0
votes
2answers
51 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
210 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 ...
0
votes
0answers
35 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
34 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
27 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
39 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 ...
0
votes
0answers
38 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
31 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> #...
-2
votes
1answer
41 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
34 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
22 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 ...
0
votes
1answer
32 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
45 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
51 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
44 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
50 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
39 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
33 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
49 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
30 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
26 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
48 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
50 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
48 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
43 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
60 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
41 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
65 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
25 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
24 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
22 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
94 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
49 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
26 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
19 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
35 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
62 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
31 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
47 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
43 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

1
2 3 4 5
26