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

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 ...
-1
votes
1answer
39 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
0answers
19 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
44 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
2k views

How to configure 2nd Quadrature Decoder IO pins in Arduino IDE

I am working to read two quadrature encoders using a single Arduino DUE, as part of my summer vacations project. According to the following link http://atmel.force.com/support/servlet/fileField?id=...
0
votes
2answers
638 views

Multiple void loops with ESP8266

I want to run multiple sketches on one sketch. I use the method of multiple void loops. It works but esp8266 take a lot of time to execute commands. void Setup() { setup1(); setup2(); } void ...
0
votes
1answer
30 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
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? #...
0
votes
1answer
8k views

Arduino master/slave communication using RS485

I am using Arduino Uno as a Master Device and 3 Arduino Unos as slave devices. I am sending data from each slave to master after every 3 seconds continuously, and is going to execute further logic ...
0
votes
1answer
24 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
20 views

Sensors for four-legged robot [closed]

I've to make a four-legged robot that can avoid obstacles and reach a goal. For the electronics part, I'm using one Arduino Mega 2560 and 12 servo motors ( 3 for each leg ). But I'm confused about ...
0
votes
1answer
24 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 ...
0
votes
1answer
293 views

How to detect the direction of rotation with a sensor encoder timing disk (photoelectric speed sensor)?

I am making a DIY gaming steering wheel and am stuck. For measuring the rotation of the wheel, I'm using a sensor encoder timing disk, which is usually found in printers. - https://robu.in/product/...
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 ...
1
vote
1answer
57 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 ...
0
votes
0answers
55 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
24 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
28 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 ...
0
votes
1answer
23 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 ...
1
vote
3answers
54 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
3answers
136 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
1answer
44 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
0answers
37 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
38 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
1k views

How to use arduino IDE to compile .s files

Hi I'm new to arduino and im using it to learn assembly for my computer hardware 101 class, I read online that I can make the IDE accept .s files and compile them to the board but I dont know how to ...
1
vote
3answers
750 views

How can I use my Arduino sketches on my Raspberry Pi IDE?

I have installed the Arduino IDE 2:1.0.5 on my Raspberry Pi3 under Raspbian and am using a cobbler breakout which provides a nice breadboard. On that breadboard I have installed an Arduino Nano to do ...
-1
votes
0answers
17 views

Arduino problems with Picture Loop in u8glib

I am trying to create a countdown from 6 to 1 (each number will be presented on the OLED display for 1 second). I am using: Arduino nano, SH1106 OLED 1.3 inch. I tried everything that I found on ...
0
votes
1answer
103 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 ...
0
votes
1answer
649 views

HTTP PUT method on NodeMCU/ESP8266

I've been trying to send a put request from my esp8266 for a while not but I can't figure out why it doesn't work and there are barely any posts about put requests online I keep getting errors around ...
0
votes
1answer
22 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
1answer
231 views

src folder in sketch structure and include library from subfolder

My Arduino/PlatformIO libraries folder libraries └── cleaner_robot └── TB6612_Dual ├── tb6612_dual.h └── tb6612_dual.cpp I used this code to innclude it: #include <...
0
votes
4answers
3k views

Wemos D1R2 - Onewire 2 DS18B20 passing to variable

I'm a beginer, did some tests with Uno and now have a Wemos D1R2 on my hands... I'm building a sort of weather station that will send data to thingspeak.com and log this data there. I managed to ...
0
votes
0answers
47 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
30 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
41 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
0answers
47 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 ...
87
votes
22answers
16k views

What are the other IDEs for Arduino?

The basic Arduino IDE lacks a lot of the sophistication present in other IDEs such as code completion, code collapsing, folder organisation, etc. Are there other IDEs that allow programming in C or C++...
90
votes
9answers
209k views

C++ vs. The Arduino Language?

What are the advantages of each language when using the Arduino? I'm thinking this is a good general question, but I'll add a bit about why I'm asking if anyone wants to give me a tip. I'm ...
7
votes
4answers
5k views

Can I use Visual Studio instead of Arduino IDE?

I think that Visual Studio is a great product! I find the Arduino IDE is limited in its features. For example the Arduino IDE does not have: Code prediction Error highlighting Previews of #define ...
1
vote
1answer
812 views

Unable to upload sketch after bootloader has been flashed on Arduino Micro

I have created my own custom Arduino Micro, but I am experiencing problems when I attempt to upload an sketch via USB in Arduino IDE. Here is how I program the Arduino Micro: avrdude -c ...
0
votes
0answers
16 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
39 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
1answer
154 views

Arduino Firebase connection refused error

I am making a project for school where I have to send data from a sensor to a webpage. After doing some research I decided to use a Real-Time Firebase database. Security is not really important and I ...
0
votes
0answers
14 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 ...
0
votes
1answer
99 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
2answers
887 views

PIR motion sensor (HC-SR501) false results with NodeMCU

I have a PIR sensor which I use to detect the motion and turn ON and OFF the lights on the basis of it. I have PIR connected with NodeMCU (ESP8266) based board. I find that sometimes it trigger ...
1
vote
1answer
6k views

Arduino IDE Display Code Line Numbers [closed]

In the Arduino IDE: How can I get the line numbers shown in a sidebar of the editor? It is hard to find which line my errors are referring to without them... I am using Arduino IDE on a form of ...
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
115 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); ...

1
2 3 4 5
26