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
1answer
494 views

How to get the free/used space on a SD card and transmit it

I'm using this block of code to read and sum up the bytes of all the text files I have on an SD card: long get_sd_memory_taken() { File dir = SD.open("/"); long sd_memory_taken; int c = 0; ...
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 ...
0
votes
0answers
8 views

Problem with ESP32 bluetooth

I am trying to connect ESP32 via bluetooth classic to my PC to transfer some data from a sensor. As a first step, I am simply trying to send some random data over bluetooth serial. The code is at ...
1
vote
1answer
687 views

SCLK pulses not seen when using SPI on ESP32

I am using the following code in my esp32 using arduino IDE for spi communication which is an example code - #include <SPI.h> static const int spiClk = 1000000; // 1 MHz //uninitalised ...
0
votes
2answers
3k views

NodeMCU V3 + SD Card with Arduino IDE Not working

I am trying to connect CATALEX MicroSD Card adaptor to new NodeMCU V3 and PIN configuration are as below, NodeMCU ---------> SD Card GPIO13 (D7) ------> MOSI GPIO12 (D6) ------> MISO GPIO14 ...
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....
0
votes
0answers
11 views

Arduino MKR GSM 1400 project - Establish call - Wait and hang call

I am implementing a GSM project using the Arduino MKR 1400 GSM board and I would like to achieve the following: Establish a call to a specific number, wait for a certain amount of seconds and then hag ...
1
vote
1answer
40 views

StoreProhibited error while trying to read file to PROGMEM

I'm trying to read a file from micro SD on an ESP32-cam board and upload to an FTP server, but when I try to read data from the opened file to an unsigned char, it gives me the following error: Guru ...
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. ...
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 ...
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 ...
0
votes
1answer
1k views

No Matching Function for call to Ultrasonic:Ultrasonic(int,int)

Good Day! I am trying to code the distance of Ultrasonic Sensor but the problem is it gives me this error. Any idea? Please help. #include <Ultrasonic.h> // HR-SC04 SENSOR #define TRIGGER_PIN ...
1
vote
1answer
490 views

Read Multiple Sensors Data from a text file located in SD Card in Arduino/ESP32

I am working on a small home project 'glucose meter' via non invasive techniques. I am using four sensors like RGB color sensor, two multi-wavelength photo diodes (A & B) and temperature sensor (K-...
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 ...
0
votes
2answers
525 views

Reading from SPIFFS - What's the best way to deal with a string (or char) array with undefined length?

I've read that it's best to avoid using String in Arduino so I'm ready to use a char array if it's better. I'm reading the file names from an SD Card and my goal is to store them in an array and then ...
1
vote
1answer
17 views

How do I get sensor values using transmitter and reciever

I used an HC-SR04 sensor and connected it to an arduino board (BOARD1) with a 433 mhz transmitter and the other board (BOARD2) is connected to the 433 mhz receiver but I don't know how to see the ...
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 ...
2
votes
1answer
114 views

Remove blocking delay() toneMelody function?

I would like to change the delay() into a nonblocking function in the code below. I've implemented it (a part of a tutorial from arduino.cc) in my code, but the delay() is blocking the rest of my code....
1
vote
1answer
80 views

Arduino IDE 2.0 Beta doesn't start

Yesterday i downloaded the new version of the IDE to take advantage of all the new features, but it just won't open. I tried installing it to different paths, different PC's, i deleted the ...
0
votes
0answers
20 views

Stm32 Blue Pill Internal reference voltage Arduino IDE

I want to use the internal reference voltage (1.2V) of stm32f103 blue pill using Arduino IDE. I searched the whole internet but couldn't find anything. I need help with this. Thanks.
0
votes
0answers
599 views

Stm32 Blue Pill Internal ADC Voltage Reference Configuration

I am programming an STM32F103C8T6 Board in Arduino IDE. I want to change the value of the internal Voltage Reference for the ADC. How can I achieve this in Arduino ide?
0
votes
0answers
23 views

How to export RSSI values from arduino ide to Excel (REAL TIME UPDATE)

i am using esp32 for getting the rssi values from esp 32 using Arduino IDE. MY CODE #include "WiFi.h" void setup() { Serial.begin(115200); // Set WiFi to station mode and disconnect ...
1
vote
1answer
57 views

Register writing by compound assignment and pointer in Arduino due

I'm confused with register wrting method by compound assignment and/or pointer because I don't know where are some of the values come from. Example 1 REG_PMC_PCER1 |= PMC_PCER1_PID36; // Enable PWM - ...
1
vote
1answer
184 views

Is it possible to compile and upload code witout the IDE?

I just got started with Arduino, and found out that I need the IDE to compile and upload codes, which works perfectly fine. This is my code: # pragma GCC optimize ("Ofast") char i = 0 ; ...
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
1answer
551 views

Cannot get any readings from DHT22 Sensor connected to Arduino M0 Pro

I have directly connected a DHT22 to my Arduino M0 Pro. I have put a 10k Resistor across the Data & V+ of the sensor pinout. The data is connected to pin 5 and I have it connected to 3.3V output ...
1
vote
2answers
31 views

Setting float to two decimal places

I'm trying to set my temperature measurements to two decimal places. Currently what I get are six decimal places. Here is my code: #include "math.h" ... (in loop) temp1 = sensors....
1
vote
0answers
39 views

Expected initializer before 'myservo' [closed]

Hello i am getting into Arduino and want to get my code tidy. I dont know how but thought by #include "Stepper.h" and "Servo.h" would work. The programm shows it works. But now it ...
0
votes
1answer
233 views

Format error with ESP8266 compile

I get this error when I try to compile and upload the code for the ESP826612E fork/exec /home/c/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++: ...
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 ...
1
vote
0answers
19 views

Unable to load the arduino sketch through ISCP/serial interface [closed]

I am unable to load the customized Arduino sketch from one board to another through Arduino ISP or bootloader. I am able to replicate the same through ISCP pins only if the slave board is connected to ...
0
votes
1answer
71 views

connected between 2 arduino

i want to connect SPI 2 arduino master and slave through the MUX , to write and read in external memory , when the master write in memory slave read . pls help . code to master #include <SPI.h&...
1
vote
1answer
420 views

Bad Data : Arduino Mega & NodeMCU Serial Communication

Currently I am working on an Arduino project. The project required to establish communication between Arduino Mega and NodeMCU ESP8266. Here are some details about the project: NodeMCU Rx Pin is ...
3
votes
3answers
3k views

Can't include files

For some reason, the Arduino IDE can't find the file I have made for the project: #include <foo1.h> #include <foo2.h> #include "foo3.h" Where foo1 and foo2 are normal libraries thus ...
0
votes
1answer
39 views

LED does not blink - Arduino UNO+WiFi R3 ATmega328P+ESP8266 board

As I am learning the Arduino coding, I want to see if my program can turn on the LED light. I have tried all the things, but the code does not start the LED light I have installed on the board. The ...
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 ...
0
votes
1answer
76 views

Reading and Writing to a JSON File on the Desktop from Arduino?

I'm fairly new to Arduino. I'm working on a project where I'm making HTTP requests using a python code and this lets me read and write to a JSON file on my desktop. I have an Arduino with sensors that ...
0
votes
1answer
123 views

Shock sensor is not running in the file

I have faced an issue where the shock sensor is not running in the file. My idea is that when the ultrasonic sensor sense that when it is 4cm, the garage door will open. When the car reverses, the ...
0
votes
1answer
40k views

error: expected primary-expression before ',' token

I'm gettng an error "error: expected primary-expression before ',' token" in the following line of code - I have initialized an array with 220 ints. What am I doing wrong here? const PROGMEM int ...
1
vote
1answer
39 views

Are there any Arduino libraries that allow you to upload data directly to PostgreSQL?

Are there any Arduino libraries that allow you to upload data directly to PostgreSQL? I have been turning the internet upside down to answer this question but most of the information is several years ...
1
vote
1answer
53 views

Programming ATtiny85 with Arduino-IDE and an 8MHz external oscillator

I have a digispark ATtiny85 development board and I am using the Arduino IDE to program it along with the Arduino UNO as my hardware programmer. I have successfully burned the fuses for both the ...
0
votes
1answer
54 views

Deactivate pushbuttons at initial stage

Pl someone answer my question. I have 4 pushbuttons namely add/reject/start & finish. I want to 1.Deactivate add/reject buttons at initial stage until start button pressed & 2.Once add/reject ...
0
votes
0answers
13 views

Does the Sparkfun ESP32 Thing is compatible with generic modules like DHT11 sensor?

First of all I am kind of a noob working with microcontrollers, by the way I am using Arduino IDE 1.8.13 I fallowed the hookup guide to set up Arduino IDE to work with Sparkfun ESP 32 Thing board, and ...
0
votes
2answers
457 views

Using an ESP8266 with an Arduino Uno - can't get AT command to work

I am trying to connect an ESP8266 to my Arduino Uno. Connections: RX -> RX TX -> TX CH_PD -> 3.3v (Arduino 5v using voltage regulator) VCC -> 3.3v GND -> GND I am running the RX and ...
1
vote
1answer
70 views

How can I program 2 ultrasonic sensor, one on the servo motor and one attached on the front side of the car?

I want to attach two ultrasonic sensors to an obstacle to avoiding the car. One on the front of the car Second on the servo motor on the car It is an obstacle avoidance Project. I am getting the ...
0
votes
1answer
70 views

ESP32 millis not working properly

I have a program which measures temperatures every 30 minutes and sends them to a database. Immediately after running the program the first measurement is sent, however, the second (which should be ...
0
votes
3answers
154 views

Run multiple function with different argument/return structure by one function pointer

Edit: I tried a simple code in Arduino IDE which should've done in the first place instead in doing it in a desktop compiler. Because the results are different by experiment. In the desktop C compiler,...
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 ...
0
votes
1answer
35 views

Read sd card content(text files) and display it on lcdi2c

i am working for a project based on lifi using arduino and i need to diplay content of sd card to lcd i tried a lot some online programs also i tried but there is a simple blank screen. one of the ...
1
vote
1answer
73 views

Arduino IDE 1.8.13 won't launch properly

Recently I have been trying to install Arduino IDE 1.8.13, and I have ran into according problem. When trying to launch Arduino IDE with ./arduino command it shows according error: ./arduino: line 35: ...

1
2 3 4 5
29