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.

304 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
4k views

How to flash pre-compiled bin files into NodeMCU using Ardunio IDE

How to flash pre-compiled binary into NodeMCU using Ardunio IDE. Since every time it require to compile and flash it. Is there way to flash binary alone to nodeMCU via Arduino IDE ? One can export ...
3
votes
1answer
4k views

Running two stepper motors with two rotary encoders

I'm really bad with this coding part of using two rotary encoders to control two stepper motors [using 28BYJ-48 stepper motor with the ULN2003 board]. This code works fine using one rotary encoder for ...
3
votes
0answers
825 views

Using CLion as Arduino IDE — Cannot find Libraries

I'm having a problem using CLion as Arduino IDE when integrating 3rd-party libraries: Here is the CMakeList.txt cmake_minimum_required(VERSION 2.8.4) set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/...
2
votes
0answers
30 views

MacOS BigSur Arduino IDE No Ports Shown

I'm trying to get the Arduino IDE (1.8.13) installed on MacOS BigSur 11.0.1 and am unable to compile and run an Arduino sketch. There are no ports available in 'Tool' menu; the port item is grayed out....
2
votes
0answers
52 views

How to adjust Partition Scheme Wemos D1 mini pro?

I bought myself a WEMOS D1 mini PRO (16MB) for creating a quite large project. As I'm writing code, my memory is starting to grow. When I looked at the Flash size in Arduino IDE, the only options I ...
2
votes
0answers
49 views

Single LED controlled by two pushbuttons - one of which acts like a toggle switch

Trying to control this LED with those 2 pushbuttons - one button that starts a short flashing sequence, another pushbutton acts like a toggle switch, one press bulb is on, another press bulb is off. ...
2
votes
0answers
30 views

How can I rewrite my Bluetooth Classic Arduino code into Bluetooth Low Energy Arduino code (and have everything working the same)

My original code for BT Classic My Work in Progress BLE Code I am trying to take all I did in BT Classic and have it working exacly the same in BLE but the Rssi keeps returning 0's in the BLE code and ...
2
votes
0answers
26 views

Brushless motor vibration/jitter/noise - arduino uno

I am currently using these motors and driving them off these drivers and an arduino uno, and alternatively trying to make them turn using the setup in step 6 (both with l298n and without) in this ...
2
votes
0answers
39 views

Clock Problem when Migrating from Arduino IDE Mighty Core to Atmel Studio

I've been programming an ATMega1284 using the Arduino IDE with the MightyCore package. I'm now trying to migrate to Atmel Studio. Atmel Studio (7.0) will now compile the sketch and all required ...
2
votes
0answers
60 views

Communication between two slaves via single SPI bus

I am trying to control both RC522 and lcd st7920 (128x64) via a single SPI bus on the NodeMCU esp8266. I am using Arduino core for my esp8266. Now in this portion of the code, I only want to display ...
2
votes
1answer
91 views

Set control register to low in ds3231 rtc

I have been using ds3231 rtc module for keep tracking and make alarm along with backup battery. when I used it for first time it worked fine. but now it doesn't keep track my time when the power lose ...
2
votes
0answers
69 views

SG 90 servos randomly spinning

I started one project where i need 4 servos to control 4 grabbers jaws. i use STM32F103C8T6 with arduino IDE for programming it. The motor TZT Micro Servo 9g SG 90. First, I was playing with stepper ...
2
votes
0answers
177 views

Using an ATTiny85 and DigiKeyboard.h, can I detect when USB HID is connected?

I am building a project to send HID keystrokes to a computer with an ATTiny85. I want to detect when the USB communication is working, in order to turn on a LED saying that everything is good. If USB ...
2
votes
2answers
612 views

sleep mode and watchdog at the same time

suppose a project with Arduino that we should save battery power, so we use sleep mode and also avoiding the Arduino of hanging and use watchdog timer. But the problem is here that when the Arduino ...
2
votes
0answers
648 views

error compiling for board node MCU 1.0

Arduino: 1.8.9 (Windows 10), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)" In file included from C:\Users\Priyaranjan Tiwari\Documents\Arduino\007mcu_php\007mcu_php....
2
votes
0answers
405 views

Clock cycle count count for the same command is not equal in ESP32

I am using ESP32 Pico Kit with Arduino Ide. I want to measure operation cycle for a few commands. The code is so simple as below: void setup() { Serial.begin(9600); } void loop() { unsigned ...
2
votes
0answers
2k views

Esp32 sending a wav file to API via POST

I'm trying to send a .wav file to an API with an ESP32 using a HTTP Post request with a multipart/Form-data content type. I can already send the API Key as it is a plain key and get a return from the ...
2
votes
0answers
722 views

HTTPS POST method fails in esp32

I was trying to connect with server but, I was unable to post the data. I have added the SSL key to connect with server that is happening but HTTPS POST is not. I tried the same method with http, I am ...
2
votes
0answers
481 views

Prevent Arduino IDE from rebuilding the core library after every restart

I have an Arduino IDE 1.8.5 setup (installed from the ZIP file) which I use to work exclusively with a single board. Every time the IDE is restarted, the first compilation takes much longer than ...
2
votes
0answers
174 views

Strange things happening with Arduino PROGMEM

I am currently working on a display library. The font should be stored in PROGMEM. The code looks something like this: unsigned int i = 0; Serial.println(pgm_read_byte(&font[1]),HEX); unsigned ...
2
votes
0answers
2k views

Convert String data To char Array in Arduino

I'm able to get json data and storing in String object, now i want to convert string into Char Array for parsing json data I'm tried with this code, but it is not responding String data = http....
2
votes
0answers
477 views

Save data from an LCD KeyPad Shield to an sd card

I'm developing a project that requires save data from a sensor that is connected in a LCD keypad shield, the information should be save in a file into SD card. My code #include <LiquidCrystal.h&...
2
votes
0answers
445 views

Problem with Arduino line follower

I am making a line follower robot. My code is like this #define motI1 10 #define motI2 6 #define motI3 5 #define motI4 3 int left=9; // left sensor int right=1; // right sensor void setup() { ...
2
votes
0answers
5k views

Can upload programs to ESP8266 with Arduino Nano but not run them

I am trying to use my Arduino Nano to program my Generic ESP-01 Module. I want to use the module to control an RGB LED Light Strip but am not having much success, only errors.... These are my ...
2
votes
0answers
9k views

ESP32 in Arduino-IDE with FS.h and SPIFFS

I'm working on a webserver on ESP32 in Arduino IDE and would like to load an html-file. Tried to use SPIFFS.open from the library FS.h from github. Errormessage says SPIFFS was not declared in this ...
2
votes
0answers
4k views

Arduino RFID Mifare Classic dump info

I have my Arduino uno setup with RC522 reader. I am able to dump the data that is held on my test card supplied with the reader but I wish to read the data blocks held within another card I have. The ...
2
votes
0answers
145 views

How can I use delimiter/split serial input in a loop function?

How can I use delimiter/split serial input in a loop function? I want to use each word from the input and check a database, to check availability. #include SoftwareSerial.h> #define ...
2
votes
0answers
42 views

How do I update library h-file in arduino create online editor?

I'm working on a sketch that includes i2c with a SSD1306 OLED and need to update a constant in Adafruit's h-file in the library. How can I do this in the online editor? /Jonas
2
votes
0answers
397 views

Why does my ESP8266 making an HTTP request to an MDNS responder keep getting redirected to my ISP's search engine?

I have two ESP8266's trying to talk to each other, a 'host' and a 'client', if you will. I have the ESP8266mDNS.h responder running on the host at esp8266wifi.local. On sending an http GET request to ...
2
votes
0answers
50 views

LCD Display Issue

Hi I am a newbie I am trying to test LCD but it always show me a fading boxes It was working before . connection LCD p1 - gnd Lcd p2 - VCC Lcd p3 - potentiometer middle (10k) lcd p4 - pin 7 ...
2
votes
0answers
2k views

Read string from DigiUSB

I wrote simple code for my Digispark (Attiny85 with Micronucleus bootloader) in Arduino IDE: #include <DigiUSB.h> String inst; void setup() { DigiUSB.begin(); pinMode(1, OUTPUT); } void ...
2
votes
0answers
872 views

Cannot access “tools>Serial port” on Kali Linux

I just got my Arduino UNO delivered and I wanted to see if it's working properly or not. I tried following this page to create a simple program and the program compiled successfully. But when I ...
2
votes
0answers
279 views

Connecting Pulse Sensor to RFDuino Simblee

I am trying to make a heart rate sensor watch. I am trying to do this using a Simblee (www.simblee.com) and a Pulse Sensor (www.pulsesensor.com) however they will not work! The original code from ...
2
votes
0answers
2k views

How to save data to SD card using Memory Shield Module SPI

I am trying to save some data to the SD card using the memory shield module that I read from HC-SR04 Ultrasonic Module. The data that gets printed indicates error. This is how my SD card module is ...
2
votes
0answers
298 views

Arduino IDE programs Leonardo but cannot open serial terminal

I'm using Arduino: 1.6.7 (Mac OS X 10.11.3), Board: "Arduino Leonardo". When I try to program my code, it works without problems. When I want to open the built-in Serial Monitor or Serial Plotter, ...
2
votes
0answers
153 views

Adding an Arduino variant into ~/sketchbook and using it from a Makefile

I have a pins_arduino.h file for a given Arduino variant, installed in ~/sketchbook/hardware/attiny/variants/tiny14/pins_arduino.h. The IDE has no problem picking it up if I set the right board type. ...
1
vote
0answers
18 views

ESP32-DEV is connected to Wifi but not working properly

Hardware: Board ESP32 Dev Module Version/Date today's master IDE name Arduino IDE Flash Frequency 80Mhz PSRAM enabled no Upload Speed 115200 Computer OS Windows 10 Description: I am doing a project ...
1
vote
0answers
27 views

Data output , ds18b20 , lcd1602 , yl-69, dht11

Good afternoon, I wonder if you could help me. I have the code but the data from the sensors is not correct. Perhaps there are some errors, could you fix them? I apologise for my inaccurate statement. ...
1
vote
0answers
23 views

What is wrong with my code? (HC-SR04 using 433 mhz module);

I asked a question about this last time but I still couldn't make it work but it somehow gave me an overview about my project. Now I've created an another project that is similar to the last one, the ...
1
vote
0answers
14 views

Accessing start up bits of SRAM from MicroBit for PUF

https://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.4.pdf The aim is to extract (output in serial monitor) the start up bits from the SRAM of this microbit which is located at memory address ...
1
vote
0answers
40 views

Servo motor won't work for a specific code

I have written a code with interrupts to control the servo but my servos are not working. One is meant to work with interrupt but the other one has to simply move but it is also not working. Even the ...
1
vote
0answers
38 views

How to use pins for I2C that is used from other hardware?

I am using ESP32 CAM for one project and I have a sensor that is I2C connected to pins 21 and 22 (default I2C). The sensor is working fine until I turn on the camera. The camera uses this pins (21,22) ...
1
vote
0answers
31 views

How to program the joystick button to reset everything?

In this project, I'm making a stickman rush game with a joystick. Where when the joystick moves up and down, the stickman also moves up and down. And there are obstacles, that when the stickman ...
1
vote
0answers
46 views

How to completely clear everything from an arduino and print something new?

I'm in progress of making a stickman rush game, Until I hit a bug that I have been stuck on. I want to make a if statement that states "If the stickman and the object are in the same place, clear ...
1
vote
0answers
45 views

converting int or float into bytes array in arduino

I am trying to send data from one arduino to another over ethernet using udp protocol. In arduino writing data over udp is like this UDP.write(buffer, size); where buffer is an array to send as a ...
1
vote
1answer
48 views

send and recieve analog data from one arduino to another arduino via web/ethernet

i am able to send audio signal through mic and send it via arduino and receive it on speaker. i need two things 1.) The voice i am hearing on speaker has on speaker has lots of noise with it. i need ...
1
vote
0answers
25 views

Having trouble compiling in VsCode when including arduino libraries. (Win10)

I recently switched over to Visual studio code and away from the arduino IDE though I am a novice at both. When using VSC and the neopixel library and sample code(strandtest) containing animations ...
1
vote
0answers
27 views

Http Client requests

I am working on a project where the ESP 8266 sends a very long string about 3000 chas over http as client. Likewise sensor data are determined. The loop repeats itself every 250ms. Now I noticed that ...
1
vote
0answers
35 views

Deep sleep hangs when used with gpio 16 when we connect to reset pin

I have a node MCU and it hangs when I used a deep sleep, as shown in the image attached. My code looks like this: /* * ESP8266 Deep sleep mode example * Rui Santos * Complete Project Details https:...
1
vote
0answers
32 views

micros() resolution for Portenta H7

Is there any way to know the resolution of micros() for the Arduino Portenta H7. I have checked for other boards e.g. Nano which is mentioned as 4 uS. However, I couldn't find one for Portenta H7. Is ...

1
2 3 4 5
7