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
1answer
10 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,...
0
votes
0answers
13 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
2answers
52 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
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
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
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
18 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 ...
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 ...
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
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 ...
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
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
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 ...
0
votes
2answers
37 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
19 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
vote
0answers
41 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 ...
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 ...
0
votes
1answer
49 views

Prioritizing one sensor [closed]

I want to ask is there a possible code to prioritize a specific part of a code? So I'm doing this project where I want to utilize muscle sensor, servo, and a button on an app over Bluetooth. The ...
0
votes
0answers
29 views

bh1750 lightsesor won't work

ok, im having problems with my bh1750, here is all info i got: board: esp32s nodeMCU v. 1.1 Pins: Wiring: (the 2 reds go to pin 21 and 22) code: #include <BH1750.h> #include <Wire.h> ...
0
votes
0answers
43 views

Analog pins giving off the same value

So recently I made code that used two custom sensors that are connected to the analog pin A0 & A5. Schematic can be seen here (http://inmoov.fr/test-your-finger-sensor/). const int ono = A0; ...
0
votes
0answers
23 views

STM32F103C8 reset button not working

I am working project, using STM32F103C8T6 and W5500 Ethernet module. My project is something like network relay. My problem is that the STM32F103 can not boot up after pressing reset button when the ...
1
vote
0answers
19 views

Arduino based hour counter [duplicate]

I would like to make a hour counter for a particular machine.I have a problem in coding.arduino internal clock can work only till 49 days.my hour counter should calculate 150+ hours.I thought of using ...
0
votes
2answers
66 views

Esp8266 Vin pin

I've read that Vin pin is directly connected to usb cable in esp8266 (which is 5V). I wonder if I can power a relay 5V and a servo motor Sg90 with this pin? And is there any danger of doing that ?
0
votes
0answers
33 views

String.format(“%i”,i) equivalent

How do I format an arduino String when I do not want to print it? I know that one can use printf() or other methods to print a formated string and unfortunately that's all I find with google. But that'...
0
votes
2answers
64 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? ...
1
vote
1answer
33 views

Where can I find the source codes for the various classes and methods used in Arduino Primo?

I am new to Arduino development. I am trying to connect a BLE device (Arduino Primo) with my iOS app. From the Arduino BLE examples, I understand how to initialize the BLEperipheral class and then ...
0
votes
1answer
31 views

WS2812B only works while I measure the voltage

I'm going crazy, there is clearly something I'm missing here. I have a NodeMCU V3.0 and a 5V LED strip WS2812B with 10 diodes. I tested this first with a 5V 0.3A power supply, only powering 3 diodes, ...
0
votes
0answers
12 views

NodeMCU with JHD162A LCD issue

I have uploaded a program to NodeMCU , to print "hello, world" on JHD162A 16x2 LCD module. But the text doesn't appear on the lcd display. Instead just black blocks appear on the first row on the LCD. ...
0
votes
1answer
34 views

Higher precision logarithms

I need to produce a log to base 10 with at least 4 decimal places. However, the log10 inbuilt function is giving the output with only two decimal places. What do I do? Is there a different function or ...
0
votes
0answers
15 views

Installed configuration won't show up on Board menu

So I was following these instructions on the official site. Download this hardware configuration archive: breadboard-1-6-x.zip, Breadboard1-5-x.zip or Breadboard1-0-x.zip depending on which IDE you ...
-1
votes
1answer
34 views

How should I combine the codes for two sensors in 1 Arduino sketch?

Name of study: AUTOMATIC ELECTRIC FAN We used an ultrasonic sensor for the switching on/off of our Fan and an LM35 SENSOR to control the speed regulation. During our experiment, we use a LED instead ...
1
vote
1answer
54 views

Hold button / press button/ push button

I want to control a servo motor in a way that if you push the button, you can control it by potentiometer a if you push double time, you can control servo with infrared if you hold button step ...
1
vote
1answer
79 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
57 views

Why is this Code not working with Esp8266 when it worked perfectly with Arduino Uno?

I'm making an attendance System using an RFID scanner, scanning RFID Card & saving Data in Excel. When I used this code with Arduino Uno (by changing #define SS_PIN 12 and#define RST_PIN 9) it ...
0
votes
0answers
25 views

Uploading code to custom SAMD20G15B board through Atmel ICEand Arduino IDE [duplicate]

This is my setup: SAMD21G15B with no external crystal (Addon possible with Epson MC-146 32.768Khz ) SWD connector I'm trying to upload code with the Arduino IDE via the Atmel ICE. But when I choose ...
0
votes
0answers
36 views

Arduino libraries development and Eclipse Soleber

I have a project on Arduino IDE. A .ino sketch with some extra .h/.cpp files and 2-3 libraries that I keep in ~/Arduino/libraries. In addition to the IDE I do open the libraries as generic project in ...
0
votes
0answers
61 views

ATMega328 AU bootloader burning issue using Nano

We are trying to burn bootloader into ATMega328P-AU SMD. We have taken the reference of the link and did the same. We checked wire connections and all looks fine and we tried with two chip with two ...
0
votes
0answers
56 views

Control Fan Speed Using ESP8266

Hello i am using ESP8266 to control my 220v AC ceiling fan. I am able to do that easily with a 5v 10A relay module. But i want to know is there any module to control the fan speed as well? i have ...
0
votes
0answers
166 views

Can I use ESP8266 and OV7670 to video stream on a web?

OV7670 image sensor, small volume, low operating voltage, providing all functions of a single chip of VGA camera and image processor. so I am using and ESP8266 to connect to internet and stream the ...
0
votes
1answer
86 views

Arduino IDE + ESP32 Webserver - how to redirect to root after click on button

I'm trying to use ESP32 + Arduino IDE to control a relay. I've started by using the library and the code below. The problem I'm having: after clicking on the button and activating the pin, if the ...
0
votes
0answers
224 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
0answers
41 views

Understanding flashing with bash in Ubuntu

I am following the instruction from this DIY tutorial to set up the firmware for my dust sensor on Arduino board (NodeMCU): https://luftdaten.info/en/construction-manual/#feinstaubsensor-konfiguration ...
-1
votes
1answer
73 views

NodeMCU display temperature and control LED from an autorefresh web page

I'm totaly new to Arduino, I'm using ESP2866 NodeMCU and dht22 to display temperature and humidity in a web page, it is autorefresh (using AJAX) and it works perfectly, I wanted to add 2 buttons to it ...
0
votes
1answer
41 views

My arduino IDE not uploading

pls,i am not able to set programmer as ,board model is not known to me,name is not mentioned on board but written as '"basic AVR develooment board.and in device manager .Silicon Labs CP210x USB to ...
0
votes
0answers
21 views

Do I have to use Arduino IRRemote libraries?

I have seen some tutorials to build your own IR Remote. But all of them use a library that contains the IR code. The question is, could I just skip, injecting a library and make the Arduino output a ...
0
votes
0answers
72 views

Serial Port not recognized by Arduino IDE

I’m attempting to connect with a Adafruit Huzzah Feather ESP8266 board. I’m running a 2018 mbp with Mojave. I loaded the Silabs driver (CP210) to connect with the onboard UART on Huzzah board. I got ...