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 vote
1 answer
34 views

Can't upload sketch after overheating

I'm using an Arduino nano, after an unfortunate event, The mega chip heat up and when I tried touching it, it burned my finger. After that, I connected to my laptop's USB port and the computer ...
0 votes
0 answers
22 views

NodeMCU does not receive data from Arduino

I have to establish a serial communication between Arduino and NodeMCU. he devices should be connected as follows: Arduino Pin 10 and 11 are connected to NodeMCU Pin 5 and 6, respectively. Arduino Pin ...
  • 101
0 votes
0 answers
42 views

Fatal error: freertos/FreeRTOS.h: No such file or directory

Arduino: 1.8.19 (Windows 10), Board: "Arduino Nano 33 BLE" I'm just following the blog How-to Get Started with Machine Learning on Arduino and I have installed all the library which they ...
0 votes
1 answer
19 views

How does a callback function get revoke itself eg. Connect function get revoked when there is new connection

Further to my previous question here Can anyone help me understand how the callback function gets revoked itself? The connect function, disconnect function. BLE custom UUID code source here Another ...
0 votes
0 answers
33 views

Programming ATMega328PB in Arduino IDE

I am trying to program a standalone ATMega328PB with the Arduino IDE. I have previously worked with the Arduino Pro, which uses the ATMega328P running at 16MHz. All of the ATMega328PBs I see operate ...
0 votes
1 answer
31 views

Unable to upload code to my digispark ATtiny 85 after upgrading bootloader

I've just received my digispark ATtiny85 (model B, I believe). I'm using Pop_OS for my PC, had a bit of a headache getting the arduino IDE recognising the device but after some trial and error I got ...
  • 21
0 votes
0 answers
25 views

Is there any other Microcontroller to run REST API on?

I was looking for Raspberry Pi 3, but it's getting way too expensive. I need to get and put a request to fetch data from a server, after getting data from other server in Jason format, I'll send it to ...
1 vote
0 answers
45 views

ESP32 wifi server with multiple clients

I have a program where I configure my ESP32 as a server and it sent randomly generated data, the problem is that I can only connect 1 client at a time, what I want is that multiple clients can connect ...
1 vote
0 answers
27 views

Coding issue with Fast Led Multiple Colour Palettes in a State Machine

I am working on a project using the WSB2812B LED strip, with a ATmega644A using the MCUdude/MightyCore plug in (https://github.com/MCUdude/MightyCore). I am using Fastled 3.3.3 with Ardunio 1.8.13 on ...
  • 11
0 votes
0 answers
57 views

Magnetic levitation failing

I followed a Youtube video here and it has instructions at here. The concept is easy which is try to levitate a magnet and balance it using Hall-sensor by changing the PWM of the electromagnet to ...
0 votes
0 answers
21 views

SIM800L cannot wait for network

I provided LiPo 3.7V 3 cells 3000mAh to SIM800L. The led blynks stably every 3 seconds which means The module has made contact with the cellular network. I ran the code below and it outputs Waiting ...
0 votes
0 answers
110 views

Provide custom AVR dude commands through the Arduino IDE

Besides the standard upload button that burns the code using FTDI, I want to then be able to provide custom AVRDude commands for burning fuses, when the external programmer is used. Is this possible ...
  • 1,297
1 vote
1 answer
37 views

nRF52832 BLE "conn_handle" to disconnect the current connected devices

I'm working on nRF52832 Bluefruit Adafruit Module. I want the BLE connection to disconnect using a function and can call whenever required. But the issue is the disconnect function needs "...
1 vote
0 answers
24 views

code not getting uploaded to Arduino [duplicate]

when I try to upload any code to Arduino it isn't getting uploaded the "RX LED" keeps blinking about 10 times but the "TX LED" doesn't light up. I have done a loopback test but it ...
-1 votes
0 answers
36 views

Help required to refine my Arduino code and run the TEST loop at a specific interval irrespective of the time required to execute the loop

#include <Wire.h> #include <Adafruit_MCP4725.h> #include <Adafruit_ADS1X15.h> Adafruit_ADS1115 ads; /* Use this for the 16-bit version */ Adafruit_MCP4725 dac; const byte numChars ...
1 vote
0 answers
46 views

Upload to ESP32-C3 Fails

I have built a custom circuit board using the ESP32-C3-MINI-1-H4 module(datasheet). Here is a schematic: I have the GND, Tx, and Rx lines hooked up to an arduino uno without the atmega. The 3V3 comes ...
  • 11
0 votes
3 answers
41 views

Standalone ATMega328 - do I need to burn the bootloader?

I want to get an ATMega328 off of the Digi-Key, and use it like an Arduino (without requiring the whole Arduino board). When it comes to programming, do I need to do anything special like burn the ...
0 votes
0 answers
58 views

Why is my Arduino code to Write to an external Serial Flash Rom not working?

[Edit: I've added a diagram because the image I uploaded doesn't line up with the rows of the bread board because of the perspective] I'm trying to write program code to Read and Write to an external ...
0 votes
0 answers
44 views

Unlocking Digispark ATTiny85 after flashing it to HID

I made a simple test sketch to make my ATTiny85 emulate a Keyboard and send a sequence of keystrokes. #include "DigiKeyboard.h" void setup() { // don't need to set anything up to use ...
0 votes
0 answers
12 views

Cannot connect Arduino MKR 1010 WiFi to Azure IoT Hub via X509 CA Signed certificate

I am facing some issues connecting my Arduino MKR 1010 to Azure IoT Hub and I do not have any other options than open a discussion here. I really hope that someone will be able to help. So, what I did ...
  • 11
-4 votes
1 answer
52 views

Can I run Arduino code on a 6502?

I've been doing projects with the arduino boards for a long time and accordingly also with the libs from adafruit etc. But that was too boring for me and I wanted to get more into the matter, so I ...
0 votes
0 answers
27 views

My "Port" selection menu is greyed out

I am trying to run a teensy board (Teensy 3.2/3.1), and when I go to select the com port. The "Port" menu in "Tools" is greyed out. I was able to select a com port yesterday, but I ...
1 vote
0 answers
53 views

Connect Arduino + ESP8266 to Azure IoT Hub Device via X509 certificate

I would like to connect ESP8266 with Azure IoT Hub Device via X509 certificate. Currently, I can connect using the symmetric key connection to my device, but I have devices that I want to authenticate ...
  • 11
0 votes
1 answer
30 views

boards.txt - how to create sub-menu (NOT new board!!!)

Arduino 1.8.19 Is it possible to create a sub-menu inside boards.txt that would allow having the boards grouped for example by the manufacturer? If it is possible, please provide an example or at ...
-1 votes
1 answer
36 views

How do you remove a number of characters from a parsed string?

Using this code - advertisedDevice.getServiceDataUUID().toString().c_str()); returns the following string - 0000feaa-0000-1000-8000-00805f9b34fb How can I adjust the code to do that it omits the first ...
2 votes
3 answers
680 views

Using Visual Studio Code to program an Arduino

I had recently got an Arduino Uno and did quite a few programs on it. Now, I had always used Visual Studio Code to do my C projects. So, is it possible to use Visual Studio Code to program an Arduino, ...
0 votes
0 answers
32 views

Wireless code upload to Arduino via HC05

How do I upload code to my Arduino wirelessly with the HC05 module ? I have watched a few tutorials on YouTube where you have to solder a cable to one of the pins of the IC on the breakout board and I ...
  • 11
1 vote
2 answers
64 views

Define a custom baudrate in Serial Monitor

Is there a way to define a different baud rate from the ones we are shown in the dropdown menu of the Serial Monitor? I want to define a custom value.
  • 211
-1 votes
0 answers
65 views

Arduino Bootloader hex file loading

Today I come up with a question kinda disturbing me as I need a solution for it. I usually load the bootloader to atmega328 by using Arduino. In order to do that I first need to program Arduino as isp ...
  • 49
2 votes
0 answers
31 views

STK8231 accelerometer, getting two axis (x & y data) but not z, also in 0-255

Here is the datasheet I followed: https://lcsc.com/product-detail/Motion-Sensors-Accelerometers_SENSORTEK-STK8321_C966924.html We are trying the following code: #include <Wire.h> int ...
0 votes
0 answers
28 views

MPU6050 not working properly in Nodemcu

So, I try to obtain angles with the MPU6050 sensor and Nodemcu. I don't have any idea why the output is "nan" like this. But, when I try the same code in Arduino Nano, It works properly ...
0 votes
1 answer
25 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 ...
2 votes
1 answer
80 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 ...
2 votes
1 answer
90 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 ...
1 vote
0 answers
21 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 ...
0 votes
1 answer
139 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 ...
1 vote
1 answer
38 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 ...
  • 227
1 vote
1 answer
29 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....
  • 11
2 votes
0 answers
113 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 ...
1 vote
3 answers
370 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....
  • 13
1 vote
1 answer
45 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 ...
1 vote
0 answers
56 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 ...
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 ...
  • 19
0 votes
1 answer
132 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 ...
  • 103
0 votes
1 answer
71 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() ...
1 vote
0 answers
138 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 ...
1 vote
0 answers
141 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 ...
0 votes
1 answer
41 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 ...
0 votes
2 answers
69 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 ...
  • 1
2 votes
1 answer
97 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 ...
  • 21

1
2 3 4 5
30