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, Mac OS X, and Linux.

Filter by
Sorted by
Tagged with
0
votes
2answers
30 views

Weird behavior of variables when replacing for loops with if statement

See the picture of serial monitor showing I get a large number, 4 billion, when I multiply two called functions together. It always happens after 53 if I change the amount the if statement counts to. ...
0
votes
1answer
13 views

Http request in interrupt esp8266 not working

So i have this code that whenever i click a button a interrupt starts. In this interrupt i want to do a get request to a webserver. The thing is seperate the code, the interrupt code works and ...
0
votes
0answers
19 views

timer specific interrupt

how can we get a timer interrupt in a specific time or date? for example I want to make a project with UNO and I'm using sleep mode and the wake up source is timer2 as far as the ATMega328p datasheet. ...
0
votes
2answers
33 views

Check if the board is in sleep mode

I'm using seep sleep mode with UNO with a simple sketch that turning on an LED and then goes to sleep. as far as the ATmega328p datasheet in sleep mode part showing the wake up sources and deactivated ...
0
votes
0answers
41 views

Need a list of all the instances & codes [closed]

I am trying to build a GPS guided robot. I am new to GPS and want to get some help. I want some codes which I would need in order to achieve my feat... The robot would also be facilitated with a ...
1
vote
0answers
19 views

How to properly pass struct as argument? [duplicate]

This is my first question! i'm sorry if i'm doing something wrong. I'm trying to write a code that blinks some leds, but i cant quite work out how to use structs as arguments. This is the code: void ...
0
votes
2answers
46 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 ...
0
votes
0answers
23 views

Fingerprint not detected

I'm currently trying to integrate my ESP32 Module (as in https://cdn.instructables.com/FOL/YWLI/JEOILQ5U/FOLYWLIJEOILQ5U.LARGE.jpg) with Fingerprint Sensor(R307) using the Adafruit Fingerprint Library....
0
votes
1answer
35 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
votes
1answer
31 views

Summarizing a repetitive code in a void loop function

How can I summarize dozens of code lines for blinking a red LED in Arduino Rich Shield? Is there a way or method to eliminate at least half of the code for repetitive scenarios? const int redPin = 4; ...
0
votes
1answer
29 views

Reading out two sensors via Com-Port at the same time

I have two Arduino Nano Every and a sensor connected to each of them. Here is what's happening: I upload the sketch to the first Arduino on Com4 and see its output is correct via the Serial Monitor I ...
0
votes
0answers
34 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
1answer
172 views

How to create large progmem arrays and not annoy the linker

I have a rather complex project (PlatformIO, but I've also had this happen in the vanilla IDE) with several nested includes. Let's say that there are three files and a main sketch. The main sketch ...
0
votes
1answer
44 views

Arduino Firebase connection refused error

I am making a project for school where I have to send data from a sensor to a webpage. After doing some research I decided to use a Real-Time Firebase database. Security is not really important and I ...
0
votes
0answers
48 views

While Loop does not stop when condition is false

Here's the code: void loop() { while (1 == 1) { ObsLeft(); while (SeeLeft < 50 || SeeLeft == 50) { Urong(); ObsLeft(); if (SeeLeft > 50) { Hinto; ...
0
votes
0answers
25 views

Can't find a #include

I'm using the Marlin 2.0.3 for a 3D printer project. I'd like to tear apart the code, but I don't see a #include to anything in the Marlin.ino, Configuration.h, Configuration_adv.h, nor Version.h. If ...
0
votes
2answers
96 views

Arduino Nano 33 IOT issue

Nano 33 IOT is not detecting by windows . When i plug the usb cable only green light on the board. Board is installed from the board manager. the cable is usb DATA cable and not charging cable. I ...
0
votes
0answers
13 views

Home Security System - Arduino [duplicate]

I wanted to connect 3 sensors for my security system. First, I'll be using PIR sensor in detecting motion for plausible burglars. Second, DHT-22 for monitoring temperature and humidity level. Lastly, ...
0
votes
0answers
37 views

Unable to upload code on Arduino Nano on Manjaro Linux [duplicate]

I try to upload the Blink sketch. I can successfully upload on Windows but not on Manjaro Linux. I'm using Arduino IDE 1.8.12. In Boards Manager Arduino AVR Boards version 1.8.2 is installed I tried ...
0
votes
0answers
40 views

Motors working with Ultrasonic Sensor and Servo as expected?

So, I tried making an Arduino Project(Controlling Motors by Remote and Ultrasonic Sensor would activate Servo when the distance is less than 50cm). I am trying to build a project, A remote controlled ...
0
votes
2answers
71 views

problem with decrement in a loop

I am trying to write a sketch wherein the led brightness increases in increments of 15 until it reaches 255. At that point I want to make decrements of 15 until it reaches 0. The increment part of the ...
0
votes
0answers
25 views

StaticJsonBuffer is a class from ArduinoJson 5 error

I am trying to upload data from a DHT11 sensor to a firebase database. I am following this guide: https://circuitdigest.com/microcontroller-projects/sending-temperature-and-humidity-data-to-firebase-...
0
votes
0answers
30 views

Task watchdog gets triggered during Bluetooth initialization

The board ESP32-Dev-WROOM-32D cannot establish a bluetooth connection due to the task watchdog. Here's my code: #include "BluetoothSerial.h" //check if Bluetooth is enabled #if !defined(...
0
votes
0answers
31 views

adafruit rfm95w and sd card

I am looking to use the adafruit rfm95w(https://www.adafruit.com/product/3231) on top of the adafruit huzzah esp8266(https://learn.adafruit.com/adafruit-fea ... 6/overview) and an SPI sd card breakout....
0
votes
1answer
30 views

Gauss solver for IIR filter

I write a piece of code in online GDB using c++, the code calculates some coefficients for a IIR filter which tries to approximate a fractional derivative and integral for a fractional PID control. ...
0
votes
0answers
34 views

Arduino IDE on eOS? Java?

Tried to install Arduino IDE on Juno, install script gave warnings about icons not being installed on desktop (which is fine since no desktop folder for eOS) but then when try to launch the IDE icon ...
1
vote
1answer
59 views

Does flashing ESP8266/ESP-01 firmware mean uploading a new 'sketch' and why different firmware?

Hi I am new to IOT and I am now in love with this. However I'm a little confused right now with the jargon. My question is similar to this. But I do have some extra questions though. When using ESP ...
0
votes
3answers
119 views

Access Control System with an 4x3 Keypad & RFID-RC522

hey guys I have a access control system working perfect with rfid and keypad. I would like to implement : If the PIN is entered more than 3 times incorrectly the card is disabled. someone could give ...
1
vote
2answers
58 views

7-Segment Display with WS2312B and FastLED

I thought of the idea of using the WS2312B LED strip to drive a custom 7-Segment display. The project will require a large number of these displays, and driving them with a single Arduino (I'm ...
-1
votes
1answer
41 views

Neopixel code not working on Adafruit Feather board

I have connected a single neopixel to my Adafruit Feather board, running Arduino software. The power pin is connected to 3V on the Feather. The data-in pin is connected to pin 15 on the Feather. As ...
0
votes
1answer
41 views

ESP8266, sporadically no write access to the file system

I have an ESP8266 project which reads my gas consumption. The hardware and the project run satisfactorily. Sporadically, the ESP8266 can no longer write to its file system and therefore cannot save ...
1
vote
0answers
27 views

can Arduino IDE link to other libs / files in other directories? [duplicate]

can Arduino IDE point to a file in another directory? If yes how? With my code ../../main.h the compile fails. Error: In file included from D:\Eigene Dateien\Entwicklung\SIGNALDuino_MR\src\arduino-...
-2
votes
2answers
100 views

To control the relay switching in nextion using esp32 Microcontroller

I have developed the code to control the relay switching on/off using nextion display and esp32. But whenever I press my dual state button in the nextion display there is some delay and I need to ...
0
votes
0answers
48 views

Can ESP 32 use the wire library exactly like that was in Arduino?

Compare the YouTube video and this webpage, the former one made programming very different in ESP32 and that was in Arduino nano, while the webpage seemed to imply that they work exactly the same. ...
0
votes
1answer
190 views

MacOS 10.15.1 Catalina CU port always busy, and TTY port not selectable

I am trying to use an FTDI breakout board to connect to my custom made Arduino compatible board. I am using a new 16 inch macbook pro with USB-c ports, so I am using a dongle, in case that could be ...
0
votes
1answer
59 views

Arduino ESP8266 - stack ERROR - ESPExceptionDecoder to debug - need help to find ERROR

i have one project that can ready compiled. The function is break on the hardware an i need help to finde the error. I am a beginner and ask for help. How can I narrow the error down? Sketch: ...
-1
votes
1answer
103 views

esp8266 ip address issues

I have android studio app and arduino codes they are connected to each other using esp8266 but it works only on one network when I use another network it doesn't recognise it's ip address instead it ...
0
votes
1answer
85 views

How to print stack trace and register dumps on arduino serial monitor?

I want to debug my ESP32 module which is giving an exception using ESP32 exception decoder, but for that, I would need to have access to my stack trace to paste it. But currently, my arduino serial ...
0
votes
1answer
49 views

Why is Toolchain Not Updated with Arduino IDE Install on Mac

I have not been doing any Arduino work for about a year. The last time I ran the Arduino IDE was in the previous version of MacOS. Now that I have updated to the latest MacOS Version Catalina (10.15....
0
votes
0answers
41 views

How can I interface EEPROM in websocket via Arduino?

I am at beginner level and I wanted to implement EEPROM write after receiving data from a websocket. If the websocket doesn't receive any data within 5 seconds then I want to write to EEPROM the value ...
-4
votes
2answers
101 views

LCD is supplied more than required current [closed]

So, i am trying LCD 16x2 module for the first time and don't how solve this problem. I know the current is more, also I've tried using Resistors, etc. but to no avail. Please suggest a solution. Also ...
0
votes
0answers
31 views

Control Arduino through a website

I want to know is it possible to control an Arduino through a website. I have seen some tutorials that are doing it but it is in a local network. What i am trying to do is : - Arduino connected to ...
0
votes
3answers
147 views

Level shifting 5V <-> 3.3V

My main goal is to use connect the HC-SR04 ultrasonic sensor with ESP8266. Problem is, HC-SR04 works with 5V while the ESP8266 works with 3.3V In order to solve this, idea would be to use a logical ...
-3
votes
1answer
54 views

What is PWM actually? [closed]

tcommand=(pwm_value-480.0)/8.22; flapmag=(pwm_value-880)/41.0+10; In this piece of code used in arduino, I don't understand why PWM value is subtracted and divided like this. This is not my code. Any ...
0
votes
2answers
52 views

LSB/MSB and shiftOut

Here is the shiftOut function code from wiring_shift.c void shiftOut(uint8_t dataPin, uint8_t clockPin, uint8_t bitOrder, uint8_t val) { uint8_t i; for (i = 0; i < 8; i++) { ...
0
votes
1answer
40 views

IDE finds multiple libraries

I don't understand Arudino IDE. Ever. This is a part of the compilation output: Alternatives for ArduinoJson.h: [ArduinoJson@6.14.0] ResolveLibrary(ArduinoJson.h) -> candidates: [ArduinoJson@6....
0
votes
1answer
28 views

How to declare a pointer for arduino neopixels library so I can set it up in the setup function with dynamic variables?

I am using NeoPixel strips, and I want to be able to declare a pointer to them, but not initialize them until the setup function (because they will initialize with certain variables only made ...
-1
votes
1answer
56 views

Need my code to do multiple commands when inputs are pressed

Hello all I am back again with another issue concerning a code for my job. The code I have been working on is meant to connect to a IP server where some options are listed and I can control the servo ...
0
votes
2answers
73 views

Latest news about alternative Arduino IDEs

I simply hate the default Arduino "IDE". On Windows I use Visual Studio Code with the related plugin. Now I have a Ubuntu machine and I'm looking for the definitive IDE. Questions: I'm not sure ...
0
votes
0answers
29 views

Custom Board with ATSAMD21E17 with adafruit bootloader - can't flash

i build a custom board with an ATSAMD21E17D, similar to adafruit's Trinket M0, but with more used pins and different pinmux. I sucessfully burned the adafruit UF2 bootloader for that board using ...

1
2 3 4 5
25