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
15 views

Setting Fuse Bits From Arduino IDE?

I've come to understand fuse bits in the last few weeks. I'm working on a bitbanging project on an Arduino Pro Micro, and the signals I'm working with are around 30uS each. For this reason, I think I'...
0
votes
1answer
21 views

threshold voltage level and blinking problem

I am using arduino pro mini 3.3 V,8 Mhz.vcc of the this arduino is coming from AC-DC converter with regulator 3.3 volt.I am listening analog data from voltage divider approximately 250 milivolts. I ...
2
votes
3answers
120 views

Control I2C relay board from two Arduino Uno

how can I make multi master Arduino device to work with single I2C device? As both the master device are 20 m away from Slave device, I am using the I2C relay board to connect with 2 Arduino boards ...
0
votes
3answers
29 views

Defining array in switch case

I’m completely new to arduino, so be polite. I’m trying to program my esp32 to drive neopixels as seven segment display. So I take a digit and pass it to switch case and in switch case I mention which ...
0
votes
2answers
20 views

how to compile arduino sketch from termnial without using arduino ide

I want to know how can I compile and upload the arduino sketch from my terminal instead of using Arduino IDE. I want to use a different IDE for writing code.
0
votes
0answers
19 views

Using Arduino IDE to generate text box with predefined text for DigiUSB/DigiKeyboard [duplicate]

I need to know the procedure to create a text box with predefined string in Arduino - DigiUSB for DIGISPARK device, Which should be disabled after 10 seconds. == NOT ON SERIAL CONSOLE == FOR WIN7 ...
0
votes
0answers
28 views

Help needed : Using Arduino & Digispark USB to Communication [closed]

i have recently started using ATTINY85 - DIGISPARK Device and have worked on its in built examples too.. I need some help here to compile code in Arduino onto DIGIUSB (Which is fine) to show a popup ...
0
votes
0answers
28 views

compiling error on a program I have run before

I am fairly new to the programming world. On top of that I have been away for a while. I get this error when loading a program that I have ran in the past with no problem. I don't think I changed ...
-1
votes
1answer
23 views

Can I operate an arduino that has a file uploaded on it, without having the file myself?

I've been a massive idiot and accidentally deleted the sketch I need for a project at university, and I didn't create any backups. The sketch is already uploaded into the arduino, which operates using ...
0
votes
1answer
55 views

SD Card Read/Write Arduino Mega Fail

I have an Arduino Mega 2560 where I have used a MicroSD Card Module to Read/Write Data on the Micro SD Card. I have tried using the Example in the Arduino IDE but the data is not being written or read ...
-3
votes
1answer
28 views

Unable to use com in arduino [closed]

I am using Mac 10.14.1 and there has no com port in Arduino ide but my Arduino detect in that port...I want to use AT command using com3 port...but there has no com3 or com4 port.. please help me to ...
0
votes
1answer
40 views

Why do I get “ stray '#' in program ” error?

I am making an Arduino program with SIM800L module and would like to check credit status of the SIM card. When I manually enter the command: AT+CUSD=1,"*123#" into Serial Monitor, it works fine. But ...
4
votes
2answers
295 views

How are errors (not related to syntax) managed in arduino and in the AVR architecture in general?

I was just curious about how the AVR architecture manages errors that would cause a regular desktop program to crash. I'm talking about logical errors for example math problems that are undefined. ...
0
votes
0answers
31 views

How to develop Arduino support for a custom board?

I am working on a spin-off of an existing SAM board that is already supported by the Arduino. My question is that how do I go on about creating a custom board package for the Arduino IDE that will be ...
0
votes
0answers
17 views

ESP8266 Server File up and download over UART to an ST32

I have a problem with an ESP8266. This is a blockschematic of my project. Blockschematic The Website has 3 Buttons. Download (Download the csv from the external Memory. The STM send the csv over ...
0
votes
1answer
41 views

How can I concatenate these two values as a string?

I've tried all the supposed solutions for the exact error, pasted into google, that I could find on every forum including this one and no matter the alleged solution I will either get the error about ...
0
votes
2answers
42 views

could not convert 'digitalWrite(8u, 1u)' from 'void' to 'bool'

I am trying to make some LED lights to turn on when i flick a switch on my RC crontroller. I will connect the signal wire from RC controller to pin 8. The plan is: if i flick the swich, the LED's (pin ...
0
votes
0answers
43 views

Post to request using ESP32

I am using the ESP 32 to send parameters VIA POST to website, I am using this code: timeA=millis(); USE_SERIAL.println(timeA - timeB); strTotURL=strBaseUrl+strPage; strTotURL.replace(" ", ""); //...
0
votes
1answer
44 views

Fail programing a Sonoff Dual with Arduino IDE

1) I have a Sonoff Dual, which I wish to upload a Sketch. 2) Other Sonoff basic devices programed the same way, with succes. But when uploading the sketch the ( even the generic Blink sketch ) - I ...
0
votes
0answers
14 views

TinyGPS++ isn't being updated or SoftwareSerial isn't reading

I'm trying to read the GPS data on an Arduino Uno from a Neo-6M module and print it on a LCD display. However, no variable is being changed by the read function. This could either be because of an ...
0
votes
0answers
7 views

Arduino Ethernet shield not connecting

Im trying to connect my Arduino Mega 2560 to my ethernet shield generic HanRun HR911105A, however im having some troubles, im runing the ethernet example that comes with arduino IDE. I give arduino ...
0
votes
1answer
41 views

How to use a precompiled library in a project with Arduino-IDE

I'm discovering the Arduino development and after quite some googling, I can't find an answer to the following question. I'd like to distribute some code as mylib.h + precompiled mylib.o (this will ...
5
votes
1answer
927 views

How can I have code in a project that won't compile for Arduino?

I want to test the algorithms in my code without needing to send it to an actual Arduino board. I figured I could lay out my project like: project/ core.cpp # core algorithms core.h ...
1
vote
2answers
53 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
38 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
9 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
33 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
41 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
72 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 ...
0
votes
0answers
31 views

What are some android apps using which Arduino programs can be uploaded via OTG?

I'm looking for Arduino IDE like apps in android using which programs can be uploaded to Arduino boards via OTG. Please give me some suggestions.
2
votes
2answers
62 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
51 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
75 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
42 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
24 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
49 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
29 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
24 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
34 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
166 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
32 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
31 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
58 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
48 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
46 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
48 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
26 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(...