Questions tagged [arduino-ide]
Arduino is an open source IDE running on Windows, Mac OSX and Linux.
1,288
questions
0
votes
1
answer
20
views
ESP-wroom-32 output problem with WiFi scan on Arduino IDE
I want to scan all avaible wi-fi with my ESP-WROOM-32 and display the results on the Arduino IDE, i can upload this code to the board without problem
#include "WiFi.h"
void setup()
{
...
-1
votes
0
answers
34
views
esp32 not giving output when data is send from python to the serial monitor
I am trying to make a wireless communication between two esp32 boards. But when I send the command from my Python code the board doesn't seem to give the output. It works when I use my my serial ...
0
votes
1
answer
50
views
Formatting string to print to serial in Arduino
I am just wondering how exactly Serial.println works in the Arduino IDE. I am currently trying to print some info to the console so that I can read it in MATLAB. I originally tried the following code,
...
-1
votes
0
answers
15
views
How do I make the reminder alarm only if the user was detected?
I have this project of an automatic pill dispenser. I'm using an IR sensor to detect if the user took the pill or not yet. The pill gets dispensed at a certain time, if the user didn't take the pill ...
0
votes
0
answers
30
views
AD5628 controller not responding to SPI commands from Raspberry Pi Pico
I am attempting to write from a Raspberry Pi Pico/RP2040 chip to an AD5628 DAC mounted on a custom PCB, using Earle F. Philhower's library. So far, I have the following code:
#include <SPI.h>
/...
-2
votes
0
answers
23
views
Problem with uploading my code to the nodemcu microcontroller
When I upload My code an error pops up saying-A fatal esptool.py error occurred: Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is ...
-1
votes
0
answers
30
views
Creating an Object Within a Class Arduino / C++ [duplicate]
I'm trying to initialize an object from the EthernetUDP class within a class I'm trying to make. I keep getting in the .cpp file an Undefined error on the _Udp instance, please advise.
Thank you,
...
0
votes
0
answers
21
views
ESP32 running I2C in ISR (non-negotiable) keeps breaking
I've been writing writing C code on AVR for years (no arduino, just a makefile). However I need to do something bigger, so I chose an ESP32 Feather S3 board and interfaced it with my own board.
I'm ...
0
votes
0
answers
17
views
connecting arduino uno r3 and wifi esp8266 and sending a "1" to another wifi board when button is pressed
the problem is that
if (msg.equals("Pressed")){ wasPressed = 1; }
is not running when button is pressed. I can see the word "Pressed" getting sent in between the two board. But I ...
0
votes
1
answer
30
views
IOT based queue management system with nodeMcu (esp8266)
I want to create a queue management system used on counters in shops or banks as my data-structure project. I know HTML, CSS, some JavaScript and C++. This is for my DSA project in my institute. I am ...
0
votes
0
answers
23
views
Is it possible to animate multiple NEOPIXEL stripes in parallel via Arduino?
I´m having an ongoing project for a good friend of mine. I´m pretty new to this programming stuff, so I´m forced to ask for help.
He wants to have some sort of cloud ceiling with a few LED stripes to ...
0
votes
1
answer
33
views
fault input ESP32 showing
I am using the capacitive sensor to detect an object. The sensor required 24V to operate but ESP32 runs on 2.2 to 3.6V.The input from sensor also gonna be 24V. so I can't directly connect sensor to ...
-1
votes
1
answer
35
views
Is there a good way to use github to track and create snapshots of a portable install of Arduino IDE?
I am developing software for an ATtiny826 microcontroller in the Arduino IDE. To do this, I have to use a core for the 826 that is only supported up to Arduino IDE v1.8.13. For these reasons I've ...
0
votes
0
answers
60
views
unsuccessful use of the TVOUT library and arduino
I'm a student in a company in Bordeaux and as part of my work-study program I have to carry out a workshop on the theme of code and creativity. My project is to get students working on pixels in ...
0
votes
1
answer
41
views
Arduino stopwatch program almost 4x as slow as it should be
My program is supposed give an output as a timer on the Serial Monitor going up like a digital clock. It does this well, only extremely slowly, it takes about 4 real seconds to pass for a second to go ...
0
votes
0
answers
47
views
Can you help me fix my code for my IR detection/emitting/project
Context: Hello wonderful people of stack overflow, I am currently very lost with my arduino project. In short, I have a school project and I'm trying to make an arduino uno powered glove that ...
0
votes
0
answers
41
views
avrdude: loadaddr(): (b) protocol error, expect=0x14, resp=0xfc Arduino Nano
I am just testing a code named "Short DC Motor" using Arduino Nano.
Code:
const int MotorA = 5;
const int MotorB = 9;
void setup() {
// put your setup code here, to run once:
pinMode(...
0
votes
1
answer
71
views
D1 mini ESP8266 pulldown button always HIGH
I am trying to connect a button to my d1 mini ESP8266.
The button is connected with a pulldown resistor (10kOhm) to GND.
And on the same side of the button to the D4 Pin. on the other side the button ...
-1
votes
1
answer
58
views
D1 mini ESP8266 - Temperature monitor
I am trying to monitor temperature with a D1 mini and a NTC, which is working, but the Temperature is calculated wrong. On the Serial Monitor I get Temperatures of around -300°C.
When printing the ...
0
votes
1
answer
103
views
How to send Data from MIT App Inventor to Arduino using Bluetooth
I am using Heltec Wireless (without anteena) to receive data from my mobile app which is made from MIT App Inventor.
From the inventors side everything looks fine. I had a slider which I want to use ...
0
votes
0
answers
26
views
Using "Firebase ESP8266 Client" by Mobizt: How to handle database errors?
I'm (successfully) using the "Firebase ESP8266 Client" on my ESP8266 based Arduino project in order to read and write data to/from a Firebase realtime database.
But: From time to time, it's ...
0
votes
0
answers
25
views
How to Connect Multiple Devices to AWS IoT Using Shared Certificates?
I have to connect multiple IoT devices and to connect them to AWS IoT using shared certificates.I am using Nodemcu esp32 ad the the device.currently I have configured to run for single thing.I also ...
0
votes
1
answer
62
views
Can't debug generic ESP32 Dev Module with Arduino IDE
I'm newbie with Arduino IDE.
Arduino IDE version:
Version: 2.2.1
Date: 2023-08-31T14:35:44.802Z (1 month ago)
CLI Version: 0.34.0
Copyright © 2023 Arduino SA
I use a generic ESP32-WROOM-32 dev ...
1
vote
1
answer
66
views
Error - DNS failed to connect to endpoint of AWS when connecting esp32
I am trying to connect esp32 to AWS IoT Core using Arduino IDE platform. I am getting an error - DNS failed to connect to endpoint of AWS. Failed, rc =-2.
I am including the "connection of esp32 ...
0
votes
0
answers
77
views
Can't find i2s_std.h file anywhere
I'm trying to use I2S with my esp32 NodeMCU, and I copied an example code provided by the espressif website. In the example code it includes a header file:
#include "driver/i2s_std.h"
But my ...
-1
votes
2
answers
225
views
Wake up ESP32 deep sleep when sensor value is below threshold
I have a capacitive soil moisture sensor and an ESP32 and I'm trying to get the ESP32 to stay in deep sleep until the soil moisture outputs a value that is below a certain threshold.
But I'm not quite ...
1
vote
1
answer
73
views
Unrecognized opcode on floating-point Assembly instructions for Xiao ESP32-C3 (RISC-V based)
I'm trying to implement Ivan Kostoski's code for an ESP32-based sound level meter on a Seeed Xiao ESP32-C3.
According to the Seeed's wiki, that chip “is a 32-bit RISC-V CPU, which includes an FPU (...
0
votes
0
answers
220
views
Difference between using hardwareserial.h and serial2 with ESP32 in arduino IDE
I am using ESP32(esp32-wroom-32) and GPS neo-6m.
GPS serial ports are connected to Rx2 and Tx2 of esp32
GPS vcc and gnd connected to vcc and gnd of ESP32
I am using arduino IDE for development.
we ...
0
votes
0
answers
167
views
LovyanGFX library not working anymore (ESP-32)
I am trying to restore an old project and make a code that used to run compile again.
However, I am always getting this error, which is from the LovyanGFX graphics library:
Compilation error: '...
0
votes
0
answers
39
views
Calling numbers simultaneously
I provided a code that calls a specific number upon executing and uploading it to the microprocessor. I want it to call five different numbers simultaneously at a period of time(3 minutes).
#include &...
0
votes
1
answer
143
views
Compilation error: unknown type name 'class'
I have a totally noob-question...
I use Arduino IDE 2.2.1 and have defined this class, but keep getting the error unknown type name 'class'.
I used this tutorial as a base: https://arduinogetstarted....
0
votes
1
answer
41
views
LED PWM with Tact switch
While the button is pressed, led is fade on gradually.
Using pwm
when the Brightness value is more than 255, the value is reset to 0
while the button is not pressed, the Brightness keeps brightest ...
0
votes
0
answers
66
views
Node MCU V3 Serial Connection Issues
I am trying to connect my Node MCU V3 with the Arduino IDE on Ventura 13.5.2.
I am using the Board Manager URL "http://arduino.esp8266.com/stable/package_esp8266com_index.json" and the ...
0
votes
0
answers
73
views
How to get the requested url in NAPT range extender for NodeMCU ESP8266 with Arduino framework?
I have a NodeMCU ESP8266 WiFi development board.
I was using the RangeExtender-NAPT example sketch in Arduino IDE for ESP8266WiFi library.
You can find the code here too.
It works great. I was able to ...
1
vote
1
answer
59
views
Attempting to upload or update sketch or firmware always fails
My host is popOS and I suspect that matters here.
I plug in my Arduino and see the device show up:
$ ls /dev | grep -i -E 'acm|usb'
ttyACM0
usb
The default sketch is working as the power LED and ...
-2
votes
1
answer
29
views
Connecting an HC05 bluetooth module to a Pololu A-Star 32U4 Prime SV microSD
I am needing to connect an HC)% bluetooth module to a A-Star 32U4 Prime SV microSD and am unable to get it to work. For context I have a Pololu Dual G2 High-Power Motor Driver 24v18 Shield for Arduino ...
0
votes
0
answers
26
views
Arduino C++ related problems
I am trying to make a digital watch using DS3231 RTC module and arduino UNO so while uploading the sketch the display of LED MAX17219 glitches and shows random pixels with text that i want to keep.
...
-1
votes
1
answer
456
views
Deep Sleep wakeup w/ ESP32-C3
buttonPin starts from a pressed state initially. Thus when the code is uploaded with the button pressed at the start, the esp32-c3 goes to sleep. The other button (buttonPin2) wakes the esp up from ...
0
votes
0
answers
165
views
Arduino IDE ESP32-C3 hidden I2C initialisation / hidden Wire.begin()
I suspect that the Arduino IDE includes a bunch of code for the ESP32 / ESP32-C3, based on the selected "board" dropdown. I think in this code, I2C is being initialized with the default pins....
0
votes
0
answers
33
views
Why values are different when sending to influxdb
First Code
#include <Arduino.h>
#include <Wire.h>
#include <WiFiMulti.h>
WiFiMulti wifiMulti;
#define DEVICE "ESP32"
#include <InfluxDbClient.h>
#include <...
0
votes
0
answers
43
views
call to 'HTTPClient::begin' declared with attribute error: obsolete API, use ::begin(WiFiClient, url) 28 | http.begin(URL);
I'm trying to simulate sending temperature and humidity variables to xampp (localhost) via Post, using the idle arduino, but I'm encountering this error in compilation:
used board:
C:\Users\dossa\...
0
votes
0
answers
81
views
why I keep receiving wrong data via i2c using esp32?
I'm using a digispark as slave device that reads data from an analog sensor this is the code
#include "TinyWireS.h" //include the I2C library
#define I2C_SLAVE_ADDR 0x26 // define the I2C ...
0
votes
0
answers
33
views
Configure encoding and Unicode support in the Arduino IDE environment
i write program Blink led on arduino IDE for xiao nRF52840 sense but i got this error. I am using Macbook pro with MacOS version 13.2.1 (22D68) and arduino IDE version 2.1.2
Traceback (most recent ...
-1
votes
1
answer
114
views
Turning on LED immediately after Deep Sleep w/ ESP32-C3
I have a slight problem in my code such that my LED does not illuminate immediately after deep sleep. The wakeup reason is GPIO go low so that when a button is depressed, the esp will wake up. That ...
0
votes
0
answers
152
views
How to use Interrupt in Arduino to receive the data from Serial Input
currently i have a project that forced me to make a program that receives several data from Serial Input using Interrupt in Arduino. I use Arduino as the receiver and ESP32 as the sender through ...
0
votes
1
answer
84
views
STM32F103C8T6 input pull-up issue
PA0, PA1 and PA2 are defined as inputs with pull-ups enabled, as per below code, but when I push the button, the LED on PC13 turns off instead of being turned on.
What could be wrong? I am using STM32 ...
0
votes
1
answer
84
views
Problem while writing code for diy HID Arduino Gamepad
Hello there I'm trying to create a diy HID Gamepad that I will later integrate into something bigger, using the Arduino Pro Micro but I'm new to Arduino/MCUs development/programming, I trying to ...
0
votes
1
answer
272
views
Deep Sleep with EXT0 or EXT1 on ESP32-C3-MINI-1
I am trying to implement code for a EXT0 and/or EXT1 wake-up strategy for the ESP32-C3-MINI-1. I am using the Wokwi simulator to test since I have not yet received the Dev kit. However, I am unable to ...
-1
votes
1
answer
227
views
Interfacing ESP32-C3-MINI-1 using Arduino IDE
I am doing a project wherein I need to store device states. Essentially I have a momentary button (that will act as a toggle) to control which LED will illuminate. However, I also need to send the ...
0
votes
1
answer
75
views
SD card with ESP32 cam : Passing file to a function
In this code I need to pass file to the function and then read it inside the function.
The problem I can not read anything. it print "Opening file to read failed"
#include "SD_MMC.h&...