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
2answers
25 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....
0
votes
1answer
163 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
32 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 ...
1
vote
0answers
18 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
37 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
46 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
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
1answer
66 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 ...
1
vote
0answers
27 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
1answer
38 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
57 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: ...
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
34 views

int array passed through function has wrong values only after multiple passes

I have this code: for(int i = 0; i < its; i++) { x1 = random(0,4); y1 = random(0,4); multiLamp(new int[2] {3,1}, new int[2] {x1,x2}, new int[2] {y1,y2}, wait, 2); multiLamp(new int[...
1
vote
0answers
43 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 ...
2
votes
0answers
47 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 ...
1
vote
1answer
36 views

How to print something when a character touches a character

I am making a stickman rush game, where it goes up and down and then there is a object that scrolls to the left. Whenever that stickman touches the object, it prints game over. However when the object ...
0
votes
0answers
30 views

Adding new programmer to Arduino IDE

I want to use the Arduino IDE using a raspberry pi with raspbian OS because it's the only way I can read a Digispark usb (I don't have 2.0 usb ports in my laptop so I can't read the usb with it). I ...
0
votes
0answers
33 views

Optiboot not writing Sketch

Disclaimer, I'm very new to all the embedded malarky. Hi, I have a custom made board with an ATMega328 U-TH on it. the board came loaded with a version of optiboot and a demo sketch which was loaded ...
1
vote
1answer
35 views

Is there a working combination of Arduino IDE + Ardublock?

I'm trying to set up Ardublock, but the last release they have is from 2014 and in a recent Arduino IDE it fails when I try to upload the program to the Arduino board: Exception in thread "AWT-...
0
votes
0answers
18 views

Can I use 5 UARTS + SPI on SAMD21 dev board?

I'm interested in a SAMD21 devboard like this: https://robotdyn.com/samd21-m0-mini.html. The reason is that it has 6 SERCOMs which can be used as UARTs, SPIs etc. In my case I need 4 or 5 UARTs and 1 ...
-1
votes
0answers
30 views

How can I run IRremote by Ken Shirriff on Arduino IDE 1.8.10? [duplicate]

Q2 StarCat ; This is 1st time I have used GitHub! I am willing to update from version Arduino IDE 1.8.10. I haven't because I am hesitant to open a hornet's nest of NEW problems. Ran <IRremote.h>...
-1
votes
0answers
46 views

how can I run <IRremote.h> by Ken Shirriff on Arduino IDE 1.8.10?

Why doesn't <IRremote.h> by Ken Shirriff run on Arduino IDE 1.8.10 ? I am Using a CAR_mp3 IR remote control and a VISHAY 1838 IR receiver The Ardino UNO Serial Monitor responds with '0"
1
vote
1answer
48 views

Using functions in header files [closed]

I want to include a function in my sketch I moved to a .h file. I did it as follows: My code: #include "header.h" void setup() { fct(); } void loop() { } My header: #include "...
-1
votes
0answers
65 views

fatal error: ESPAsyncWebServer.h: No such file or directory

I'm trying to run the LED example for wethings with an ESP-12 and this error keeps coming up for me. Can anyone help me out? I don't understand I now have a new error, that follows as:
0
votes
0answers
46 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 ...
2
votes
0answers
36 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. ...
1
vote
0answers
42 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
43 views

Unable to compile c++11 libraries despite having added -std=c++11 in platform.txt

I want to use c++ data structures such as vectors, arrays, map... in my Arduino sketch. I made sure to add -std=c++11 and -std=gnu++11 in platform.txt, I am still getting the following error message: ...
0
votes
1answer
38 views

I have a problem combining two different sketches into one sketch

Below are two attached the two codes, the second code is for using a microphone to detect for cough and sneezes where the first code is used for humidity and temp. // For Scanning Insitu Exhale ...
1
vote
1answer
46 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
2answers
188 views

Generate a true analog signal using Arduino

I am looking for a way to create a true analog output with the arduino uno. I am constantly reading an analog input on a0 pin, all i want to do is send the same signal as output. I know arduino ...
0
votes
1answer
36 views

Arduino while loop with or condition

How do I write a program to wait (delay) until one out of two buttons pressed? I have written a program to wait until a single button is pressed. It's working fine. However, if I extend it to second ...
0
votes
1answer
49 views

I can't turn on the motor by Arduino IoT Cloud

I'm trying to turn ON/OFF a DC motor from Arduino Iot Cloud. I have to turn it ON/OFF physically and through the cloud, physically it works well but from the cloud it does nothing. I'm using an ...
1
vote
0answers
24 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
25 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 ...
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 ...
1
vote
0answers
34 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
31 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
vote
0answers
37 views

Fail to burn bootloader into standalone atmega2560

I am making a project where I use standalone atmega2560. I used arduino mega schematic to put all necessary components so atmega2560 would be working. I tried to burn bootloader into it using arduino ...
4
votes
1answer
66 views

HobbyTronics UNO PRO Board Definition does not work in newer IDE versions

I have a HobbyTronics UNO PRO that replaces the UNO's 328P in DIP with an ATMega1284 on an adapter board: I cannot link to the original page since it does not exist anymore. But, it is available ...
1
vote
1answer
35 views

Message parsing from MQTT server

I'm making a NodeMCU based home automation. I adapted code I found on internet for controlling a device (say LED) via MQTT broker hosted on a Raspberry Pi. It works fine. But when I try to scale it up ...
0
votes
1answer
27 views

I have a problem trying to limit motor speed to a certain RPM using a MOSFET trigger switch module

I am using the potentiometer to control the duty cycle of a PWM signal to the MOSFET trigger switch module, thus controlling the motor speed. In my code, I have used the map function to utilize the ...
0
votes
2answers
71 views

Portenta pinouts for ADC

I wanted to have your comments about one of my questions. I am currently working on the sketch for the Arduino Portenta H7. However, due to my poor electrical background, I would like to ask your ...
1
vote
0answers
69 views

Arduino interface of push button and led using millis()

I am working on a project of blinking of led using push button without delay().The limitations of led blinking is in accordance with the no of times the push button is pressed the led should blink ...
1
vote
0answers
38 views

Send sensor data through GATT with Adafruit Bluefruit

I have the BLE Module Adafruit ItsyBitsy nRF52840 Express and I want to send sensor values from a Hallsensor to my computer. I was able to have the right data checking with the Serial monitor. int ...
1
vote
1answer
112 views

Programming custom Arduino Mega with Arduino Uno

I'm making a custom board with AtMega2560-16AU as MCU and CH340G as bootloader (schematic can be seen in the picture). I have printed the custom PCB and soldered everything in place now I want to ...
1
vote
0answers
28 views

generate and using a precompiled library ESP32

I would like to ask you how I can generate a dot_a file for a given library for ESP32? I want to replace my .cpp file with a precompiled .a in the Arduino IDE. Is that possible? Can you please guide ...
1
vote
0answers
42 views

Storing data in Arduino Portenta H7's SDRAM

I am working on storing data from Portenta H7's ADC through a high sample rate (>100kSa/sec) per channel. I am using 2 ADC channel for my work. Through the forum, I learned that the serial. print ...
1
vote
1answer
67 views

Using lambdas as callback functions

Using the Ticker library for the ESP32, how can I use a lambda as an argument to the attach method? tickerSystemManager.attach(1000, [&](){ systemManager->sync(); }); Attempting to use the ...
1
vote
1answer
56 views

Is there something like a Virtual Environment for Arduino?

I'm using Arduino IDE for a variety of projects. The libraries and boards used in different projects are different and I would like to have a customized environment for each project. Eg: In a project ...

1
2 3 4 5
29