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
0
votes
1answer
80 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
1answer
760 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
52 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
35 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 ...
1
vote
0answers
29 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. ...
1
vote
0answers
35 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
87 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 ...
1
vote
0answers
72 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 ...
2
votes
1answer
176 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
92 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 ...
1
vote
0answers
398 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
65 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 ...
1
vote
0answers
231 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
32 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 ...
1
vote
0answers
55 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
46 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
394 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
816 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
426 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
1answer
190 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
31 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
198 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 ...
1
vote
1answer
82 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
210 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
53 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
vote
1answer
90 views

How to find the time of any point on the graph on an Arduino serial plotter or Processing software?

I am plotting the graph of some sensor values on my Arduino serial plotter which looks something like this - But what I want to do is hover over any point on the graph and display the time at that ...
1
vote
0answers
45 views

hello,i have an problem with my arduino with an lcd

i've totally done everything i could,but when i run my arduino uno with my 16*2 lcd (with i2c) . it has a higher brightness on the top and a lower one in the bottom. ive even tried putting example ...
1
vote
0answers
236 views

Uploading arduino code to race drone flight controller

I am working on VTOL aircraft and currently I am looking for some good board as flight controller (FC). I could made it by myself, but it requests lot of time. I was thinking about one of fpv drone FC ...
1
vote
1answer
71 views

C3 not declared in this scope when running MIDI example code

I'm trying to run the MIDI example from Arduino.CC in Arduino Studio. I am using an Arduino Leonardo, which has USB HID capabilities. I have installed the library as mentioned: When I press the ...
1
vote
2answers
68 views

Is there a way to reuse an old robot using arduino?

I had purchased a simple robot (named Qu-Bot) for a school project a couple of years ago. After the project, it just went into the attic. A few days ago, I purchased an Arduino Uno and started ...
1
vote
1answer
39 views

Condition in a while loop not updated on my mkr1010

I am using a server-client system where i send data from the server to the client to turn on a led (the onboard led). Led must be turned off using digital input (labeled 7 on the connector). I use ...
1
vote
1answer
40 views

How to load scal factor external to the code?

We know that, we need calibration factors (scale factors) to read current sensor data (ACS758) to arduino. I am also using voltage reader using voltage divider circuit for my project. I need to build ...
0
votes
1answer
47 views

I keep getting this error exit status 1 expected ';' before 'DigiKeyboard'

\ here is my code include "DigiKeyboard.h" void setup() { DigiKeyboard.sendKeyStroke(0); DigiKeyboard.delay(100); DigiKeyboard.sendKeyStroke(MOD_GUI_LEFT); DigiKeyboard.delay(100); ...
0
votes
1answer
50 views

How are libraries added to the Arduino library manager?

Who curates the list of libraries in the Tools / Manage Libraries menu, and what is the procedure for submitting code for consideration?
0
votes
1answer
78 views

pubsubclient won't compile in Arduino and VSCode IDEs

I've compiled successfully a year ago in Arduino IDE, but lately I'm getting fatal errors: /Users/davidjeffers/Documents/Arduino/libraries/PubSubClient/src/PubSubClient.cpp: At global scope: /Users/...
1
vote
0answers
62 views

Trying to use Timer0 on Arduino Mega

I've recently been looking at Timers and I'm trying to generate a PWM frequency at 250000Hz using Timer0 on PIN 4. When I set OCR0A = 63 I get nothing from the light however when I set OCR0A = 125 it ...
2
votes
2answers
464 views

Crash when serving static files width ESP8266WebServer

For the past two days, I've been trying to set up an ESP8266WebServer to serve my static web app files from SPIFFS. But as soon as I make a call to serveStatic, the ESP crashes. This is the exact code ...
1
vote
2answers
78 views

Gratuitious instantiation of `Serial`, why?

Let's take a very simple sketch, any simple one-.ino sketch. Say, just a led blinker like this void setup() { pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW); } void loop() { ...
0
votes
1answer
1k views

HTTP POST from Arduino/ESP8266/ESP32 How to send parameters (x-www-form-urlencoded)

EDIT: Thank you for the answer, also we had figured out how to do it Micropython too - I believe that it is relevant for the Arduino/ESP8266/ESP32 community to share this too. https://github.com/...
0
votes
1answer
507 views

How to get the free/used space on a SD card and transmit it

I'm using this block of code to read and sum up the bytes of all the text files I have on an SD card: long get_sd_memory_taken() { File dir = SD.open("/"); long sd_memory_taken; int c = 0; ...
0
votes
1answer
446 views

ESP32 on Arduino IDE: Identify the board type in code (preprocessor macro)

I have read the answers on this post, but they do not seem to be providing a solution for ESP32 boards. Is there a way to get the .name that is used from the boards.txt without modifying the platform....
1
vote
1answer
691 views

SCLK pulses not seen when using SPI on ESP32

I am using the following code in my esp32 using arduino IDE for spi communication which is an example code - #include <SPI.h> static const int spiClk = 1000000; // 1 MHz //uninitalised ...
1
vote
0answers
188 views

Client.available remains empty (0)

i use the "client.availbale" to check incoming data on the (mkr1010) client coming from (mkr1010) server but it always contains "0". Serial printing (monitor) it on server works. It looks as if the ...
1
vote
0answers
26 views

sending numbers from server to client (arduino mkr1010)

I want to send basic information from a server to a client. 4 numbers representing a random sequence for example 0100. I have put this in byte array and use the "server.write" to send it to the ...
3
votes
1answer
204 views

How do I set up a multi-file project in the Arduino IDE?

Suppose I have a project with several modules and a main program. This works well by adding the modules to main_program. module1.cpp module1.h module2.cpp module2.h ... main_program.ino I'm having ...
1
vote
0answers
398 views

The Arduino Oscilloscope - Error message: 'ADCSRA' was not declared in this scope

Project: The Arduino Oscilloscope - published in The MagPi No. 71 July 2018 This is my first Arduino project! I'm porting over the sketch "Gather_A0.ino" but I'm encountering compile errors: Error ...
0
votes
1answer
133 views

No Websockets Server for Arduino mkr1010?

I've seen some interesting explanations on using websocket comms on mkr 1010 but it's always handling the mkr 1010 as the client and the server being always a computer or some other "non-arduino" ...
0
votes
2answers
675 views

Error compiling for board Arduino Nano

I have multiple Arduino Nano boards. I am able to compile or upload code only once. If I try to compile/upload again I get an error: "Error compiling for board Arduino Nano". However there is a ...
0
votes
1answer
69 views

Uno - error during uploading with library

I'm writing the code in VS Code on IO Platform. Yesterday i finished my code and uploaded it to the Arduino Uno. It works fine. Next day i launched the VS Code and i changed the code a bit, then i ...
2
votes
0answers
37 views

Split string using a delimiter then saving to different variables [duplicate]

I have a string that looks something like this "43;27;42;27". It is the data from 4 DHT22 temperature sensors, i need to splice this string every ";" and save the number to a variable. In the end, I ...

1
3 4
5
6 7
29