Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
17 views

Using use the STM32F103C8T6 board with the Arduino [duplicate]

last two days I am trying to programm my blue pill with arduino ide, helplessly... Actually, I managed to install simple blink program, but after that, all other attempts ended up with: Failed to ...
0
votes
0answers
20 views

Nodemcu doesn't work anymore after uploading IDE sketch

After reinstalling Windows 10 and my Arduino IDE, my sketches don't work in nodemcu anymore. I was able to add the url on the preferences and I set the board to both Nodemcu v0.9 and v1 but still it ...
0
votes
1answer
261 views

Error code board and boards.txt? Formatting error? cannot verify alarm.txt or any

Arduino: 1.8.8 (Windows 10), Board: "Arduino/Genuino Uno" Error reading file (E:\arduino\arduino-1.8.8\hardware\arduino\avr**\boards.txt:0**): Invalid line format, should be 'key=value' Error ...
0
votes
0answers
27 views

Arduino Nano drivers

I got a Arduino Uno awhile ago and it took me awhile to set up but it worked when I downloaded the IDE. This time when I bought an Arduino Nano it doesn't pop up with the driver. Doesn't show up ...
-2
votes
0answers
23 views

Which is the best way to collect stats about sensors? [closed]

i have alot of arduinos sending infos about sensors from time to time. example : from 23:00 to 5:00 the LED brightness where reduced to 40% once a motion detected they will go to 100% and after 5 ...
-1
votes
1answer
25 views

Please help me fix this error:expected unqualified-id before 'if'|Arduino [closed]

#define inA1 4 #define inA2 5 // 4,5 DC 1 #define inB1 6 #define inB2 7 // 6,7 DC 2 #define inC1 8 // Buzz #define inL1 2 #define inL2 12 #define inL3 3 #define inL4 13 // Den led byte bluetoothByte ...
0
votes
1answer
26 views

Windows 10 does not recognize Arduino Leonardo

Using Arduino Leonardo, IDE 1.8.9, Windows 10. For a short time, when I first got the Leonardo, Windows 10 would recognize the board; I could see it in devices, Windows 10 would make a sound when ...
0
votes
3answers
60 views

All floats feedback a rounded down integer

So I am very confused at the results I am getting. It seems that floats aren't working properly, and I don't understand why. I was trying to read a temp sensor and convert the reading to celsius. ...
0
votes
1answer
18 views

Change css form color from esp32 if statement

I am fairly new to arduino and ESP though am very familiar with css and javascript. I have an esp webserver that includes a button client.print("<button style='background-color: #F30C0C; color:#...
-3
votes
0answers
24 views

how I get battery percentage of my Bluetooth module [closed]

how I get battery percentage of my Bluetooth module Bluetooth HC-05 battery 300 mah
0
votes
0answers
16 views

Solar panel power Feather Huzzah 8266

I am trying to power a Feather Huzzah 8266 with a LiPo 3.7 V battery in the jst connector and to connect a solar panel 6 V as well to the Feather, which could recharge the LiPo via the Feather on ...
0
votes
0answers
16 views

Arduino Uno does not detect the GPS module

I am trying to start the GLONASS NEO-7M-C module using TinyGPS++ liblary, but in the serial monitor I receive a message all the time that the module is not detected. My connection: PPS - None RX - ...
0
votes
0answers
10 views

Code Optimisation in esp32

I need to optimise my code for a real time system using a esp32. What's a simple and accurate way to benchmarks and statistics on the Arduino platform?
0
votes
0answers
14 views

Position Tracking using magnetic fields [closed]

I am trying to use artificial magnetic fields to measure the position of a moving object. I am going to be using an AC electromagnet to produce a field that is easily filtered from noise and external ...
1
vote
1answer
49 views

ARDUINO IDE debug level for stack trace only (nodeMCU 1.0)

What is the minimum debug level (TOOLS tab) which will display the stack trace on crash? I would like to reduce information clutter in the serial monitor. I understand that debug port must point to ...
0
votes
1answer
2k views

Nextion Dual State Button

I am having an issue with my Nextion display. I have uploaded the following code via Arduino IDE to my Arduino MEGA 2560. My Nextion Editor shows the button as ID:9 on page0 named floor. I am not ...
0
votes
2answers
39 views

How can I rewrite Arduino Code using SPI library into C++?

The issue is that I have code using an Arduino library and need to convert it into C++ so I can use it with a raspberry pi on ROS (Robot operating system). Does anyone know the best way to change it ...
5
votes
3answers
8k views

ESP8266 Analog read interferes with wifi?

Short version: I have a program that connects my ESP8266 to WIFI so I can control a relay connected to it over the internet or a button. I also have a sensor for my door. This software works ...
0
votes
1answer
42 views

Problems with Serial.read()

void loop() { if (sensor.begin() == true) { Serial.print("Current Conversion Mode: "); Serial.println(sensor.getConversionMode()); Serial.println("Enter your mode of Conversion (number ...
-3
votes
1answer
29 views

Spi based pin expander for Arduino

I don't have enough pins on my Esp32 board. I would like to use a pin expander. All the ones I could find online only use i2c. Are there ones available that use SPI? I would like send pwm signals to ...
86
votes
20answers
14k 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++...
1
vote
0answers
23 views

Can't get MMC3416xPJ to work

I needed a magnetometer with a high Output Data Rate (ODR). This is because I wanted to measure AC magnetic fields of around 20-80 Hz. So I decided to go with the MMC3416xPJ prototyping board which ...
0
votes
0answers
23 views

Online Json Service for Esp32

I'm building a simple outdoor temp and humidity sensor with an esp32 I've aquired but I need a platform that I can submit the Json to so that then my laptop can make an http request to get the Json ...
0
votes
1answer
27 views

Is changing values in boards.txt and choosing Burn Bootloader enough to write fuses?

I am using Arduino IDE to program ATtiny84A connected to an Arduino Uno and Programmer set to Arduino as ISP. I would like to modify low and high fuse bits for ATtiny84A. As far I do not understand ...
0
votes
0answers
12 views

How to prevent FirebaseArduino's Firebase.failed() from returning true?

I have an ESP8266 receiving a stream from a firebase value. The value determines the state of an LED output D0. The stream works for the first few minutes after hard reset but Firebase.failed() ...
1
vote
0answers
361 views

Serial Monitor Stops Working

I am using a DIY colour sensor (RGB LED and LDR) and a servo to make a skittles sorter. I am testing out just the colour detection now and printing the RGB values to serial. It worked fine until I ...
0
votes
0answers
31 views

Arduino IDE / C++ microsd card dump trash after 512 characters

Using sample code from Arduino IDE (DumpFile.ino) on a NodeMCU 1.0, I start getting trash (⸮) after 512 characters. Any reason pop to mind? Initializing SD card...card initialized. FGKCW4K2K&...
0
votes
1answer
42 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 ...
0
votes
1answer
3k views

Arduino IDE: Board nodemcuv2 (platform esp8266, package esp8266) is unknown

I am receiving this error after reinstalling Arduino IDE (everything was working fine [same components, same code]): Board nodemcuv2 (platform esp8266, package esp8266) is unknown I have recently ...
0
votes
1answer
39 views

How to write code to make the LED’s flash in the following sequence?

How to write code like this sequence? What is the meaning of 4 decimal? For this, we had to add a delay in the code led_Pin_1 1 0 0 0 led_Pin_2 0 1 0 0 led_Pin_3 0 0 1 0 led_Pin_4 0 0 0 1 my ...
0
votes
1answer
87 views

No headers (.h) found in Documents\Arduino\libraries\arduino_144469 with demo code

I followed this tutorial for a demo code for the SR04 ultrasonic distance sensor (without the LCD display). I've installed the Arduino IDE and wrote the code in it and saved it in some location. ...
0
votes
1answer
42 views

Arduino IDE upload error

I've recently been trying to make program using IRremote(library) in my Arduino IDE(v1.8.9), but whenever I hit the upload button this error message is returned Sketch uses 7514 bytes (23%) of ...
0
votes
2answers
108 views

Include in different file make different compiling error

I'm have problem compiling a code. ardutest.ino: #include "mylib.h" #include <SD.h> void setup() { } void loop() { fn(); } mylib.h: #ifndef mylib_h #define mylib_h #include "Arduino.h" ...
0
votes
0answers
32 views

Can't open serial monitor on Ubuntu (Teensy 3.2)

I am running a simple blink/hello world program on Teensy 3.2. The code is compiling and running fine but I can't see the serial output. When I try to open the serial monitor it gives me "Board at ...
1
vote
0answers
33 views

How to do Led blink with each port, using stm32 boards and adruino

I am completely new to this and willing to do a simple task using stm32f103c8t6 board, which is "led blink". Using ArduinoIDE and a simple circuit as shown in the picture, everything goes fine on ...
1
vote
0answers
318 views

Save data from an LCD KeyPad Shield to an sd card

I'm developing a project that requires save data from a sensor that is connected in a LCD keypad shield, the information should be save in a file into SD card. My code #include <LiquidCrystal.h&...
1
vote
0answers
244 views

Arduino hardwareSerial Bluetooth.println not sending string over 310 chars

Hey all I am wondering if my code below can be modified in order for the Arduino to send more than 300 chars to a HM-10 bluetooth 4.0 le module? #include <SoftwareSerial.h> #define ...
1
vote
1answer
26 views

Parsing and comparing strings on Arduino: different behaviour from gcc?

I am trying to parse a simple string, print the result of the parsing via serial.println, and trigger a function on the basis of the received command. I wrote the code below, which perfectly works in ...
0
votes
1answer
4k views

Arduino IDE “Tools > Serial Port” grayed out (Ubuntu)

I know this has been asked before, but no one's solutions I've seen have worked so far. I just got started with Arduino and downloaded Arduino IDE from the Software Center. When trying to to set up my ...
0
votes
0answers
31 views

Stop getting values from arduino after some time

I have a strange problem, I have Arduino UNO/MEGA and I need to get Gyro sensors's data and I want to see the data in the serial monitor. Seems like a simple task, I wrote a simple C program which ...
1
vote
0answers
131 views

Integer corruption

I use a sensor to measure the temperature. This is returned as float. I feed this float using typecasting (int) to a blink function. This works fine. But the next is step is using this same unchanged ...
0
votes
1answer
44 views

Error compiling for any board arduino ide 1.8.9

my arduino ide Until yesterday it worked properly . but today All previous projects dont compiling and all of them have one error : Error compiling for board and It's no different that Which board ...
0
votes
2answers
3k views

ESP8266 Upload hex file Arduino IDE

I am using ESP12E Wifi module, using library based on Arduino. Is there any way I can upload hex file of the project to esp8266 using Arduino or any tool? I need to send hex file instead of code to my ...
1
vote
0answers
29 views

Arduino IDE - debugging Exception 29

I installed the ESP EXCEPTION DECODER along with my Arduino IDE. When my sketch crashes with Exception 29, I take the stack trace and input it, but I can't understand its line references (they dont ...
1
vote
2answers
41 views

Two sensors using I2C

We have two sensor one of them(MPU6050-gyro) is communicating using I2C, the other is via SPI(SD card reader). Now, we need an additional component as a sensor that the barometer which communicates ...
1
vote
0answers
52 views

Clock cycle count count for the same command is not equal in ESP32

I am using ESP32 Pico Kit with Arduino Ide. I want to measure operation cycle for a few commands. The code is so simple as below: void setup() { Serial.begin(9600); } void loop() { unsigned ...
1
vote
0answers
110 views

Arduino HTTP post image to external server

I'm trying to send an image from SPIFFS to my external server. When pictures are taken, they are saved into "/pics/" directory within SPIFFS. Ultimately, I'd like to post all the images saved onto "/...
0
votes
2answers
37 views

esp8266 deep sleep timer slightly inaccurate?

I'm making a door open timer using a hall sensor and have a wemos d1 mini that uses a deep sleep to sleep for 1 minute after checking the hall sensor state and printing the value on the serial port. I'...
0
votes
2answers
65 views

Speed Control of Brushless DC Motor

I cannot understand the code of controlling the speed of brushless dc motor using ESP8266 WiFi Module. I found it in- https://ubidots.com/blog/speed-control-for-brushless-motors-with-an-esp8266-2/ ...
1
vote
1answer
502 views

Avrdude Verification Error while flashing Arduino Mega code

I'm working with an Arduino Mega 2560 and am getting the following error at compile time: avrdude: verification error, first mismatch in byte 0x0000 0x14! = 0x25 avrdude: verification error; ...