Stack Exchange Network

Stack Exchange network consists of 174 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
23 views

endless iterations a function in arduino [on hold]

legend: Yi = Y new Yi-1 = Y old i want to make this in my arduino my function Yi = Yi-1 +6 start y0 = 0 ==================================================== Y1 = Y0 +6 = 6 Y2 = Y1 +6 = 12 Y3 =...
0
votes
1answer
23 views

My Serial plotter isn't working (arduino)

I'm trying to upload this code and it works properly but I can't see anything on my serial plotter const int AnalogIn_Pin0= A0; const int AnalogIn_Pin1=A1; const int Pwmout_PIN=11; float ...
0
votes
1answer
11 views

How to use stm32duino control 5110?

I want to use stm32duino to control 5110, I use the library http://www.rinkydinkelectronics.com/download.php?f=LCD5110_Basic.zip Before, I use arduino pro mini to control 5110 by this library, it ...
0
votes
2answers
31 views

Why after the reset the program vanish?

I buy a stm32 board as picture below, I connect the Boot0 to 3.3 and use the serial port download the program. I use the library https://github.com/rogerclarkmelbourne/Arduino_STM32 The second and ...
0
votes
0answers
22 views

How to create API to connect arduino devices to mobile application? [closed]

I am coding in arduino ide to get the data ask from arduino devices. I want to connect it into mobile application. Any idea is a great help :) thank you
1
vote
1answer
162 views

Standard Practice for including custom library in examples folder

I have created my custom library with examples folder in them. The main header file is ABC_Node.h. I am referring the structure of Adafruit libraries for Arduino and in some repos under the examples ...
0
votes
1answer
14 views

Arduino IDE does not display examples folder from my custom library

I have created a custom library for local usage. I call is ABC_node for ESP32 and the structure is as follows: . |-- examples | |-- bnoCalibStorage | | `-- bnoCalibStorage.ino | |-- ...
0
votes
0answers
23 views

Pause and resume logic using single pushbutton

I am able to stop the logic using a pushbutton. However, I would like to pause and also resume with the pushbutton instead of stopping.( When pressed once, pause for 5 min and when pressed gain resume ...
1
vote
1answer
45 views

What are the benefits or advantages of Arduino CLI? [closed]

I saw that Arduino got a CLI (Command Line Interface), and my first question was "why?" Even after reading the article, I don't see or understand its advantages. What advantages or benefits does a ...
0
votes
1answer
25 views

Read Multiple Sensors Data from a text file located in SD Card in Arduino/ESP32

I am working on a small home project 'glucose meter' via non invasive techniques. I am using four sensors like RGB color sensor, two multi-wavelength photo diodes (A & B) and temperature sensor (K-...
0
votes
1answer
22 views

Using Arduino UNO for uploading a sketch to the Espresso Lite v2

I am trying to use my Arduino UNO as a programming interface to load sketches on the Espresso Lite v2. I followed the instructions to setup the Wifi network (long press gpio13 and the AP thing), but ...
0
votes
1answer
44 views

If/Else Statements on Arduino not executing

I have a bit of code below, the problem is only the first 'if' statement will execute when called on. When I call on u, q, or any of the other if statements it will go straight to the else and not ...
0
votes
0answers
29 views

How to write a Arduino program for 5 sensors [closed]

I'm going to use a Arduino Uno board and I want to connect 5 sensors to my board, they are PIR sensor, Water flow sensor, Water level sensor, humidity sensor and soil moisture sensor.And also I want ...
0
votes
0answers
15 views

STM32 in Sublime 3 & multiple libs

I installed STM32 package (STM32F1xx/GD32Fxx by stm32duino) from Boards Manager in Arduino IDE. Then I copied package from %appdata% into main Arduino folder in C:\ so I can use package in Sublime 3(...
0
votes
0answers
15 views

GSM & GPS module integration with Arduino

I am working on GSM(SIM 800C) & GPS(Neo 6M) module integration. I am using Arduino 1.8.5 for the same. I have tested individual program for sending SMS through GSM module, also for getting ...
0
votes
0answers
30 views

Arduino IDE Fails to Upload at Speceific % [duplicate]

When I upload a sketch to my board the upload fails at the same % each time. I am using a Node MCU 1.0 board. I have tried reinstalling my drivers, reinstalling my Arduino IDE, changing cable, ...
0
votes
0answers
29 views

Arduino IDE: Permission Denied For Compiling

I have a weird issue with my Arduino IDE, installed through Window Store, which has been ongoing for a little over month now. Sometime it would randomly comes up with "permission denied" of a long-...
0
votes
1answer
36 views

ESP8266 SPIFFS not saving correctly?

Hey all I am having some issues with the SPIFFS for this Wemos D1 mini ESP8266 controller. This is my Arduino sketch: #include <FS.h> #include <ArduinoJson.h> struct RGBLA { uint8_t R;...
0
votes
1answer
20 views

Apply patch to library for custom changes in Arduino IDE

I wish to obtain unix epoch timestamps in millisecond precision. I am using an ESP32 along with DS3231 RTC breakout board from adafruit. Apparently the Repository is not maintained often but I see a ...
1
vote
1answer
32 views

Reprogram Atmega 16u2 on Arduino Mega with Arduino IDE?

I had an Arduino mega 2560, suddenly Arduino didn't recognize my computer and I thought the problem is about Atmega 16u2 and I decided to copy hex file from another Arduino Atmega 16u2 and paste to ...
1
vote
0answers
45 views

Unable to upload sketch using Platformio (but Arduino IDE works)

I am using an Arduino Nano (Clone) which I was programming with the Arduino IDE (Version 1.8.5 on Mac OS X 10.10.5). Using the Arduino IDE I need to re-plug the Nano before uploading, but after doing ...
0
votes
1answer
49 views

Battery voltage monitor right after deep sleep

i have my esp32 module in deep sleep and i use it with a couple of buttons using a wake up that detect the button pressed now i'd like to have a battery level to send to a server right before going ...
0
votes
0answers
30 views

Dividing 120-degree sweeping motion into two section of 60-degree for SG90

I have a project that requires a sweeping SG90 servo motor between 0 to 120 degrees, integrated with ultrasonic sensor. Between 0 to 120 degrees, I'm required to sound a first buzzer within 0 to 60 ...
0
votes
1answer
32 views

what the benefit uploading hex file merely to arduino board?

What the benefit of uploading merely hex file to avr based board like arduino uno Since the arduino ide it self will send intel hex file to the board after compile .ino file to hex file by the avrdude ...
0
votes
2answers
70 views

My Arduino IDE stuck on uploading

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 ...
0
votes
0answers
31 views

Stop phone charging using Arduino

I am developing an automated test tool for Android phones. For this, I need to know how to stop the charging capability of android phones whenever it is connected to the PC via USB. I need to do this ...
1
vote
3answers
87 views

Atmega328p - Going low power 1.8V using 4Mhz oscillator - Bootloader flash

I would like to use an Atmega328p micro-controller with a 4 Mhz oscillator in order get some low power consumptions. I am using an Arduino board to flash the bootloader into the Atmega. EDIT In ...
0
votes
1answer
53 views

Arduino IDE 1.8.6 not starting.

My Arduino IDE is not getting started. It just crashes before opening up. I don't know what the problem is. It was working well enough before without any issues. This is what I see after running the ...
0
votes
1answer
57 views

Wemos D1 EEProm put/get not getting correct value

Hey all I have the following code in my Arduino IDE: #include <EEPROM.h> #include <ArduinoJson.h> bool debuggin = true; int brightness = 255; int ambientLight = 30; ...
0
votes
1answer
45 views

Problem with encoder count on a segway handlebar

I'm trying to implement a steering mechanism for a segway project. The idea is to sense the tilt of the segway's handlebar with an incremental rotary encoder (omron e6j-cwz 600ppr). This way when I ...
1
vote
1answer
37 views

Thermistor doesn't work [closed]

Connecting all like shows the image, thermistor shows, that I'm going to be burnt: The code is simple: #define analogPin A0 //the thermistor attach to #define beta 4090 #define resistance 10 ...
0
votes
0answers
23 views

Si24R2E chip active rfid reading with NRF24L01

I'm trying to receive transmissions made by an Si24R2E chip with an NRF24L01. I have measured the transponder transmits on 30th channel. Original receiver module of this transponder contains Si24R1 ...
0
votes
2answers
38 views

Atmel studio 7 vs Arduino IDE for register level coding? [closed]

Which one is better to get started with register level embedded c coding? Also which one is used professionally?
0
votes
0answers
31 views

Arduino Uno doesn´t show up

I was using my original Arduino Uno as USB to TTL Serial adapter (Without the 328P chip). It was working like it for about a month now. Now if I connect it to my PC, it doesn´t show up at all. No ...
1
vote
1answer
23 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 ...
-1
votes
2answers
30 views

Second SD not writing

simple problem I can't see the reason behind, the sd card writes the first file fine, but the second doesn't write at all. Can any one see why? #include <SPI.h> #include <SD.h> ...
0
votes
1answer
80 views

Why does the potentiometer act as an on/off switch in my program?

I'm using an HC-SRO4 Ultrasonic Sensor and a D10K Potentiometer. So, I was just messing around with the potentiometer in the program and then tried to change the brightness of the LED which turns on ...
1
vote
1answer
151 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 ...
1
vote
1answer
593 views

How to convert char array to String in arduino?

I want to convert const char array in PROGMEM to String. How do I do this? const char charArray[] PROGMEM = "Some text";
2
votes
2answers
383 views

How do I change the default LED pin for displaying uploading

I made a board for my project based on Arduino Pro Mini. The problem is, that I had to put the LED on pin 4 instead of pin 13. What setting do I have to change to make pin 4 the default one? Or do I ...
-1
votes
1answer
20 views

checking the line for the content of the word [closed]

I have such string: engine:255b How i can check is there a word (engine) in the line? And how i can got int 255? Please, help me)
0
votes
0answers
24 views

HID card reader with NodeMCU ESP8266 reads all zeroes

I have connected an RFID HID PROXY PLUS card reader with a NodeMCU ESP8266. It will read the card and send the data to database. It was working fine, until this evening. But for testing purpose I ...
-1
votes
1answer
27 views

Controlling servo via serial port without any delay [duplicate]

I have such code: void setup() { Serial.begin(9600); } void loop() { } void serialEvent() { while (Serial.available()) { Serial.println(Serial.readString()); } } When I send there ...
0
votes
0answers
15 views

Upload sketch to ESP8266 - both old and new sketch working in parallel [duplicate]

I am getting to know the ESP8266 by using a NodeMCU programming board. To upload sketches I use the Arduino IDE. Until now I have not done any programming myself, but simply tried the sketches that ...
0
votes
1answer
41 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
2answers
43 views

freeMemory() function from memoryfree library not returning decreased value in arduino UNO

I burned the code written below, I expect that as we declare the local variable in the loop, freeMemory() function should return decreased value. But it remains constant..! please explain why..? The ...
0
votes
1answer
18 views

MemoryFree library showing Irregular Behaviour..!

I simply burned the code written below but it is showing me irregular behaviour.. as in output's last paragraph, free memory increases after a runtime allocation, how it is possible? The output is ...
0
votes
1answer
61 views

Arduino Mega upload issue

I have made my own version of an Arduino Mega and I am encountering some issues. Whenever I try to upload any sketch to the Mega, I get the following error message: avrdude: stk500v2 ReceiveMessage():...
0
votes
0answers
33 views

MemoryFree library showing free memory more than capacity of Atmega328Pu MCU

I simply burned the code written below but it is showing me free memory as 2299 bytes please somebody clarify that how in an Atmega328pu can have 2299 bytes free with an overall capacity of 2048 bytes....
0
votes
1answer
49 views

stk500 getsync() attempt 10 of 10 atmega328pu

I've been getting this very common error on my atmega328pu circuit. avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x83 Some things ...