Newest Questions
25,032 questions
1
vote
1
answer
118
views
Software serial and RS485
I have 2 Arduino Nano that will communicate in half duplex mode with transceiver using MAX485. But the master has libraries like Wire.h, uses tone() and also receives UART communication.
I'm a ...
0
votes
0
answers
21
views
Delphi-vel, hogy lehet? Vezérelni sorosporton arduinot [closed]
Az Arduino soros portját, hogy lehet elérni az ARDUINO IDE nélkül Win 10 ből
0
votes
1
answer
46
views
Use of 3 synchronized PWM pins on Arduino Nano
I try to use three PWM pins on an Arduino Nano, each with 10kHz. I know that there are timer0, timer1 and timer3 but I wonder if I can combine them while ensuring all three PWM pins to be in sync and ...
0
votes
0
answers
44
views
PIR sensor gives high voltage [closed]
I wanted to test my new PIR sensor but it always shows the LED high voltage. Please tell me what to do?
code:
const int pirPin = 2; // пин pir датчика
const int ledPin = 13; // пин диода или ...
-3
votes
0
answers
20
views
Clutch pull ring to disengage gear motor [closed]
How to disengage a gear motor for manually turning a valve using clutch pull ring?
-2
votes
0
answers
37
views
Best Arduino Components/Sensors that is best for counting and classifying small object such as grains [closed]
I am about to conduct my thesis study entitled "Design and Development of an Arduino-Based Automated Milled Rice Counter and Classifier" in which we are about to count and classify these ...
-2
votes
0
answers
33
views
Controlling a gear motor turn a valve handle [closed]
How to make the gear motor to turn only from 0 degrees to 90 degrees and back to 0 degrees?
-2
votes
1
answer
72
views
NEMA 17 with A4988 Runs Smoothly During Code Upload but Moves Erratically Afterward [closed]
Problem Description:
I'm controlling two NEMA 17 stepper motors with A4988 drivers and an Arduino Uno. I'm experiencing a peculiar issue where one motor runs perfectly smooth during code upload but ...
0
votes
1
answer
52
views
I2C arduino to jetson TimoutError
I am working with I2C for the first time and having an issue with a very simple problem.
I want to send 2 bytes from an Arduino and nvidia jetson orin.
On the Arduino, my code looks like this:
#...
0
votes
1
answer
77
views
ESP32C6 + PN532 NFC Reader (HW-147C) SPI Communication Not Working - "Didn't find PN53x board" [closed]
I'm trying to get an NFC reader (PN532 module, HW-147C model) working with my ESP32C6 using SPI. I tried using multiple libraries (seeed-studio, Adafruit, and some on github, but nothing worked).
This ...
0
votes
1
answer
35
views
Which USB driver to choose for Digispark ATtiny 85 board connected to a Windows 11 PC?
I'd like to know which driver to use on a Windows 11 PC for a Digispark ATtiny 85, micronucleus bootloader: winusb, libusbK, libusb_win32 ? Thanks
0
votes
1
answer
72
views
ESP32 LEDC "hpoint" - Parameter
When using the ESP-IDF, there are the LEDC-drivers. Basically, you initialize a timer and a channel, so a matching PWM for your LED is the result.
ledc_channel_config_t.hpoint
...
0
votes
0
answers
52
views
Trouble connecting Uno + ESP8266 to Wifi
I am trying to build a simple project to get data from a web server and display it, using an Arduino Uno R3 clone with integrated ESP8266 wifi.
What I have so far:
The ESP8266 attempts to connect to ...
0
votes
1
answer
63
views
Arduino Nano ESP32 control WS2815 led strip [closed]
I’m trying to get a WS2815 LED strip working with an Arduino Nano ESP32, but I can’t get it to light up.
The strange thing is that with an Arduino UNO, using the exact same circuit and sketch, ...
1
vote
0
answers
53
views
Issue reading sensor values with CD74HC4067 16 Channel Mux
I'm running to an issue when measuring my sensor outputs. Previously I've connected my sensors directly to Nano analog pins and measured fine, but I want to use more sensors so trying a mux. Any help ...
1
vote
1
answer
69
views
Missing data when communicating over UART
So I am working on an Arduino project and have trouble communicating over UART.
I have a SIM7600G-H 4G Module from Waveshare and hooked it up to an Arduino Nano ESP32. The connections are as follows:
...
2
votes
2
answers
149
views
Receiving incorrect Data through CANbus MCP2515, Nano to Nano - Data points 3, 5, and 7 only go to 7 bits instead of 8?
We are trying to get two Nanos to communicate via CANbus, using MCP2515 shields. I have decided to use the autowp/arduino-mcp2515 CAN interface library for the code. I've based my code off their ...
0
votes
1
answer
513
views
Can an Arduino wake from deep sleep exactly on an analog voltage threshold crossing (not a digital interrupt)?
I’m exploring ultra–low-power sensing designs where the Arduino should remain in deep sleep until a specific analog voltage threshold is reached — for example, when a sensor output rises above 1.2 V.
...
4
votes
1
answer
299
views
Arduino IDE formatting quirk with nested lists
For an Arduino LED animation project I have been working on an editor tool using HTML and javascript. After setting up various things, the tool enables generating C++ code to paste into an Arduino ...
-2
votes
0
answers
44
views
A fatal error occurred: Failed to connect to ESP32-S2: Wrong boot mode detected (0x13)! The chip needs to be in download mode [closed]
This error is presenting in Windows 11 because I run this device in PC with Windows 10.
How to resolve this issue?
A fatal error occurred: Failed to connect to ESP32-S2: Wrong boot mode detected (...
0
votes
1
answer
63
views
Using Analog Multiplexer CD74HC4067 with Circuit Playground Express
I am working on a school project requiring the use of the circuit playground express. I am trying to connect a bunch of external photocells to the cpx so that it will change the color of its lights ...
0
votes
0
answers
78
views
USB Host Serial Port Emulator
I am trying to build a USB Host-side serial port emulator, similar to HyperTerminal or TeraTerm, to run on an Arduino platform. That is, to send and receive ASCII characters to and from a USB Serial ...
0
votes
1
answer
36
views
Arduino IDE 2.x fails to flash 32u4 via ArduinoISP flashed Nano, but 1.8.19 works
I'm trying to use a Nano as an Arduino as ISP programmer in Arduino IDE 2.x, and it's not working.
In v1.8.19 of the Arduino IDE I select the comport the Nano appears as, select "Arduino as ISP&...
0
votes
1
answer
44
views
Is there a c++ library for the GitHub API and Arduino compatible?
I'm logging some data using an ESP32 board, and I need the data logged to be uploaded from the ESP32 to one of my repositories on GitHub.
Are there any C++ libraries for the GitHub API compatible with ...
0
votes
1
answer
75
views
Change I2C address of Arduino Modulino Thermo
I want to use several Arduino Modulino Thermo modules in one project and therefore change the default I2C addresses of the sensors. On the internet, I find conflicting info about if this is possible.
...
0
votes
1
answer
42
views
Sketch Upload Fails -USB bus damaged?
My desktop computer abruptly started failing to upload sketches to the Arduino UNO (a smd "Make: Special Edition" board) I've been working with for the last few weeks. The sketch compiles ...
0
votes
1
answer
76
views
ESP8266 + TFT SPI ST7796S - Touch and Display not working together
I am trying to get the touch screen and display working on my ESP8266 + TFT ST7796S. However, only one of them works at a time.
Below is my pin configuration:
Function
Device
NodeMCU Pin
GPIO
TFT_CS
...
0
votes
1
answer
62
views
ESP-NOW works with broadcast but doesn't work with unicast
I'm using the Arduino IDE to program ESP8266 to communicate with each other using ESP-NOW.
If I call esp_now_send with the broadcast MAC address (FF:FF:FF:FF:FF:FF), the message is sent and the slave ...
0
votes
1
answer
65
views
esp_now_send takes a non-const uint8 mac address. Why? Does it modify it in some way?
I am using the Arduino IDE to do ESP-NOW communication with an ESP8266.
In espnow.h, on line 53 I find the function prototype:
int esp_now_send(u8 *da, u8 *data, int len);
Why does it take the mac ...
0
votes
1
answer
106
views
PS4 not recognizing Leonardo as a controller
I have created a modified AVR core based on ArduinoXInput's custom core but for PlayStation instead, to emulate a DS4 controller on HID-capable boards like the Leonardo. Using USBTreeView and online ...
0
votes
1
answer
56
views
L298N Motor Driver works only for a single direction
I'm using a L298N motor driver with an UNO and when I try to run a motor few seconds for forward and few seconds backward, it will only move for a single direction and remain still in the second ...
0
votes
1
answer
88
views
How to modify the Leonardo's HID descriptor
I'm trying to make an Arduino Leonardo work with a PS4 following a similar approach as ArduinoXInput with its modified AVR core. However, even though I managed to add the device and configuration ...
-1
votes
1
answer
180
views
Arduino Nano R4 interrupts
I have 4 of the the Arduino Nano R4 microcontrollers. My project requires a routine where the Arduino Nano R4 reads the A/D converter every 30 MicroSeconds, and runs a few lines of code on each ...
0
votes
1
answer
111
views
How do I ensure XIAO ESP32S3 reconnects to network?
I am writing a program for a XIAO ESP32S3 using ArduinoIDE.
The function of the program is to have the ESP open an Access Point (using AutoConnect) when it first starts up. Once the user inputs their ...
0
votes
1
answer
98
views
Problems to start OV5640 Camera in a ESP32-CAM board
This is the first time I write on this site, so let's go to the question but first a little bit of context:
I'm working in a esp32-cam board. I want to use a OV5640 camera to stream video but the ...
-3
votes
2
answers
66
views
What does VRx stand for in the KY-023? [closed]
The x and y axis pins on the KY-023 are labeled VRx and VRy, but I'm curious as to what they stand for, as I couldn't find any official statements about it. I assumed it was "Variable Resistor X/...
0
votes
1
answer
95
views
Ultrasonic sensor showing random readings
I am using a HC-SR04 ultrasonic sensor to measure the distance using an Arduino Uno. When I run this code which is worked perfectly in the previous, it only shows just random readings in the serial ...
-1
votes
1
answer
83
views
Using Arduino Pro Micro as a Rubber Ducky AZERTY layout
I'm trying to use an Arduino Pro Micro as a cheap Rubber Ducky. I want to use it on a PC that uses the Belgian AZERTY layout.
The problem is that Keyboard.h is not designed for AZERTY keyboards. When ...
0
votes
2
answers
69
views
How to instantiate a 2nd serial port on STM32 Nucleo-C092RC
I am trying to use two serial ports on the STM32 Nucleo-C092RC, but the 2nd serial port (i.e. USART1) is completely silent (USART2 is the default serial port used by STLink/VCP/USB on the C092RC).
No ...
0
votes
1
answer
80
views
When I try to debug using Arduino IDE for stm32 using stm32duino nucleo F767ZI throws error
I am trying to debug using Arduino IDE through STM32Duino for my STM32 Nucleo-144 F767ZI. The code is uploaded successfully, but upon pressing debug, I get this error.
Waiting for gdb server to start....
2
votes
1
answer
95
views
Setting the Libraries Path
I am tracking my Arduino project in git, and using git submodules seems an appropriate way to track the libraries used in the project attached to the git repo of the main project.
However, the default ...
0
votes
1
answer
488
views
esp32 cam is showing cam_hal : dma overflow
.xclk_freq_hz = 20000000,
.ledc_timer = LEDC_TIMER_0,
.ledc_channel = LEDC_CHANNEL_0,
.pixel_format = PIXFORMAT_JPEG, //YUV422,GRAYSCALE,RGB565,JPEG
.frame_size = FRAMESIZE_QVGA, //QQVGA-...
0
votes
1
answer
52
views
Problems reading WNK811 i2c sensor on arduino using wire library without device library
I am trying to read a WNK811 pressure sensor connected by i2c to an STM32 Nucleo F401RE, programmed as arduino. The WNK811 is a Chinese device, the device datasheet is highly minimal (inadequate in my ...
0
votes
1
answer
64
views
Using Serial Port names as a variable array for looping access to same block of code
If I have multiple NODES one on each Serial port (and / or SoftwareSerial port) all of which have the same code for execution can the names of each Serial port be put into an array such that I can say:...
0
votes
1
answer
75
views
How to adapt this ESP32 + TMC2240 stepper controller design to my project?
I’m trying to build a wireless stepper motor controller using an ESP32 with a TMC2240 driver. I came across this reference design: Wireless Stepper Motor Controller with ESP32 and TMC2240 https://www....
0
votes
1
answer
95
views
Why does my stepper motor have jerky motion with DRV8825 microstepping?
I’m using a NEMA 17 stepper motor (model 42SHDC3030Z-23WB-1 / 17HS4401S) with a DRV8825 driver with small radiator and an ESP32. Even when set to 1/16 microstepping, the motor motion is very jerky.
It ...
1
vote
1
answer
70
views
HC-12 receives garbage, but the garbage is consistent
I'm playing with two HC-12 wireless communication modules. After setting AT+FU4, I tested the modules, but the communication appeared to be unreliable in one direction. I tried to simplify the code as ...
0
votes
1
answer
79
views
Information about PWM frequency
Previously, the reference page for the analogWrite function showed the PWM frequencies for different pins on different Arduino boards, but now it doesn't mention it anywhere... Where is this ...
0
votes
1
answer
50
views
Send uint32_t over i2c from attiny85 slave to atmega328p master
I run into an issue with querying a uint32_t with an atmega328p master from an attiny85 master.
I have put both codes below.
I did run the equivalent code for just sending a uint8_t and all works ...
-1
votes
1
answer
120
views
Connecting the device to Arduino via the UART protocol
The essence of the task
I have a task to connect an external device with my arduino and transfer data to each other via the UART protocol. The external device has 4 pins (Two for power supply and RS-...