Newest Questions
24,983 questions
0
votes
0
answers
33
views
Change Arduino 2560 code to work with Pul/Dir instead of PWM [closed]
So I'm trying to use a piece of Arduino code which I found on this website:
https://github.com/Bjoes/Stewart-platform-6DOF/blob/main/Arduino/Arduino%20Code
The thing is, I'm using different servo ...
0
votes
0
answers
68
views
Is this hack credible for resetting the Leonardo's ethernet chip? [closed]
Please let me post this discussion with my friend relating to the watchdog on a Leonardo Eth:-
Q. Is it possible to lock up the ethernet chip on an arduino leonardo so badly that even if the ...
-1
votes
1
answer
60
views
How do I change what variable I am changing based on a separate number?
I am trying to change thing2 if I input 0, and thing3 if I input 1. I don't want to just have if/else to determine if I should be changing thing2 or thing3 because I want this to be more dynamic than ...
0
votes
0
answers
29
views
How to setup a Captive Portal through Mbed OS WiFi interface on Arduino GIGA R1 [closed]
I need to setup a captive portal on an Arduino GIGA (Mbed OS) to ask user for network credentials for STA connection.
Currently, I open AP connection and use UDP as DNS hijack, which usually works ...
1
vote
1
answer
87
views
Reading JSON from Arduino via Serial Missing Parts of Message
I have a project (Digital Dashboard for a Motorhome) in Pi that reads JSON data from an Arduino board and sends it via Serial.
The Pi gets the JSON data, makes some adjustments and then sends it to an ...
0
votes
1
answer
29
views
Replace bootloader in ATTiny88
There are other threads about replacing the bootloader on Arduino boards, but the ATTiny88 seems to be rather a different beast. Instead of creating a serial port and sending the compiled code to the ...
0
votes
1
answer
49
views
How to faithfully collect geophone data by modbus RTU?
I am trying to collect data from a geophone using a UNO R4 minima as slave with a Zihatec shield, so that I can integrate it into a larger project on a modbus RTU bus.
The signal from the geophone is ...
4
votes
2
answers
1k
views
I need compact code to fit in memory
I feel a little like I am back in 1975 trying to fit my code in 4K of RAM.
I am writing some code for an ATTiny88, and the code is starting to get big, relatively speaking. I need to save every byte ...
-1
votes
0
answers
43
views
How do I generate a SQUARE wave with an Arduino Uno and DDS 9850 module?
I am having difficulty generating a square wave using an Arduino Uno and an AD9850 frequency generator. From what I understand the ZOUT pin should generate a square wave at the same frequency that the ...
-1
votes
0
answers
19
views
avrdude: stk500v2_getsync(): timeout communicating with programmer Failed uploading: uploading error: exit status 1 [duplicate]
i bought chinese arduino mega 2560 and have this error
avrdude: stk500v2_getsync(): timeout communicating with programmer Failed uploading: uploading error: exit status 1
led on L is blinking when i ...
0
votes
1
answer
48
views
Arduino HardwareSerial flow control with handshake XON/XOFF
I am sending large texts from PC to Arduino over Serial and I cannot simply copy-paste it, as Arduino is not fast enough to process it on the fly.
I need some flow control (probabely XON/XOFF) so ...
0
votes
0
answers
61
views
ESP32-S3 continuous reboot after flashing larger firmware
I’m facing a persistent reboot issue on one of my ESP32-S3 boards after flashing a larger firmware binary. Here’s a breakdown of the problem:
🔧 What’s Happening
After flashing my project (which ...
1
vote
1
answer
59
views
How can I improve ELM327 response stability on Arduino after setup verified with OBD-II scanner guide?
I'm using an Arduino Mega with a Bluetooth ELM327 adapter to read live data from my car’s OBD-II port — specifically RPM (PID 010C). The goal is to log data to an SD card or display it in real time.
...
1
vote
1
answer
63
views
How does `delay()` differ from using `millis()` in terms of processor efficiency and responsiveness?
In many Arduino sketches, especially beginner ones, delay() is commonly used to pause between actions. However, I’ve seen more advanced projects use millis() instead to handle timing.
From a ...
1
vote
1
answer
26
views
How can I achieve <50 ppm timing with a Sparkfun Artemis ATP?
I want to sample an ADC at very regular intervals. Right now, using millis/micros (which are driven by the internal RC oscillator), I'm off by around 3000 ppm, and it drifts.
Here are some things that ...
0
votes
1
answer
69
views
MKR1010 Interference when relay motor engages?
I am a complete beginner. Are Arduino products really flaky?
I've thrown together the circuit in the diagram - an MKR1010 in a relay shield. I've wired up 2 sets of sensors, an LCD screen and a motor. ...
0
votes
0
answers
32
views
Arduino R4 webpage not loading
I am trying to create a web page through which I can control the builtin LED of Arduino R4 wifi. I thought since this is basically an ESP32, I could run it but, even though I'm getting the IP address ...
1
vote
1
answer
48
views
Is there a way to use symbolic names for debug watch of RISC-V registers?
Re debugging RISC-V CH32V2xx/CH32V3xx
Is there a way to watch 'RCC_CFGR0', say, rather than '* 0x40021004'?
eg. add definitions to GDB?
(program compiled with -g option and optimized for debug, IDE 2....
-1
votes
1
answer
110
views
Error in Compiling for Seeed Xiao nRF52840 [closed]
I am using Arduino IDE 2.3.4 to program a XIAO nRF52840 Sense. I added the board using the instructions on the official getting started page.
After installing the board in Arduino IDE, I open up the ...
1
vote
1
answer
92
views
include directive for external libraries
I added the Adafruit_GFX_Library to my Windows.
I used Arduino IDE, Tools > Manage Libraries > Install.
In preferences, Sketchbook location is set to d:\Alex\Hobbies\Electronic\Learning Arduino\...
0
votes
0
answers
77
views
How to setup the configuration (User_Setup) of TFT_eSPI for ILI9225 176x220 TFT with esp32?
I was trying to interface my 2 inch 176x220 reslolution tft display having a ILI9225 driver with esp32 using TFT_eSPI library.This is the User_Setup file of the TFT_eSPI library, i edited this to ...
0
votes
0
answers
45
views
ESP32 - SIM7000G and TinyGSM response from server stuck/delayed with multipart/form-data POST request
I am experiencing a delay in receiving the HTTP POST request body when sending data over a TCP connection using the TinyGSM library with a SIM7000G and an ESP32 (LilyGo T-SIM7000G).
Below is my ...
0
votes
0
answers
30
views
WeMos connection to SinricPro
I am using a WeMos Wifi ESP8266 with a DHT11 sensor to measure temperature and humidity in my house and send them to SinricPro. Alexa then reads from here and uses them to answer to the question "...
2
votes
0
answers
77
views
Arduino libraries in Atmel Studio, importing INO and building core for DUE
Is there a simple way to use the Arduino libraries in Atmel Studio 6 or 7? Already tried it with include path but thats a never-ending story. Looking for a precompiled .a file for the Arduino Due so I ...
0
votes
1
answer
46
views
How to receive data from an Rasberry Pi on ESP32-Cam?
My use case is an ESP32-cam that serves two purposes:
HTTP feed (accessed by a Raspberry Pi 5 which processes stream and provides a response)
Servo Motor microcontroller: Receives response from ...
0
votes
2
answers
67
views
How do I read data from a 32 bit I2C register address?
I'm having trouble reading the I2C data from the CPS8200, that has a 32 bit Register Address. Since I'm not too familiar with I2C register addresses more than 8 bits, and right now I'm not sure if I'm ...
0
votes
1
answer
44
views
Compiling issues with included library MX1508 for Billy Bass build
Thank you for considering my question.
I have been learning Arduino so I can teach coding basics to my son. I came across a fun project to interface bluetooth with an old singing Billy Bass so he can ...
1
vote
1
answer
278
views
How to implement a pulse counter for two clocks on Nano Every?
For clock synchronization I want to implement a pulse counter on the Arduino Nano Every. There are two clock signals at 40-100 kHz, the Nano runs on 20 MHz. Nyquist says we need at least 2 times the ...
1
vote
1
answer
55
views
Generate all frequencies between 5 and 8 kHz in steps of 1Hz
Is it possible generate all frequencies between 5000 and 8000Hz, 1Hz in between with an ATmega328?
When I create a c-program outside the Arduino IDE to calculate the frequencies with the formula ...
0
votes
1
answer
75
views
New Freak UI @Arduino IDE v2.3.6 - 2025/05/21
This shXt stop after I turn off the power, and bring Notebook back to home. @@"?
No any configuratin changed, just power NB off and on.
How this shXt happened, and how it solved !? No idea...
...
0
votes
1
answer
71
views
Stepper motor not moving
this is my second Arduino project and I am trying to figure out why my stepper motor is not moving. I was able to get a basic 28byj-48 stepper motor to work using stepper.h and some sample code.
Now I ...
0
votes
1
answer
42
views
I've looked at the spec sheet on the ESP8266, but can't find the time it takes for the A/D conversion or the A/D control registers
text or link to describe the answer or a link to where to find the answer. I am a newbie to the esp8266.
1
vote
0
answers
44
views
Can't get ESP32C6 to work in PlatformIO. Error is "unsupported ISA substring '_zicsr_zifencei'"
I bought a few Waveshare ESP32C6 Touch LCD 1.47 boards and have had a hell of a time trying to get my sketch uploaded. I somewhat understand that PIO doesn't support esp32c6 because:
The ESP32 Core ...
0
votes
0
answers
30
views
Circuit Playground Express (CPX) + Crickit + I2C sensors
I have a Circuit Playground Express (CPX) mounted on a Crickit. I want to control two air pumps using the motor output on the Crickit, but also connect two Adafruit SCD41 sensors using I2C.
When I ...
0
votes
2
answers
88
views
LED Matrix for Arduino R4 Wi-Fi specific functions
I'm searching for the path and the source code for the builtin (I think) function, name is: renderBitmap().
This function appears as a member of the ArduinoLEDMatrix class but its name doesn't appear ...
-1
votes
1
answer
66
views
Reasons for an ATmega328P Nano SuperMini USB-C board not being recognized by a PC/Mac? [closed]
I recently got two of these ATmega328P Nano SuperMini USB-C boards but none of them is being recognized by my PC or Mac.
I'm using the old bootloader setting in the Arduino IDE 2.3.6, CH340 drivers ...
0
votes
1
answer
35
views
How do I reinstall Arduino IDE 1.8.12 to correct corruption, without losing all of my libraries and board installations?
I have been told to reinstall my Arduino IDE Ver: 1.8.12 to correct some corruption with my current installation.
loading hardware from C:\Users\Paul\AppData\Local\Arduino15\packages: loading package ...
1
vote
1
answer
58
views
Arduino Nano ADC input selection
The maximum ADC sample rate for the '328p, using the default prescaler of 128, is given as roughly 10000 samples per second. Maybe I've missed it, but I can't see whether that is the total rate for ...
2
votes
1
answer
64
views
ESP32 and Fingerprint Sensor – Serial Monitor Shows Nothing
I'm trying to connect a fingerprint sensor (Adafruit type) to my ESP32 (DOIT ESP32 Devkit V1), but the Serial Monitor remains completely blank, even though I'm using Serial.begin(9600) and printing ...
1
vote
1
answer
45
views
When I run my for loop the serial monitor is giving very strange results
This is unfinished code for driving a 4 digit 7 segment display. When I run my data function that should output the data to send to the shift register, I get a very weird output.
0 00111111
1 00111111
...
0
votes
2
answers
88
views
How does a sensor data move from physical layer to application layer
I have used Arduino IDE to program a IOT gateway using ESP32 and W5500 ethernet module to use them as a ethernet webserver.
I wanted to know for educational purpose, I know that sensor belong to ...
1
vote
0
answers
48
views
Configuring the colors of the IDE
I do not like the dark theme at all and I set the Light theme, but the output background color is still black. I know that somewhere there is a file where it is possible to tweak the colors, but I ...
2
votes
1
answer
155
views
ESP32 LED PWM fade not working?
Not sure if this belongs more in an electronics SE, but I'll give this a try.
I'm trying to use an ESP32-C3 and an NPN transistor (2N5551) to PWM drive an LED (values below). I'm trying a simple fade, ...
1
vote
0
answers
32
views
arduino micro A000053 disappear at device manger
I have two Arduino micro atmega32u4 boards (A000053)
and I'm trying to detect them with at Device manger but I'm stuck,
I tried to solve it with the guide below but not succeed because the device ...
0
votes
2
answers
86
views
Coding Sequential Operations
I am using an Arduino r4 Wi-Fi to control unique angle settings for two different servo motors during the execution and operation of a device I am building.
I want to have the servos use different ...
0
votes
1
answer
80
views
Serialise a struct containing a flexible array
I want to serialise and deserialise a struct containing a flexible array.
I did find a working code but wondering if it is the most elegant and optimum way to do it.
This is my first attempt below ...
1
vote
1
answer
57
views
Connect ESP32-CAM to L293D
Disclaimer: I'm a programmer, not an electronics expert. I built this car using an Arduino Uno, and now I want to add a camera to it. I’ve tried researching online, but I couldn’t find much ...
1
vote
2
answers
78
views
Trouble calibrating MMC5603 Magnetometer with MotionCal and Adafruit SensorLab – readings seem off
I'm trying to calibrate my MMC5603 magnetometer using MotionCal and the Adafruit SensorLab Jupyter notebook, but my readings seem off. The raw magnetometer values appear to be spread out oddly even ...
1
vote
2
answers
70
views
Can't sync ESP32 with Blynk
I was trying to display the readings of my dht11 sensor on the Blynk dashboard but I am struggling a lot. A little help would be really appreciated.
#define BLYNK_PRINT Serial
/* Fill in information ...
1
vote
2
answers
156
views
ESPAsyncWebServer WiFi.scanNetworks() Soft WDT reset
I'm using Arduino IDE(2.3.5) ESP8266 (3.1.2) and ESPAsyncWebServer (3.7.4), ESPAsyncTCP(2.0.0). I need to wifi scan the network an print the result of my web interface. If I use WiFiScanNetworks(), ...