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.

282 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
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
0answers
858 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}/...
3
votes
0answers
305 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, ...
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 ...
2
votes
0answers
48 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 ...
2
votes
0answers
39 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 ...
2
votes
0answers
325 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
107 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
55 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
128 views

GET/POST request via AT Commands

I am trying to send a simple GET/POST request to a dummy end point on https://requestbin.com/. I am using an ESP8266 module. I am using the arduino serial monitor to send these AT commands. I connect ...
2
votes
0answers
46 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
33 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
52 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
114 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
176 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
121 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
279 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
833 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
658 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
136 views

Can't get MMC3416xPJ to work

I needed a magnetometer with a high Output Data Rate (ODR). This is because I wanted to measure AC magnetic fields of around 20-80 Hz. So I decided to go with the MMC3416xPJ prototyping board which ...
2
votes
0answers
599 views

Installing Arduino IDE in the new Ubuntu Disco Dingo

I tried installing the Arduino IDE in the newly released Ubuntu 19.04 Disco Dingo. I downloaded the file from the official downloads page. I chmod +x ed the file and ran the install script. Then, it ...
2
votes
0answers
2k views

Arduino HTTP post image to external server

I'm trying to send an image from SPIFFS to my external server. When pictures are taken, they are saved into "/pics/" directory within SPIFFS. Ultimately, I'd like to post all the images saved onto "/...
2
votes
0answers
496 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
2k views

String.format("%i",i) equivalent

How do I format an arduino String when I do not want to print it? I know that one can use printf() or other methods to print a formated string and unfortunately that's all I find with google. But that'...
2
votes
0answers
763 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
192 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
499 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
276 views

ESP8266-01 system param error

I'm using esp8266-01 connected to arduino nano. Every time I tried to upload code to the esp8266 chip I get this error in the serial monitor: system param error 56 45 52 31 00 00 00 00 ff ff ff ...
2
votes
0answers
450 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
491 views

Serial Monitor Stops Working

I am using a DIY colour sensor (RGB LED and LDR) and a servo to make a skittles sorter. I am testing out just the colour detection now and printing the RGB values to serial. It worked fine until I ...
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
161 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
44 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
414 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
894 views

Exception 29 ESP12E Arduino

I am getting exception 29 every time I make request to HTTP using GET function. I am requesting HTTP every 20-30ms but using millis I am only reading request at 100ms in order to avoid any overflow or ...
2
votes
0answers
910 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
280 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
401 views

Multi-file arduino esp8266 sketch sharing a reference to server

Transferred from stackoverflow on the advice of @Gee_Bee: I can get Writing a Library for Arduino to work as well as Breaking a sketch into multiple files and Classes within Classes - ...
2
votes
0answers
729 views

Is replacing USB serial WITH ESP8266+ESP link feasible?

ESP8266 (01-512k,) Arduino Uno (clone), Arduino IDE, Python 2.7.6 on Macbook pro running OSX 10.10.4 64-bit. Hello! I'm using a motion sensor with the following setup: Arduino Uno+motion sensor >>>...
2
votes
0answers
341 views

error parsing data from server using arduino uno and cc3000 shield

I'm using arduino uno with cc3000 shield and I'm trying to get some sort of data from my server but I only get some of it and the remaining part is delivered after so long, when I send the request I ...
2
votes
0answers
146 views

Reprogramming a specific slave from the master ATTiny 85 (connected to IDE)?

Given that every ATTiny connected already has a bootloader (micronucleus) installed, here's my theoretical chain: Computer > Master ATTiny (Connected via USB) > ATTiny Slave A > ATTiny Slave B Is it ...
2
votes
0answers
500 views

Arduino programming attiny13a

Hello I want to program an Attiny13a with Arduino code. I always have this error when I add repository "no file board.txt" in path. How to successfully configure IDE to able burn on it? I use : Link ...
2
votes
0answers
290 views

Is my leonardo broken? Is there a way to make it work?

backgrounds I bought arduino leonardo and connect it to Ubuntu 15.04. With arduino IDE 1.0.5(from Ubuntu official repo) running in sudo, the arduino was recognized as /dev/ttyACM0. So I tried to ...
2
votes
0answers
111 views

Can't program Atmega644p over ISP

I am using the Arbotix-M (Atmega644p). I am trying to program it using an ISP from Pololu. Until yesterday, everything seemed to be working okay and we were able to upload to it without problems. ...
2
votes
0answers
846 views

Arduino Uno R3 L(yellow) led stays on and error on upload

So I recently got an Arduino Uno R3. Installed the IDE and drivers under Windows 8.1 and everything seemed to work fine and received the 'Done uploading' message when goofing around with the Blink ...

1
2 3 4 5 6