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
-1
votes
0answers
16 views

Using OOP with ESP32 in arduino IDE [closed]

I am using OOP in Arduino IDE for the first time but I use an ESP32 DEVKIT V1 for hardware. When I 'verify' my code, it gives an error saying Error compiling for DOIT ESP32 DEVKIT V1 I made a .cpp ...
-1
votes
0answers
37 views

How to get the value of eight A3144 hall sensors connected with a parallel to serial shift register 74HC165 when a magnet is detected or brought near?

The below code only gives 11111111 on serial monitor. But I want to get the value from each of the hall sensors when a magnet is detected or taken away from the sensor. int load = 7; int ...
0
votes
0answers
30 views

Serial Monitor isn't printing anything [closed]

I'm very much a beginner and have been trying to get my code to work for a project, but nothing is being printed to the serial monitor. To troubleshoot, I've tried getting a very simple program to ...
-1
votes
0answers
23 views

Specific optimization flag for board

I'd like to specify optimization flag for a specifi board without change optimization flag for other baord in Arduino is it possible ? I've try to create platform.local.txt in my board folder but it ...
0
votes
0answers
41 views

Serial Monitor isn't printing?

I'm trying to display information to the serial monitor but it's not working. It was working before, and i'm not sure what has changed. Here's my code, if that helps. #include <Arduino.h> //...
0
votes
0answers
34 views

How to get variables from a func(bcord) Into a function(loop) which takes parameters from another function(myfunct) and declares few variables in it? [duplicate]

//The code is an excerpt of the original long code //cord function int cord(int a[]) { int v = 0; for (int i = 0; i < 8; i++) { int p = 1; for (int j = 0; j < i; j++) { p = p * ...
1
vote
1answer
93 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 ...
-1
votes
1answer
36 views

Program uploaded to ESP32S but it wont execute [closed]

I just got a ESP32S and I just wanted to make LED blink. I think my code is uploaded to ESP. This is what I get after upload. I connected 2 buttons, one for reset and one for bootloader, over 10k ...
0
votes
0answers
41 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 ...
0
votes
1answer
19 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 ...
0
votes
1answer
31 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 ...
1
vote
1answer
46 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. ...
1
vote
0answers
25 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 ...
1
vote
1answer
25 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 ...
0
votes
1answer
20 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:\\...
0
votes
0answers
31 views

watch dog timer time out?

i use esp32 in arduino ide i use external interrupt (it just count pulses) when external occur but it give me wdt time out so how i disable it or increase it's time i have searched about it.here what ...
1
vote
0answers
33 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 ...
1
vote
0answers
50 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 ...
1
vote
0answers
66 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-...
0
votes
1answer
96 views

Can't connect my ESP8266 to server database

UPDATED. I am trying to connect to a server, sending an HTTP request (GET) but keep getting errors. Output to the serial monitor shows connection failed or bad request What am I doing wrong? See code ...
1
vote
2answers
62 views

Wifi Scanning code for esp32 wroom 32

I am trying to scan wifi in sta_ap mode in my esp32 wroom 32 module but it is not scanning new wifi .Can anybody tell more about how does wifi mode works in this module and what's the problem in my ...
2
votes
1answer
33 views

In which package file is a default programmer selected?

After a clean IDE install, the programmer submenu already has a default option selected as shown below: I am working on creating a core package and would like a default programmer to be selected ...
2
votes
2answers
59 views

UNO's Internal EEPROM "read" returns incorrect values when it precedes "write"

I am an Arduino instructor and I was preparing some material on the utilization of the Arduino UNO's internal EEPROM when I encountered a problem. The problem is, I am trying to show the original ...
6
votes
1answer
2k views

Which C++ standard does the Arduino language support?

The "Arduino language" (as they call it) of the Arduino IDE 1 is obviously C++. Which C++ exactly? I tried to figure it out myself (Arduino IDE 1.8.13 for Arduino Uno), but I can't conclude ...
0
votes
1answer
61 views

Capacitive touch on Adafruit Trinket M0 goes unstable when USB cable from laptop is disconnected

Note that to get to this point, I used much of the helpful information from the Post How to use capactive touch on Adafruit board in Arduino mode? I am using a Trinket M0 with the Arduino IDE with the ...
0
votes
1answer
59 views

How can I make my code Thread-Safe?

So I made a post yesterday running into an issue on my ESP32 using both cores on the microcontroller (with wifi enabled, incase that is important). I'm using both cores to control two Neopixel strips ...
0
votes
1answer
26 views

ESP32 AP Automatic Web Page

I've often encountered WiFi networks that require you to sign in through a web page that automatically opens after connecting to the access point, such as hotels. I'd like to implement something ...
1
vote
0answers
49 views

Flash HEX onto an Arduino board

The scenario: I have built a device off an Adafruit nRF52840 and I need a way to deploy firmware updates. I have delivered the device to my end user and will need to periodically send him updates. I ...
0
votes
1answer
46 views

Mini Arducam module camera shield - 2MP ov2640 interface with Arduino Uno

MINI ARDUCAM MODULE CAMERA SHIELD - 2MP OV2640 Arducam Multi-camera adapter board for Arduino SPI Mini Camera I have the above two components with me along with ARDUINO UNO R3. I want to stream video ...
2
votes
0answers
51 views

Extract Static Acceleration from MPU6050 using Formula

I am trying to implement a research paper for my project and there is a formula which I am failing to interpret: According to the research paper, we extract the static acceleration component for each ...
1
vote
0answers
34 views

Obfuscate string with on SAMD21

I'am looking for a way to obfuscate string at compile time on my personal board build with an SAMD21, i'am using Arduino IDE to compile and upload code. All solution I've found like this one for ...
1
vote
0answers
52 views

Arduino IDE 1.8.15 won't open

I was using Arduino IDE 1.8.13 but didn't open for a few week and now I can't launch the IDE and any of the sketch. I uninstall it and downloaded the latest version 1.8.15 but it still poses the same ...
1
vote
0answers
60 views

ESP8266 MCU not clearing memory?

I am still new at this. Using Arduino IDE My MCU was working as a web server with HTML code on SD card using the Webserver sketch. After trying to include other inputs it stopped working with "...
2
votes
1answer
71 views

ArduinoJson library parsing error

I am trying to retrieve JSON mqtt message I received in ESP32. void mqttMsgCallback(char* topic, byte* payload, unsigned int length) { payload[length] = '\0'; String _message = String((char*)...
2
votes
1answer
104 views

Using MAX30100 SpO2 value to turn on LED

max30100 i2c sensor gives heartrate and spo2 reading in serial and also can show values in lcd display. I want to show it's indication via LED. If SpO2 value <94 , it will turn on Red led in ...
0
votes
2answers
119 views

Where is the Arduino IDE boards.txt file for Nano Every located?

My Arduino Nano Every runs at 16Mhz (but the 4809 can support internal 20Mhz). I know it may be possible to alter the boards.txt file and set it to build for 20Mhz. However, I can't find the boards....
1
vote
1answer
64 views

Program ATTiny85 running at 16 KILOhertz

I set the fuses of my attiny85 so it uses the internal 128khz clock, prescaled so it is 16kHz. I set the CKOUT fuse too so I can check the clock using an oscilloscope on pin 3 and yes it is 16kHz. Now ...
1
vote
0answers
21 views

ESP32 SerialBluetooth disconnects within a second after connecting but not BLEDevice/BLEServer

Code using BluetoothSerial api disconnects immediately after establishing connection with my laptop running Ubuntu 18.04. If instead of BluetoothSerial BLEDevice api is used, the connection stays ...
1
vote
3answers
111 views

What should I do with stackOverflow in compile error?

I don't have port, but when I want to compile my code (even empty files), I encounter this error: Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes. Global variables use 9 ...
6
votes
3answers
2k views

Arduino and fingerprint scanner - can I get the fingerprint scanner data?

I am currently planning a thesis that involve scanning fingerprints and storing the data in a database. The problem is that I do not know if it is possible for me/us to get the fingerprint data or ...
2
votes
0answers
41 views

SD Card Initialization Failed, cannot add inactive module

Just to preface I am not that great at coding or anything and I am currently building sensors off of Oregon State University's Smart Rock sensor code, so the code I am being used is not mine. I am ...
1
vote
0answers
30 views

Unable to import the libraries correctly [duplicate]

I am trying to use the Arduino IDE 1.8.15 to program my Arduino. When I download the following code along with the libraries from the same link: https://github.com/SolidGeek/VescUart and using the ...
1
vote
2answers
145 views

Error compiling ESP32 Wrover Module in Linux Virtual Machine

SO i have been getting this error window when i compile a simple code to run different LED lights on the ESP32-S2-SOLA (Wrovere) module Code: int LED_BUILTIN = 2; void setup() { pinMode (...
2
votes
1answer
283 views

ATMega4809 via Nano Every marked as 20Mhz, but does this confirm it is actually at 16Mhz?

If you go to the official Arduino Nano Every page and click the Tech Specs tab, you'll see that it lists it as running at 20Mhz. Turn On Verbose Compile However, if you go into the Arduino IDE and go ...
0
votes
2answers
121 views

Why float and not 16-bit Integer? Mpu6050 with atmega328P

I've been trying to follow this example code for interfacing my atmega328P with Mpu6050: https://www.instructables.com/Accelerometer-MPU-6050-Communication-With-AVR-MCU/ And was wondering a couple of ...
1
vote
0answers
21 views

Getting Arduino 1.0.x to run on Guix: error: expected initializer before ‘_GLIBCXX_NORETURN’, error: ‘std::abort’ has not been declared, etc

I'm looking to get arduino 1.0.x to work on my Mint/Guix hybrid box in order to hack around with 3D printer firmware. Unfortunately I can't get the stock void setup () {} void loop () {} to compile. I ...
1
vote
0answers
220 views

ESP32 doesn't connect to Arduino. | could not open port 'COM2': WindowsError(5, 'Access is denied.')

ERROR: serial.serialutil.SerialException: could not open port 'COM2': WindowsError(5, 'Access is denied.') I've tried literally everything. Drives checks out! | Silicon Labs CP210x USB to UART ...
2
votes
1answer
190 views

Is it possible to read multiple buttons with the CD74HC4067?

I am working on a project with a claw machine. I am working on this chip (CD4067BE which is equivalent to the CD74HC4067) and I was wondering: can I read more than one button with the CD4067? I tried ...
1
vote
1answer
589 views

invalid conversion from 'char' to 'const char*' [-fpermissive] on a string

I am compiling some code I didn't write, and it bombs out with the error message invalid conversion from 'char' to 'const char*' [-fpermissive] on the line if (loginPassword == '\0') loginPassword = &...
0
votes
1answer
225 views

avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied Upload error:

I am using arduino-ide2.0.0-beta.7(CLI Version:0.18.3 alpha) on Manjaro Linux and I get this error when uploading sketch to my Arduino Micro: avrdude: ser_open(): can't open device "/dev/ttyACM0&...

1
2 3 4 5
29