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.

1
vote
2answers
56 views

Arduino write to memory and self shut down (over MOSFET) - An idea help

i would like to ask you for help with design of an circuit. I have and atmega328p, with detection for voltage on its Vin (Vcc). I have made and voltage divider and its output i connected to Analog ...
-1
votes
1answer
112 views

ESP8266 WebServer not responding (connection time out)

My web server running on ESP8266, stop working after while. I cannot connect to it - browser shows connection time out error. No error, no crash... nothing. Have you any idea how to fix it? My code: ...
0
votes
0answers
12 views

controll intigers from webserver on nodeMCU esp8266

I would like to controll neopixel leds from over wifi with my nodeMCU but i dont know how to controll values over wifi, through a web interface would be perferable over url, but that also works. usinf ...
0
votes
2answers
36 views

Button state changes despite not being connected?

I have written some code to test buttons that I want to use const int buttonPin1 = 1; const int buttonPin2 = 2; const int buttonPin3 = 3; const int buttonPin4 = 4; const int buttonPin5 = 5; const ...
1
vote
1answer
84 views

How can I update a sketch to a NodeMCU “over the air” with the Arduino IDE?

I’m trying to use a sketch from this repository which uses MQTT to send a notification to Home-Assistant that acts a “presence sensor”. When the NodeMCU comes into range of the specified SSID, the ...
2
votes
3answers
104 views

Having some issues with an array

I am having an issue that I can't seem to get my head wrapped around. What I am trying to accomplish is to have a minutes worth of sensor data in an array (reading every 5 seconds) so I'll have 12 ...
2
votes
2answers
133 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
60 views

Can anyone please help me to modify the code so that it runs faster?

this is a program for a blindspot detection system using 4 ultrasonic and 2 ir sensors. can someone help me in modifyng the code so that this runs faster? #include<LiquidCrystal.h> #define ...
2
votes
2answers
65 views

Mac shortcut for next window - IDE 1.8.7 problem

How do I use the keyboard to cycle through Arduino windows on a mac? In my System preferences, I have (default): Keyboard -> Shortcuts -> Move focus to next window = Cmd ⌘ ` It works perfectly ...
1
vote
0answers
54 views

Keypad prints just 1 [closed]

I used this example code: #include <Keypad.h> const byte ROWS = 4; //four rows const byte COLS = 4; //four columns char keys[ROWS][COLS] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8'...
2
votes
2answers
141 views

Why is there no hex file generated when I “build binary output” from the Arduino IDE?

I want to obtain the .hex file from my Arduino sketch. I have followed various guides but there is no .hex file in my output folder. How can I obtain my hex file? Here are my preferences: This ...
0
votes
1answer
33 views

Unfamiliar error on code about port(s) [closed]

here is the code: #include "DHT.h" #include "NewPing.h" #define DHTPIN 7 #define DHTTYPE DHT22 #define TRIGGER_PIN 10 #define ECHO_PIN 10 #define MAX_DISTANCE 400 NewPing sonar(...
0
votes
2answers
46 views

Can an IC be programmed by an Arduino and then be removed, to be used in an external breadboard?

I wanted to find out if is possible to write programs into a micro controller using the Arduino and use the micro controller independent of the Arduino board?
0
votes
1answer
27 views

Accessing raspberrypi.local from Nodemcu

Currently I am trying to access a rest API from NodeMCU. The API is hosted on my local LAN on a Raspberry pi 3 b. The Raspberry pi is accessible on LAN using the raspberrypi.local domain address. But ...
0
votes
1answer
50 views

Nano V3 values “overwritten” randomly

When I assign a global var to a certain value inside an if-block it has been changed to another value in the next statement. Somehow the address of the var is overwritten by some other process. It ...
0
votes
1answer
42 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
36 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
37 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 ...
1
vote
1answer
170 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
49 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 | |-- ...
1
vote
1answer
61 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
100 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
64 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
50 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
1answer
106 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
40 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
77 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
146 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
116 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
1answer
38 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
220 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 ...
2
votes
3answers
244 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
634 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
286 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; ...
1
vote
1answer
55 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
44 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
2answers
87 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?
1
vote
1answer
68 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
36 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
84 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 ...
3
votes
1answer
2k 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
2k 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
386 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
23 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
58 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
30 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
40 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
67 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
70 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
20 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 ...