Newest Questions
25,031 questions
-1
votes
1
answer
117
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
163
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
110
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
126
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
67
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
117
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
85
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
251
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
50
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
104
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
148
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
124
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
164
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
124
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
223
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(), ...
1
vote
1
answer
94
views
ESP32 scanNetworks compile error: call of overloaded 'BSSID(int)' is ambiguous
I am trying to run following code:
#include <WiFi.h>
void setup() {
//int16_t scanNetworks(bool async = false, bool show_hidden = false, bool passive = false, uint32_t max_ms_per_chan = 300,...
0
votes
1
answer
75
views
Problem Parsing NWS Severe Weather Alert API using Arduino_JSON.h [closed]
I have been using Open Weather and Weather Undground APIs for some time. I recently learned the National Weather Service has an API for alerts. I can print out the raw data but not able to parse it. ...
1
vote
2
answers
109
views
Unwanted toggle on OC1A
The code below for the ATmega328P (Arduino Pro Mini 5V @ 16 MHz) produces a periodic sequence on timer1 pins OC1A and OC1B:
#include "Arduino.h"
// For Arduino Pro Mini 5V @ 16 MHz
// ...
0
votes
4
answers
182
views
Adding multiple or's in line to condense amount of if lines
I have edited my question for more clarity. I am including the whole sketch. I tried to do a shorter version of my sketch, for this question, which had some typos in it and the way it was wouldn't ...
-1
votes
1
answer
184
views
MFRC522 RFID RC522 Only Works Sometimes – Unreliable Detection Issue
Problem Overview
I’m using an MFRC522 RFID module with an Arduino Uno, and it only detects RFID tags sometimes. The behavior is inconsistent—sometimes it reads the card instantly, and other times, it ...
3
votes
1
answer
278
views
How to send 0x1A as data via TCP on SIM8xx?
I am using a SIM868 module with an Arduino Mega, where the SIM868 is connected to Serial1.
After establishing a TCP connection, I need to send the following byte stream:
{0x60, 0x1A, 0x9D, 0x01, 0x00, ...
-1
votes
2
answers
125
views
How can you trace out the short-term trajectory of a 6DOF IMU
I've looked and looked on forums, wrote prompt after prompt in DeepSeek and ChatGPT but I've hit a roadblock.
I'm currently working on a project where I want to write numbers in the air using a ...
1
vote
1
answer
81
views
Using ultrasonic sensors and motors. Measuring and moving at the same time
How to measure distance while controling motors?
I am using an Arduino UNO.
#include <Wire.h>
int motor12pin1 = 2;
int motor12pin2 = 3;
int motor34pin1 = 4;
int motor34pin2 = 5;
int pinJacina12 ...
0
votes
0
answers
105
views
How to Connect/configure HC05 (Bluetooth module) to a shield?
I am a newbie to Bluetooth communication in Arduino.
I have 2 Arduino boards (one runs my main sw, second act as slave to operate a remote command coming from the main board) that i want to establish ...
2
votes
2
answers
108
views
DWT to measure time between rising edge of two pulse waves
I have given two square waves as input to an Arduino Due's digital pins, and I'm trying to find the propagation delay between them. For this purpose, instead of using micros() I want nanoseconds ...
0
votes
1
answer
105
views
`sprintf` of %04d and %03x at the same time on Arduino
I have this code, work fine!
uint32_t id , id2;
char s[64]; // Should be enough
...
id2 = id = CAN.getCanId();
sprintf (s, "%04d : ", id ); // !!! HERE !!!
Serial.print(s);
the ...
1
vote
0
answers
87
views
FS1000A transmitter and MX-RM-5V receiver not working
I'm new to Arduino development. I use Arduino Nano v3 ATmega328P (Old Bootloader). I assembled 2 small boards, one of which is a transmitter with three buttons, and the second is a receiver with three ...
0
votes
0
answers
698
views
ESP32 Upload Fails: “Failed to connect to ESP32: No serial data received” (Worked Previously)
I’m trying to upload code to my ESP32 board using the Arduino IDE, but I’m consistently getting the following error:
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For ...
0
votes
0
answers
142
views
ESP8266 Not Booting Properly on First Power On – Works After Restart
I'm working on an ESP8266-based water level monitoring system using an ultrasonic sensor and an I2C LCD. The problem I'm facing is that sometimes the ESP8266 does not boot properly when powered on for ...
0
votes
1
answer
93
views
Push button isn't pushed but keeps printing or inputting 1/HIGH
I have this Arduino code that will print 1 in the serial monitor and even prints two 1's. I haven't even pushed or clicked the push button, yet it already is already set to HIGH and even activates to ...
3
votes
1
answer
114
views
Using a while loop in setup function to read sensor data
I have an Arduino vehicle and I upload projects to it that I want them to function once I use a strong light on a light sensor attached to A4 analog pin. So far, I have used the following code:
void ...
0
votes
1
answer
242
views
STM32 PWM on standard GPIO pins
I'm using an STM32F407ZET6 with the Arduino core support in PlatformIO. CPU has an external 8MHz crystal running at 168MHz. I have a project where I'm already using UART1, I2C1, SPI2 and SDIO (1Hz ...
2
votes
1
answer
116
views
Stepper control using Pot over bluetooth (HC-05)
I have intermediate-level Arduino experience but it's been a few years... and, I would like to be more confident in a plan before ordering all the parts. So, basically, this is theoretical. The design ...
-1
votes
3
answers
167
views
Can you set up Arduino code to run once for a model display?
Rather hesitant to ask this question, as I have read a few comments on here that I feel are rather condescending. But at the same time some have been very helpful.
I have been building small scale ...
0
votes
0
answers
157
views
Initializing both I2C devices of a RP2040 Rpi Pico with Earle Philhower Core
I'm using the Arduino IDE (v1.8.19) with the Earle Philhower core to program a Raspberry Pi Pico (RP2040) board.
I2C bus 0 of the Pico (pins 4 (SDA) and 5 (SCL) are coupled to a first MCP23017 port ...
1
vote
1
answer
2k
views
When using LiquidCrystal_I2C.h library, why am I getting "invalid header file" in TinkerCad?
This is a link to the guy that made the project work, it seems that I'm unable to make it work by myself: the project.
What am I doing wrong?
/* DICTIONARY - CC = ConClusion ; */
/* LEGEND - ...
1
vote
1
answer
70
views
Should I use PlatformIO to make a "hackable" and accessible device
I want my device/project to encourage others to get into embedded development. I will do this by making the device open source and hackable. Its ESP32 based so that it can be programmed with the ...
0
votes
2
answers
188
views
How to calculate the size of Arduino routines?
I want to design an Arduino Uno/Nano library (an alternative to floats that uses less RAM) that uses a minimum of code space after compilation. Is there a (not too complicated) way to calculate or ...
1
vote
1
answer
167
views
Why does the use of serial.readBytes increase program size by 10kb?
If I put this in my arduino program, in main.cpp, I suddenly run out of memory for flash program size:
if(msgSize > 2) {
//sr::sequentialRead(&serialRead, newTram.hash);
uint8_t bytes[...
0
votes
0
answers
51
views
Why am not capturing the +CMGS after sending an SMS?
I'm trying to adapt a simple waitforResponse() function after sending an SMS. I'd like to read the +CMGS after a successful SMS send, or the +CMS ERROR after a send failure. Seems like my ...
0
votes
2
answers
204
views
ESP8266 send gps data via esp now
I have a project that involves two ESP8266 and a NEO-6M GPS module. I want to send the GPS data to the other microcontroller using ESP-NOW, however it fails to send the data although it displays the ...
0
votes
1
answer
129
views
Alternate LED Blinking Using PushButton
I have an task for my class where we have to make 2 LEDS blink alternatively using a pushbutton. I've figured out how to do the blinking and alternating but from time to time one of the led would go ...
-1
votes
1
answer
72
views
Interrupt service routine calls with RC receiver
I've written an ISR routine using an Arduino UNO wired to my RC receiver. The receiver gets orders through the gimbals in my transmitter and executes the ISR every time the gimbals are moved.
I was ...
-1
votes
1
answer
236
views
Getting a WDT reset on ESP32
I have a project that uses a GY-53 BMP180 and ESP32.
Each time I connect ESP32 to USB after uploading, I get this error:
22:27:27.352 -> rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (...
1
vote
0
answers
53
views
Secure upload to ThingSpeak with Arduino MKR GSM 1400 using GSMSSLCLient
I have an issue when trying to upload sensor data to ThingSpeak using the GSMSSLClient with the Arduino MKR GSM 1400 over MQTT. Each time I attempt to establish an MQTT connection, the state is always ...
0
votes
1
answer
97
views
Connecting two Arduinos via BLE 5.0
I have this issue where I'm transmitting sensor data from Nano Sense Rev 2 (transmitter) board to Nano 33 BLE rev 2 (receiver). The receiver keep failing to detect and connect to the transmitter and ...
0
votes
3
answers
194
views
How do I read only the first character from serial monitor input and then the second up characters?
So I want to variably set the voltage going to one of RGB_LED's pins . The way I thought of doing it is to write the quantificator into the serial monitor with the first byte representing the variable ...
0
votes
1
answer
129
views
Accessing invalid key in ArduinoJson causes ESP32 to reboot [closed]
I am running a project where I have multiple ESP32s communicate over WebSockets and I am using the Arduino IDE 2.3.4 for it. The communication primarily uses JSON and sends it as strings. To work with ...
-1
votes
1
answer
137
views
avrdude: stk500_recv(): programmer is not responding avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
I'm working on a linux machine with avrdude and avrgcc. NOT using Arduino IDE.
I'm using Arduino Nano 33 SENSE REV2 BLE, trying to upload a sample blink .c program and getting this error.
This is the ...
2
votes
1
answer
221
views
Why this program runs on an R3 but will not run on R4 Wifi?
I have been working on this program for a few weeks now and finally got it somewhere near finishing. It uploads and seems to do what I want it to do on a R3 board but will not run on my R4 Wifi board ...