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.

1
vote
1answer
251 views

Arduino MKR Zero problem with new UART comunication

I'm currently using an Arduino MKR Zero board and I need to add a new communication because the Serial1 on pins 13 and 14 is already used by another device. I've followed this tutorial from Arduino ...
0
votes
0answers
13 views

HX711 Wemos D1 Weird Characters In Serial Monitor

I am using the HX711 with a load cell attached on my Wemos D1. I have the connections correctly as if I use the same setup on my Arduino Uno board and the same code it runs fine and prints to the ...
0
votes
1answer
21 views

Byte text file to array

I'm trying to display a bitmap on gLCD 128x64, I stored the bitmap into txt file 1.txt in a SD card this is a part of bit map as following: 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,...
2
votes
4answers
26k views

error: espcomm_upload_mem failed when uploading a sketch

I am new to the whole arduino scene. I have connected my wifi module (esp8266 v01) to my arduino Uno like this: http://www.teomaragakis.com/hardware/electronics/how-to-connect-an-esp8266-to-an-...
1
vote
1answer
337 views

Sublime as external editor, error on Arduino compile dropdown: “avr-g++ is not recognized…”, from Stino

The error message, generated from Sublime, in its entirety... Compiling KCT_Swimv4l... Creating C:\Users\ken\Documents\Arduino_Build\KCT_Swimv4l\KCT_Swimv4l.ino.cpp.o... '"avr-g++"' is not ...
0
votes
0answers
16 views

Self-initiated Factory Reset of ESP8266 to load known-safe sketch

I am creating a project that uses an ESP8266 in a situation where I can never access it again (will be given to someone else) once completed. I am adding in OTA firmware upload methods (based on the ...
-1
votes
1answer
171 views

DLHR differential pressure sensor SPI

I am new to using SPI with an Arduino. But I'm trying to wrap my head around the "coding protocols"/syntax of the Arduino IDE code. I understand the basics of how SPI works conceptually, just not how ...
-1
votes
2answers
53 views

Problem of repetition

I have encountered a problem concerning the repetition of the program that means it executes once (since the sensor passes to 1 it calculates 5 seconds (the sensor is still at 1) after the lamp is lit)...
0
votes
4answers
2k 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
1answer
206 views

How do I reset my libraries back to original condition?

How do I reset my arduino installation back to its original state? i.e., no extra downloaded libraries, etc. If I delete Documents/Arduino/libraries is there any other state that needs to be cleaned ...
2
votes
2answers
12k views

Multiple client server over wifi

Trying to setup a server on Arduino to support multiple clients, I am able to support one but I don't want to flush that client to make another connection. #include <ESP8266WiFi.h> const char* ...
0
votes
1answer
2k 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
70 views

Shock sensor is not running in the file

I have faced an issue where the shock sensor is not running in the file. My idea is that when the ultrasonic sensor sense that when it is 4cm, the garage door will open. When the car reverses, the ...
0
votes
1answer
201 views

Replying with a html page in HTTP Web Server using esp01 and ArduinoIDE

Now there are many ways to reply with a webpage content to a user who is accessing the web server, But Keeping in mind to use as less space as possible, I was trying something new, Since i didnt got ...
0
votes
1answer
91 views

How can I power a NeoPixel ring and strip through Arduino MKR1000?

I currently have a MKR1000 which is connected to 1 ring with 8 neopixels, 1 strip with 20 neopixels, 1 microwave sensor, 1 speaker, 1 rotary encoder. I am running the NeoPixel positive and negatives ...
0
votes
1answer
235 views

How to use use 2 or more HC-SR04 sensors as one single sensor?

I'm new to Arduino and this is my problem. I need to track an object in a room. For now I have placed 3 sensors on the edges of each axis (x, y, z), where the x axis will the line between the east and ...
0
votes
1answer
42 views

Wanted to control 2 servos with serial read [closed]

I want to use 2nd servo only when 1st is in up state by asking user whether he wants to fire or not.(code in bold is not working ) #include <Servo.h> Servo myservo; Servo trigervo; ...
0
votes
2answers
66 views

What is the best way to connect multiple Arduinos?

In my situation, I have a map divided into multiple parts, each part could have about 20 to 100 Arduinos that they should send information from time to time to the master. How could I do this? ...
0
votes
2answers
326 views

Using an ESP8266 with an Arduino Uno - can't get AT command to work

I am trying to connect an ESP8266 to my Arduino Uno. Connections: RX -> RX TX -> TX CH_PD -> 3.3v (Arduino 5v using voltage regulator) VCC -> 3.3v GND -> GND I am running the RX and ...
1
vote
1answer
531 views

ESP8266 stuck in flash mode?

I have the setup described here: https://learn.adafruit.com/esp8266-temperature-slash-humidity-webserver/wiring I currently have the reset pin set to float and the GPIO0 pin grounded, which should ...
0
votes
2answers
474 views

My Arduino IDE stuck on uploading [duplicate]

So for a while I get some Arduino IDE problem which I can't solve. When I try to upload any kind of code to my Arduino, Arduino IDE just stay at "Uploading". I tried to use another Arduino but I get ...
2
votes
2answers
3k views

ATTiny85 and DHT11 - Sensor always returning 0

Good day. I am making a small weather station using ATTiny85, DHT11, and an OLED display. There are many, many tutorials that explain how this works, and various libraries that show you how to get ...
0
votes
1answer
44 views

Invoke a method in the main sketch from within a library

I need to use a specific library that issues error messages in the form of String texts. The library uses the Serial.println() function to send the messages to the Arduino IDE's serial monitor. The ...
0
votes
1answer
30 views

Run function when triggered

I'm trying to create a motion/fall sensing device. I have a sensor that continuously checks if motion and fall is detected in void loop(). If both motion and fall are detected, then I'd like to send ...
0
votes
2answers
232 views

Do serial ports on Arduino UNO / Leonardo initialize differently?

What are the differences in serial communication between PC <---> Arduino UNO (ATMEGA328p) and PC <---> Arduino Leonardo (ATMEGA32u4)? I am asking because of a problem related to using these ...
0
votes
0answers
14 views

how can i solve my problem i have correct port[COM] and its name board [duplicate]

this is error happen when i upload the sketch on my arduino mega2560 : avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): timeout avrdude: stk500v2_ReceiveMessage(): ...
0
votes
0answers
29 views

WT8266-S1 WiFi module

WT8266-S1 WiFi module in my hand I want to encode this module with Ardino IDE. I have a coded program for Arduino NodeMCU 1.0. How can I convert it to the WT8266-S1 WiFi module? Do you have the WT8266-...
1
vote
1answer
19 views

Adafruit esp32 Feather Failing to compile

So yesterday, I was able to upload/compile given example code to the Esp32 Huzzah board. Today I couldn't even compile. Even carefully using the tutorial adafruit provides. I was getting errors as ...
0
votes
2answers
30 views

problem in uploading the code [duplicate]

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno" Sketch uses 12452 bytes (38%) of program storage space. Maximum is 32256 bytes. Global variables use 970 bytes (47%) ...
0
votes
0answers
24 views

Unable to read modbus register [on hold]

Here is my code #include <>ModbusMaster.h> #include <>SoftwareSerial.h> #define LED_13 13 // define LED pin #define MAX485_TX_ENABLE 3 // EIA-485 transmit control pin ...
1
vote
0answers
50 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
1answer
33 views

How do I redefine the overlfow of compare interrupts in Arduino programming?

If I'm programming a pin change interrupt I can call attachInterrupt at various points in my code and change what function is called when the interrupt occurs. The overflow and compareA/B interrupt ...
0
votes
2answers
43 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 ...
1
vote
1answer
80 views

How to get the weather kit with anemometer working using arduino (UNO)?

I tried to build a weather station with anemometer and My setup is, SwitchDoc Labs' anemometer kit (which is equivalent to sparkfun anemometer kit) connected to the grove weather-pi board with rtc ...
0
votes
0answers
34 views

Can't parse large json file

For a project I've to parse a big json file. Unfortunately it does not work as expected. Here is the json file: { "data1": "...
0
votes
3answers
8k views

Cannot upload sketch to Arduino Nano

I've been using Arduino UNO for quite sometime and brought a new Arduino Nano. When I connected it to my computer, the power usb lit up and the blink sketch started running ( as expected of course). ...
0
votes
0answers
35 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 ...
0
votes
0answers
55 views

Esp32 sending a wav file to API via POST

I'm trying to send a .wav file to an API with an ESP32 using a HTTP Post request with a multipart/Form-data content type. I can already send the API Key as it is a plain key and get a return from the ...
3
votes
2answers
4k views

avrdude ser_open() can't set com-state

When trying to upload the blink sketch to my (unofficial) Arduino Uno, I get the following error: avrdude ser_open() can't set com-state for "\\.\COM3" I have programmed this Arduino before using ...
0
votes
2answers
38 views

How to generate .a and .so files to add in arduino project

I know to make a library on arduino ide with source codes, but I cant send my source code to another users who want to use my lib. So I need to make a library with precompiled=true info at library....
0
votes
0answers
21 views

Phone notifier arduino bluetooth

So recently I found out that I can receive bytes from my phone, and vice versa. So I began wondering is there a way to display my phone notifications which will be shown to a 0.96 inch oled display ...
-1
votes
1answer
849 views

Arduino JSON foreach loop

I'm trying to extract values using ArduinoJson. The values aren't fixed, therefore I need to use the foreach loop. I'm trying this, but I can't seem to use the values like I could with. root["0"]["...
2
votes
2answers
610 views

Problems on convert byte[] to String

I'm reading a RFID Card from RC522 and send the data to my computer. My problem is the conversion of byte[] to String or std::string. #define SIZE_BUFFER 18 #define MAX_SIZE_BLOCK 16 byte ...
0
votes
1answer
2k views

SoftwareSerial data not available

Second time I'm asking the same question with no solution, let me elaborate in other way for clarity. I wrote an Arduino program which uses two serial ports, one is hardware serial port and other is ...
0
votes
2answers
649 views

Arduino micro not recognized

I have an Arduino micro for some time and everything always worked well. Today, when I was uploading a code on this board using Arduino IDE, I accidentally started the Arduino Board update and the ...
0
votes
0answers
191 views

Can't add board for RFDuino in Arduino IDE

I tried to upload sketch to my RFDuino. I can select the RFDuino port. But I can't upload cos I can't select the RFDuino board. I followed the installation steps listed here but I don't see RFduino ...
0
votes
2answers
57 views

I cannot compile the Arduino sketch when I remove the void loop function?

#include <AFMotor.h>  AF_DCMotor motor(2,MOTOR12_64KHZ); void movefor (); void moveback(); void setup() { Serial.begin(9600); Serial.println("Motor test!");` `motor....
1
vote
0answers
45 views

WindowsError(31, 'A device attached to the system is not functioning.') in arduino

Having board esp32 devkit v1, to get started with arduino ide (installed recommended boards for esp32) I marked board asDOIT ESP32 DEVKIT V1 (as no other options as like ESP32 DEVKIT V1 ) so upload ...
7
votes
3answers
4k views

Can I use arduino's 3.3 V output directly to esp8266?

I just bought esp8266 and ftdi usb driver, I want to power the esp8266 with Arduino's 3.3 V output, is that possible? I saw some tutorial on youtube in that they are suggesting us to use 3.3v ...
0
votes
0answers
25 views

Unable to create a file on SD with Teensy 3.2 with FreeRTOS

I'm trying to log data to SD card using Teensy 3.2. I've taken the code from Arduino Examples SD > ReadWrite.ino and modified it slightly to run it with FreeRTOS - no changes in the header libraries ...