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, macOS and Linux.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Can't upload sketches to arduino uno [duplicate]

I have arduino Uno clone which I bought a year ago, but now I can't upload sketches anymore , I have selected Arduino Uno board and the right port in arduino ide , but when I upload a sketch , only ...
user avatar
0 votes
1 answer
21 views

Will the atmega8-U2 work with Arduino IDE

I use a homemade board that hosts a PIC16F1829 and an ATmega328P on the same board. We use the ATmega328P with the Arduino IDE and the PIC with the MPLABX IDE for about 100 EE students a semester at ...
user avatar
2 votes
1 answer
56 views

No text in the IDE menu items

I installed arduino 1.8.19 (64-bit) on a Fedora Linux 35 Workstation Edition system. When I started the IDE, and selected the "Open" menu icon, the menu item list appeared, but there was no ...
user avatar
2 votes
1 answer
79 views

Where should unit tests go in the Arduino IDE

I have an Arduino project where the file structure looks like this myProject/ myProject.ino ImportantClass1.hpp ImportantClass1.cpp ImportantClass2.hpp ImportantClass2.cpp ...
user avatar
1 vote
0 answers
17 views

Using SAM4 series microcontroller with Arduino IDE

I am looking to use SAM4S series microcontroller by Atmel/Microchip and trying to program it using Arduino IDE. Can I use the bootloader provided by Adafruit for Feather M4 Express [uses SAMD51] or ...
user avatar
-1 votes
0 answers
26 views

Serial Monitor works but Bluetooth terminal doesn't

I am making a mini voice controlled robot and the voice control commands work through the computer's Serial Monitor, but nothing happens when I send the commands through the Bluetooth terminal, ...
user avatar
-3 votes
0 answers
33 views

how to solve , no file or directory found for this line #include "page.h"?

#include <Arduino.h> #include <WiFi.h> #include "esp_http_server.h" #include "esp_timer.h" #include "esp_camera.h" #include "img_converters.h" #...
user avatar
-1 votes
1 answer
41 views

ESP8266 - Can't upload or use Serial Monitor - Ubuntu 22.04 LTS

When trying to use the ESP8266 Node MCU or Multiple Feather Huzzah's I get the following error. I can program Arduino Uno & Mega without issue. warning: espcomm_sync failed error: espcomm_open ...
user avatar
0 votes
1 answer
21 views

Serial ports grayed out when Arduino plugged in (MS Surface Pro X, Windows 10 Pro 21H2) how do I get Arduino IDE to recognize it?

I am helping a Windows user program an Arduino application. The computer is a Surface Pro X running Windows 10 Pro 21H2. It only has USB-C ports (which cannot be used to power or program Arduinos) so ...
user avatar
  • 217
1 vote
1 answer
21 views

Requires accurate RGB color values by the tcs3200 RGB color sensore

I used the TCS3200 sensor to read the RGB color values.First, I calibrated the sensor with white and black colors.The sensor detects red, blue, and green correctly, but does not give an accurate value....
user avatar
  • 11
2 votes
0 answers
91 views

Same code working on Arduino IDE but not in PlatformIO IDE

I'm running into this weird problem. My code is working just fine when I upload it to an ESP32 from Arduino IDE. That same code is not working when I upload it using PlatformIO IDE. The same libraries ...
user avatar
1 vote
3 answers
170 views

How to do multiple serial.read()

first of all im new here and im really sorry if there's some mistakes when im making this question. So im trying to make a program to calculate using serial read, and im going to input a lot of values....
user avatar
  • 13
0 votes
0 answers
35 views

ESP-32S NodeMCU - Unable to upload sketch

I was able to upload sketch to my ESP-32S, but now it don't work. I alway get Connecting........_____....._____....._____....._____....._____....._____....._____ A fatal error occurred: Failed to ...
user avatar
1 vote
1 answer
35 views

Using a Microchip Fubarino with the Arduino IDE, how to acces and configure all pins

I recently got a Microchip Fubarino, contains a PIC32MX250F128D and I'm totally new to the Arduino IDE, i uploaded the blink sketch all fine and well. Schematic: FubarinoMini_v15_sch // the setup ...
user avatar
1 vote
0 answers
38 views

Nema 17 stepper motor speed problem

This code is quoted from here. May I know how to increase the speed of the NEMA 17 stepper motor further? I tried to increase the step speed to 2000rpm but it does not even work. It only works for ...
user avatar
1 vote
0 answers
30 views

LED brightness variations

I'm using two different types of code and noticing that in the first set up the last LED is dimmer than the rest. Then in the second set up, the first LED is brighter than the rest. I would like to ...
user avatar
  • 19
-1 votes
1 answer
54 views

NodeMCU programming without USB port [closed]

Recently, I've been attempting to build an anti-collision detection system for uses in a car. I bought several nodeMCU units and wil use one as a WiFi hub. In the course of experimenting, I broke off ...
user avatar
0 votes
1 answer
48 views

ESP32: why does malloc can only alloc 126888 bytes with 402540 bytes heap?

I need a buffer of the size 153600 bytes in my ESP32 project, but I could not create a static buffer in code nor can I malloc the buffer. The ESP32 itself reports: ESP.getHeapSize() // = 402540 ...
user avatar
  • 103
0 votes
1 answer
48 views

String Comparison [closed]

I am trying to compare two string but each time i am getting awkward results. When i use Equals() function i always get the wrong answer and never satisfy the IF statement. When i use compareTo() ...
user avatar
1 vote
0 answers
81 views

Can no longer select a port in Arduino IDE on Linux?

I am trying to upload to my Elegoo Mega 2560. I previously had it set up properly with the board installed and selected and the port automatically detected. Now when I go to Tools and hover my mouse ...
user avatar
1 vote
0 answers
91 views

ESP32 WROOM32E w/ Arduino IDE 2axis joystick - how do I get a good reading?

How do I get the full range of motion from an analog joystick and the ESP32 WROOM32E using the arduino IDE with esp-idf installed? Using a 2 axis analog joystick, the 5v/3.3v pin, ground pin and the ...
user avatar
0 votes
1 answer
30 views

Can I flash hoodloader2 or HEX files on Arduino Simulators?

I want to make a HID Keyboard out of Arduino UNO, in UNO board the script runs perfectly fine, but the UNO board requires me to flash it every-time I want to put in a new script in it, so can I do the ...
user avatar
0 votes
2 answers
53 views

Issue understanding timestamp generated using millis() function

I have this code uploaded to an Arduino Uno which is connected to a gyroscope and storing the data on an SD card. The code is from the OEM. The delay() function was set to 500 by default but this was ...
user avatar
  • 1
2 votes
1 answer
75 views

Can you write c code in arduino ide?

So i know that the native arduino language is written in c/c++, but does that mean that i can write pure c code in the arduino ide, or that i have to use the arduino specified language? I’m new to ...
user avatar
  • 21
1 vote
1 answer
44 views

Servo keeps resetting position when there is no difference in received value?

So I'm working on a code that basically receives x and y coordinates and stores them in a variable. Whenever a coordinate is received, it goes through a conditional statement to store them in a ...
user avatar
5 votes
1 answer
118 views

VSCode vs. Arduino IDE - same program, different behavior

I've got this simple program for testing DS18B20 temperature sensors. #include "OneWire.h" #include "DallasTemperature.h" #define ONE_WIRE_BUS D3 // Setup a oneWire instance to ...
user avatar
  • 261
2 votes
0 answers
33 views

How would I link inline debugger with esp32 on Mac?

I am trying to connect JTAG debugger to my esp32 according to the following steps https://www.instructables.com/How-to-Use-a-Debugger-on-an-ESP32/ but still I am facing issue in debugging. I am ...
user avatar
0 votes
1 answer
75 views

Is there accurate connection procedure for connection between an esp32 and ultrasonic sensor(HC-SR04)? [closed]

I am currently working on a project which integrates esp32 and HC-SR04 and send the data from HC-SR04 to my own domain. The connection diagram is this And the code which I use is this, const int ...
user avatar
1 vote
1 answer
44 views

Unexpected character added to char buffer array in serial monitor only when SD card initialized

I'm getting an unexpected extra character added to the serial monitor print line only when I initialize an SD card in the code. Normal The code below gives me this expected result in the serial ...
user avatar
1 vote
2 answers
310 views

uint8_t issues when linking libraries outside of INO file

I've been trying to start my project out split into multiple files, knowing it will grow. I was templating it off of how I've done C++ files in the past: classes in an individual .h/.cpp pair and ...
user avatar
1 vote
0 answers
76 views

Is there any way to secure Esp32 BLE server?

I've got a project in which currently I am using Bluetooth classic (with SSP - Simple secure pairing) to communicate to my esp32 board with my android app, but Bluetooth classic serial communication ...
user avatar
  • 111
2 votes
2 answers
62 views

Read & Write to EEPROM

I need to implement EEPROM Read & Write functionality to my project. I've been learning how to use the EEPROM on the last few days, however I'm struggling to Read & Write Strings to EEPROM. ...
user avatar
2 votes
1 answer
46 views

SparkFun RedBoard PTH Kit wrongly configured hardware

I have a SparkFun RedBoard PTH Kit. It's not made by SparkFun, but by https://inmotion.pt (that doesn't exist anymore). I soldered it, and bought a FTDI adapter, but when I try to upload the blink ...
user avatar
  • 121
-2 votes
1 answer
92 views

passing variable to function

I have the following code to turn on or off led. I would like to modify the function to pass the pin as well. what should X be substituted with? #define BIN_LED 2 #define PIN_LED 3 void led(uint8_t x,...
user avatar
2 votes
0 answers
130 views

Can I get the actual fingerprint data from AS608?

So I own an AS608 fingerprint scanner, and I've been looking everywhere for information on how to get the fingerprint data (raw, processed, or binary) from the scanner itself to use with a database ...
user avatar
-2 votes
1 answer
75 views

How can I get an external program to change values inside the Arduino C++ code? [closed]

How can I get some constantly changing values from a separate C++ program entered and uploaded into the Arduino? I notice when I upload code to the Arduino in the IDE it takes about a second to start ...
user avatar
  • 97
-1 votes
2 answers
83 views

Code to display binary value from 1 hall sensor A3144 connected with shift register 74HC165 when magnet is brought near to it or taken away?

I have checked my connections and when I bring a magnet close to the hall sensors the voltage on them which is apprx. 4.5V becomes 0V and when I remove the magnet the sensor turns back to 4.5V. This ...
user avatar
1 vote
0 answers
76 views

avrdude: ser_open(): can't set com-state for "\\.\COM4" [duplicate]

My Arduino code is not getting uploaded. It gives me "avrdude: ser_open(): can't set com-state for "\.\COM4" error. It worked literally 5 mins ago. now it doesn't work. I updated the ...
user avatar
1 vote
0 answers
37 views

My arduino gives me several avrdude erros

For school we program an arduino with visual studio and micro visio. Since a few days ago my arduino wont run the code of the arduino. At first it didnt give any errors until i tried to upload a code ...
user avatar
1 vote
1 answer
99 views

Why i am not getting the decimal number as output? The code is explained with the help of comments

// Defined three array arr0,arr1,arr2 int arr0[] = {0, 0, 0, 0, 0, 0, 0, 0}; int arr1[] = {0, 0, 0, 0, 0, 0, 0, 0}; int arr2[] = {0, 0, 0, 0, 0, 0, 0, 0}; //cord function takes binary number array as ...
user avatar
1 vote
0 answers
43 views

Porting Arduino for ATMEGA16U2 [duplicate]

I have a bunch of ATMEGA16U2 in my drawer and I need to make a small production of custom boards with Arduino-based firmware. After a Google search I learn the ATMEGA16U2 is often hosted on the ...
user avatar
  • 287
0 votes
1 answer
34 views

how to put whitespace in long Serial println() input [closed]

I have this long, Serial.println() that is in quotes, on multiple lines. Arduino IDE warns: "Missing terminating character". I am certain there is a way to break the lines up, while having ...
user avatar
  • 838
1 vote
1 answer
58 views

Should I use C or C++ for a pure code implementation of Arduino?

I have an arduino board (SAMD21 microcontroller) which supports either Arduino or CircuitPython programming. I'd like to program in pure C/C++ instead of Arduino, which seems to be possible without ...
user avatar
1 vote
1 answer
88 views

Need help figuring out how to adapt a code for a Snake Game I'm trying to make. Help greatly appreciated!

first of all thanks for clicking on this post :D For the last couple of days I've been trying to test out a game for the classic nokia snake game I've found online, but I can't seem to get it to work. ...
user avatar
  • 11
1 vote
0 answers
52 views

Arduino IDE Java error

I'm running IDE version 1.8.16 under Windows 10. Frequently I get the error message. The situation is solved only when exiting the IDE. Afterwards the compilation may be finished with or without ...
user avatar
1 vote
1 answer
216 views

How to debug "No device found on cu.usbserial, An error occurred while uploading the sketch"

I am testing a project on Arduino Nano. I copy-paste the code on the Arduino IDE and click "Upload". I see: No device found on cu.usbserial-<unique id> An error occurred while ...
user avatar
0 votes
1 answer
36 views

String operations printing random character on Serial Monitor

I want to extract the file name MyFile.txt out of a path which is stored in a string "C:\\MyDirectory\\MyFile.txt"; I found a simple c code which does the job. string filename = "C:\\...
user avatar
1 vote
0 answers
196 views

ESP32 Classic Bluetooth Set Password

I am using ESP32 classic Bluetooth Feature for data transfer. I am using the SerialToSerialBT example. I am able to scan and discover the Bluetooth device from my smartphone. But the pairing is ...
user avatar
1 vote
0 answers
244 views

Nodemcu Lolin v3 Timeout error

I am getting the Arduino console error "the selected serial port serial.serialutil.SerialTimeoutException: Write timeout does not exist or your board is not connected". I recently upgraded ...
user avatar
  • 21
1 vote
0 answers
166 views

ESP8266 NodeMCU Lolin V3 and using Firebase to update its software OTA

I want to update software OTA on multiple of my nodemcu devices that are currently sending data to my firebase database. I found this tutorial (https://medium.com/firebase-developers/over-the-air-...
user avatar
  • 21

1
2 3 4 5
29