Newest Questions
25,030 questions
0
votes
0
answers
8
views
NEMA 17 with A4988 Runs Smoothly During Code Upload but Moves Erratically Afterward
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
40
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:
#...
-1
votes
0
answers
18
views
CAN SAEJ 1939 prototype setup [closed]
Could this setup work ?
I plan to use 12V to power Sensor.
(and this library :
https://github.com/vChavezB/SimpleJ1939/tree/main/src)
My main concern is that : if the sensor is powered with 12V or ...
0
votes
0
answers
34
views
ESP32C6 + PN532 NFC Reader (HW-147C) SPI Communication Not Working - "Didn't find PN53x board"
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
21
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
-1
votes
1
answer
47
views
constintgreenLEDPin' does not name a type [closed]
I'm totally new to any programming and get the error constintgreenLEDPin' does not name a type
I did go through it but couldn't find any solution.
constintgreenLEDPin=9;
constintredLEDPin=10;
...
0
votes
1
answer
39
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
39
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
54
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, ...
0
votes
0
answers
37
views
Increase current of IR trasmitter with embedded resistence [closed]
I am new with Arduino. For a personal project I have an Arduino uno that is connected to this IR Trasmitter:
For arduino I have connected the +5V on VCC, GND PIN to IR transmitter GND and the PIN out ...
0
votes
0
answers
40
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
60
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:
...
1
vote
1
answer
97
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
510
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
282
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 ...
0
votes
0
answers
32
views
A fatal error occurred: Failed to connect to ESP32-S2: Wrong boot mode detected (0x13)! The chip needs to be in download mode
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 (0x13)...
0
votes
0
answers
41
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
76
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
35
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
39
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
64
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
38
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
61
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
59
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
60
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
103
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
54
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
81
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
138
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
107
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
85
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
61
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
90
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
80
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
59
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
71
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
88
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 ...
-1
votes
1
answer
461
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
48
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
58
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
71
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
88
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
78
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
49
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
119
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-...
0
votes
2
answers
114
views
problem with scripts in Arduino Lab for MicroPython
I am trying to set up an Arduino Nano ESP32 so that I can code in MicroPython. I successfully installed Arduino Lab for MicroPython and flashed the firmware onto the device, but when I try to run the ...
0
votes
0
answers
85
views
Cannot get Arduino Nano with CH340 chip to keep working
I have a bunch of Arduino Nano boards with the CH340 chip. When I want to upload code to a board, it sometimes works the first time, sometimes it doesn't. Afterwards, it mostly doesn't work anymore.
...
0
votes
0
answers
74
views
ASync Timer2 based OSCCAL value
How to calibrate the internal RC oscillator off of a 32768 Hz crystal serving Timer2?
void OSCCAL_calibrate(void) //This version specific to ATmegaXX8 (tested with ATmega328)
{
unsigned char ...
0
votes
0
answers
44
views
Cannot ping a host unless I use parseIP from Ethercard
I'm trying to write an Arduino sketch which pings multiple hosts and switches some RGB LEDs to indicate the status of the devices on my network. This question is a followup of ParseIP in the EtherCard ...