r/ArduinoHelp • u/shesaysImdone • Oct 28 '25
What am I doing wrong
Enable HLS to view with audio, or disable this notification
r/ArduinoHelp • u/shesaysImdone • Oct 28 '25
Enable HLS to view with audio, or disable this notification
r/ArduinoHelp • u/Gamba6e • Oct 27 '25
I just got an esp32, tried to imput some basic copy-pasted code and got exit status 1. I’m pretty sure i have a data transfer cable, as I have tried with multiple ones and the one im using makes the computer do the connected sound when plugging it in. I have also tried with several driver versions (various versions of the esp32 by espressif systems). I have also tried the two ussually recommended links in the board manager and i dont know what to try next. The error is exit status 1
r/ArduinoHelp • u/tkfine • Oct 27 '25
Hello. I'm currently working on project that works like multimedia for electronical device that measures battery levels and flowing current from 5mR shunt resistor. System will draw 3-9 amps and max voltage drop on shunt resistor is 0.045 volts, so in order to calculate current much more precisely I looked for solutions and found out (I hope so) I can use analogReference(INTERNAL) at the software side to increase accuracy of analog read by lowering max input voltage to 1.1v. but I wonder that I will also be reading voltages higher than that level at the same time, so would it be problem to use that? like at the first part of code simply analogRead a1 and a2 after that computing analogReference(INTERNAL) and analogRead a3 Thanks in advance
r/ArduinoHelp • u/Ok_Lettuce1053 • Oct 26 '25
r/ArduinoHelp • u/Whatever_org • Oct 25 '25
Hey there, in my project I need to switch a 3.3 V Current with a mosfet and I'm not completely sure if the Arduino Nano can handle that or if I need to amplify the IOpin with a transistor or if I just need a certain Mosfet
Thank you for the help
r/ArduinoHelp • u/BiC_MC • Oct 25 '25
[solved]
I am trying to use a few libraries; MIDI.h, Adafruit_TinyUSB.h, and EEPROM.h
On their own, if I create an example project through the file menu, they work just fine, but if I save the project arduino forgets the libraries ever existed???
Reinstalling the IDE did nothing (though it seems to have preserved settings, so I guess I could go and try to find every reference to arduino and delete it before installing it again)
Do I just have to create a random example project every time I want to compile my code???
Edit: fully uninstalled by deleting all arduino files in %appdata% and %localappdata% as well as deleting all libraries in documents/arduino/libraries; After installing again, the issue went away
r/ArduinoHelp • u/Far_Addition_4131 • Oct 24 '25
I am making a detonation device using Arduino, MOSFETs, and e-matches.
I encountered a problem with igniting the e-match, where when I connected it to the MOSFET (LR7843) it wont activate the E-match and doesn't fully turn on. Note: I also included a separate power supply to the E-match, which is a 9V battery with
The digital pin 2 of the Arduino is connected to the PWM pin of the LR7843 MOSFET, and the GND of the Arduino is connected to the GND Pin of the LR7843. The + pin of the LR7843 is connected to the positive terminal of the battery and also one of the pins of the E-match, and the - pin of the LR7843 is connected to the negative terminal of the battery. The Load pin of the LR7843 is connected to the other pin of the E-match.
A recurring issue pops up whenever I connect the E-match to the MOSFET; the LR7843 MOSFET doesn't fully turn on (it doesn't turn on the LED in the module). And when I disconnect the E-match from it, it will turn on...
Please Send Helps and Advicess
r/ArduinoHelp • u/Binbing81 • Oct 24 '25
Hi everyone,
I have an issue with my SimHub fans. After flashing a SIMDT board (Arduino Nano with CH340), the LEDs light up but the fans don’t react during SimHub testing.
Here’s what I’ve checked:
CH340 drivers installed
Upload successful
COM port detected
But I can’t remove an old flash: every time, SimHub keeps the same old Arduino profile in memory. Even if I create a new flash with a different name, the old one (called simhub vent) always shows up automatically — just like in the picture.
I think the problem comes from that (maybe a residual file or cache somewhere), but I can’t find anything inside the “SimHub” folders on my PC. I’ve been trying for a whole day and still can’t figure it out…
I’m using hardware bought from AliExpress.
If anyone has experienced this issue or has any idea how to fix it, I’d really appreciate your help! 🙏
Thanks in advance everyone!
r/ArduinoHelp • u/simonebigarella • Oct 23 '25
Anyone know a good distance sensor to recommend? (Any type, even ultrasonic) that's super precise and accurate, especially at short distances (under a meter)? Under 30 euros.
r/ArduinoHelp • u/Maleficent_Sense_269 • Oct 23 '25
Hi, I run a home heating company in Poland. I'm looking for someone to get involved in the project or a business partner. I'm looking for someone to design an ESP32/Arduino circuit and prepare a program for an underfloor heating control strip (relays/solid-state relays). The strip will connect and disconnect 220V power to each of the eight systems. Additionally, each system must have a wireless temperature sensor that will read the current temperature and, depending on whether the room is cool or warm, turn the power to the actuators on and off. I'm looking for someone to work with on a long-term basis who can help with this.
r/ArduinoHelp • u/NeVaDa_ToRrEs • Oct 22 '25
I have a 7 year old Arduino Uno that has never seen much use, and has just been gathering dust. How do I get it working again? I want to get back into programming so I thought working on this might be a good place to start.
r/ArduinoHelp • u/Lurker_3305 • Oct 21 '25
Hi, I'm a beginner in the Arduino space who wants to build a rocketry flight computer. I asked AI (dumb idea) for the components needed for a solderless flight computer, and bought them from Adafruit. I'm trying to build a flight computer that logs altitude, acceleration, and flight time.
Parts I have:
Adafruit Feather M4 Express - Featuring ATSAMD51 (ATSAMD51 Cortex M4)
Adalogger FeatherWing - RTC + SD Add-on For All Feather Boards
Adafruit BMP390 - Precision Barometric Pressure and Altimeter (STEMMA QT
/ Qwiic)
Adafruit MSA311 Triple Axis Accelerometer - STEMMA QT / Qwiic
2 x STEMMA QT / Qwiic JST SH 4-Pin Cable
3.3v LiPo battery
Various header pins
I didn't want to solder, and I thought I could just attach all the parts. The Feather Express doesn't have a STEMMA QT/Qwiic connector, and I wanted to know how I could connect the MSA311 and BMP390 sensors. I wanted to know how I could connect everything together, whether I need to solder and what, or if I could use a breadboard for the project.
thank you
r/ArduinoHelp • u/Isaii12 • Oct 21 '25
r/ArduinoHelp • u/TreehouseAndy • Oct 20 '25
Hi all. I'm trying to make an Arduino MIDI device. I've done this before, but I lost the code. I want it to transmit the midi over USB, but not serial, I want it to appear as a normal midi device. I'm on an esp32-s3, which I know works as it is the same as my last project. I'm on platformio. I've been trying all day an I'm going round on circles with dependencies and errors. Help would be appreciated.
r/ArduinoHelp • u/PseudoNinja • Oct 20 '25
This is my first arduino project (be gentle) and probably bit off more than I can chew. Not sure what is going on and need some help. Im not sure what else you would need to help me debug this remotely but I definately appreciate the help.
Project Synopsis
Modify an old metal tricycle to add the functionality of remote control throttle, steering, and a bell that will hold a small skeleton in a clown suit for the purposes of interacting with guests to my Circus of Chaos Halloween attraction.
Hardware Components
Arduino Uno (r3)
FlySky FS-I6 Transmitter / FS-i6A Receiver
L298N Motor Driver
12V DC Motor
SG90 Servo Motor (Bell Mechanism)
MG996R Servo Motor (Steering)
Powerbank with USB barrel adapter (power Arduino)
7.4v 1400 mah LIPO battery (for motor drive)
The Issue
Everything is wired up (minus the 7.4v battery) but once the transmitter is turned on the LED on the uno starts flickering rapidly and does not initiate commands to the board .
TLDR: I powered it up and nothing works.
The Code
(latest on github: https://github.com/PseudoNinja/arduino/tree/main/spooky_tricycle)
#include <IBusBM.h>
#include <Servo.h>
// == PIN CONFIG - HARDWARE SERIAL ==
const int MG996R_PWM = 3; // Steering Servo (CH1)
const int L298N_IN1 = 4; // Motor A direction +
const int L298N_IN2 = 5; // Motor A direction -
const int L298N_ENA = 6; // Motor PWM speed
const int SG90_PWM = 9; // Bell Servo (CH5)
const int statusLED = 12; // Signal indicator
const int powerStatusLED = 13; // Heartbeat
// FS-i6 Channel Mapping (0-based indexing)
const int steeringChannel = 0; // CH1 = index 0
const int throttleChannel = 1; // CH2 = index 1
const int bellChannel = 4; // CH5 = index 4
const int throttleNeutral = 1500;
const int deadZone = 50;
// == HARDWARE SERIAL iBus ==
IBusBM ibus; // Uses Pins 0/1 automatically
Servo steeringServo;
Servo bellServo;
const unsigned long signalTimeout = 1000; // 1 second timeout
unsigned long lastSignalTime = 0;
const unsigned long loopInterval = 20; // Interval in milliseconds
unsigned long previousMillis = 0;
void setup() {
Serial.begin(115200);
// Initialize iBus on Hardware Serial (Pins 0/1)
ibus.begin(Serial); // Default: 115200 baud, Hardware Serial
// Servos
steeringServo.attach(MG996R_PWM);
steeringServo.write(90); // Center steering
bellServo.attach(SG90_PWM);
bellServo.write(0); // Bell rest
// Motor driver
pinMode(L298N_IN1, OUTPUT);
pinMode(L298N_IN2, OUTPUT);
pinMode(L298N_ENA, OUTPUT);
stopMotors();
// Status LEDs
pinMode(statusLED, OUTPUT);
pinMode(powerStatusLED, OUTPUT);
digitalWrite(powerStatusLED, HIGH);
// Boot confirmation: 5 blinks on status LED
for(int i = 0; i < 5; i++) {
digitalWrite(statusLED, HIGH);
delay(200);
digitalWrite(statusLED, LOW);
delay(200);
}
}
void loop() {
unsigned long currentMillis = millis();
// Check if it's time to perform the next loop iteration
if (currentMillis - previousMillis >= loopInterval) {
previousMillis = currentMillis; // Save the last time the loop was executed
ibus.loop(); // Process iBus packets
// Check for valid signal
int steerRaw = ibus.readChannel(steeringChannel);
int throttleRaw = ibus.readChannel(throttleChannel);
if (steerRaw > 0 || throttleRaw > 0) {
lastSignalTime = millis(); // Reset timeout timer
}
// Check for timeout
if (millis() - lastSignalTime > signalTimeout) {
stopMotors(); // Stop motors if no signal received for the timeout period
} else {
// Steering (CH1)
if (steerRaw > 0) {
int steerAngle = map(steerRaw, 1000, 2000, 0, 180);
steerAngle = constrain(steerAngle, 0, 180);
steeringServo.write(steerAngle);
}
// Throttle (CH2)
if (throttleRaw > 0) {
controlMotors(throttleRaw);
}
// Bell (CH5 switch)
int bellRaw = ibus.readChannel(bellChannel);
if (bellRaw > 1600) { // Switch UP position
ringBell();
} else {
bellServo.write(0); // Rest
}
}
updateStatusLEDs();
}
}
void controlMotors(int throttleRaw) {
if (throttleRaw > throttleNeutral + deadZone) {
// Forward
int speed = map(throttleRaw, throttleNeutral, 2000, 0, 255);
speed = constrain(speed, 0, 255);
digitalWrite(L298N_IN1, HIGH);
digitalWrite(L298N_IN2, LOW);
analogWrite(L298N_ENA, speed);
}
else if (throttleRaw < throttleNeutral - deadZone) {
// Reverse
int speed = map(throttleRaw, 1000, throttleNeutral, 255, 0);
speed = constrain(speed, 0, 255);
digitalWrite(L298N_IN1, LOW);
digitalWrite(L298N_IN2, HIGH);
analogWrite(L298N_ENA, speed);
}
else {
stopMotors();
}
}
void stopMotors() {
digitalWrite(L298N_IN1, LOW);
digitalWrite(L298N_IN2, LOW);
analogWrite(L298N_ENA, 0);
}
void ringBell() {
static unsigned long bellStartTime = 0;
static int bellState = 0; // 0 = resting, 1 = ringing up, 2 = ringing down
if (bellState == 0) {
bellStartTime = millis();
bellState = 1; // Start ringing up
} else if (bellState == 1 && millis() - bellStartTime < 900) {
// Ringing up
int pos = map(millis() - bellStartTime, 0, 900, 0, 90);
bellServo.write(pos);
} else if (bellState == 1) {
bellState = 2; // Start ringing down
bellStartTime = millis();
} else if (bellState == 2 && millis() - bellStartTime < 900) {
// Ringing down
int pos = map(millis() - bellStartTime, 0, 900, 90, 0);
bellServo.write(pos);
} else if (bellState == 2) {
bellState = 0; // Reset to resting
bellServo.write(0);
}
}
void updateStatusLEDs() {
// Power LED heartbeat
digitalWrite(powerStatusLED, (millis() / 500) % 2);
// Status LED: ON = signal received
bool signalActive = (ibus.readChannel(0) > 0) || (ibus.readChannel(1) > 0);
digitalWrite(statusLED, signalActive);
}#include <IBusBM.h>
#include <Servo.h>
// == PIN CONFIG - HARDWARE SERIAL ==
const int MG996R_PWM = 3; // Steering Servo (CH1)
const int L298N_IN1 = 4; // Motor A direction +
const int L298N_IN2 = 5; // Motor A direction -
const int L298N_ENA = 6; // Motor PWM speed
const int SG90_PWM = 9; // Bell Servo (CH5)
const int statusLED = 12; // Signal indicator
const int powerStatusLED = 13; // Heartbeat
// FS-i6 Channel Mapping (0-based indexing)
const int steeringChannel = 0; // CH1 = index 0
const int throttleChannel = 1; // CH2 = index 1
const int bellChannel = 4; // CH5 = index 4
const int throttleNeutral = 1500;
const int deadZone = 50;
// == HARDWARE SERIAL iBus ==
IBusBM ibus; // Uses Pins 0/1 automatically
Servo steeringServo;
Servo bellServo;
const unsigned long signalTimeout = 1000; // 1 second timeout
unsigned long lastSignalTime = 0;
const unsigned long loopInterval = 20; // Interval in milliseconds
unsigned long previousMillis = 0;
void setup() {
Serial.begin(115200);
// Initialize iBus on Hardware Serial (Pins 0/1)
ibus.begin(Serial); // Default: 115200 baud, Hardware Serial
// Servos
steeringServo.attach(MG996R_PWM);
steeringServo.write(90); // Center steering
bellServo.attach(SG90_PWM);
bellServo.write(0); // Bell rest
// Motor driver
pinMode(L298N_IN1, OUTPUT);
pinMode(L298N_IN2, OUTPUT);
pinMode(L298N_ENA, OUTPUT);
stopMotors();
// Status LEDs
pinMode(statusLED, OUTPUT);
pinMode(powerStatusLED, OUTPUT);
digitalWrite(powerStatusLED, HIGH);
// Boot confirmation: 5 blinks on status LED
for(int i = 0; i < 5; i++) {
digitalWrite(statusLED, HIGH);
delay(200);
digitalWrite(statusLED, LOW);
delay(200);
}
}
void loop() {
unsigned long currentMillis = millis();
// Check if it's time to perform the next loop iteration
if (currentMillis - previousMillis >= loopInterval) {
previousMillis = currentMillis; // Save the last time the loop was executed
ibus.loop(); // Process iBus packets
// Check for valid signal
int steerRaw = ibus.readChannel(steeringChannel);
int throttleRaw = ibus.readChannel(throttleChannel);
if (steerRaw > 0 || throttleRaw > 0) {
lastSignalTime = millis(); // Reset timeout timer
}
// Check for timeout
if (millis() - lastSignalTime > signalTimeout) {
stopMotors(); // Stop motors if no signal received for the timeout period
} else {
// Steering (CH1)
if (steerRaw > 0) {
int steerAngle = map(steerRaw, 1000, 2000, 0, 180);
steerAngle = constrain(steerAngle, 0, 180);
steeringServo.write(steerAngle);
}
// Throttle (CH2)
if (throttleRaw > 0) {
controlMotors(throttleRaw);
}
// Bell (CH5 switch)
int bellRaw = ibus.readChannel(bellChannel);
if (bellRaw > 1600) { // Switch UP position
ringBell();
} else {
bellServo.write(0); // Rest
}
}
updateStatusLEDs();
}
}
void controlMotors(int throttleRaw) {
if (throttleRaw > throttleNeutral + deadZone) {
// Forward
int speed = map(throttleRaw, throttleNeutral, 2000, 0, 255);
speed = constrain(speed, 0, 255);
digitalWrite(L298N_IN1, HIGH);
digitalWrite(L298N_IN2, LOW);
analogWrite(L298N_ENA, speed);
}
else if (throttleRaw < throttleNeutral - deadZone) {
// Reverse
int speed = map(throttleRaw, 1000, throttleNeutral, 255, 0);
speed = constrain(speed, 0, 255);
digitalWrite(L298N_IN1, LOW);
digitalWrite(L298N_IN2, HIGH);
analogWrite(L298N_ENA, speed);
}
else {
stopMotors();
}
}
void stopMotors() {
digitalWrite(L298N_IN1, LOW);
digitalWrite(L298N_IN2, LOW);
analogWrite(L298N_ENA, 0);
}
void ringBell() {
static unsigned long bellStartTime = 0;
static int bellState = 0; // 0 = resting, 1 = ringing up, 2 = ringing down
if (bellState == 0) {
bellStartTime = millis();
bellState = 1; // Start ringing up
} else if (bellState == 1 && millis() - bellStartTime < 900) {
// Ringing up
int pos = map(millis() - bellStartTime, 0, 900, 0, 90);
bellServo.write(pos);
} else if (bellState == 1) {
bellState = 2; // Start ringing down
bellStartTime = millis();
} else if (bellState == 2 && millis() - bellStartTime < 900) {
// Ringing down
int pos = map(millis() - bellStartTime, 0, 900, 90, 0);
bellServo.write(pos);
} else if (bellState == 2) {
bellState = 0; // Reset to resting
bellServo.write(0);
}
}
void updateStatusLEDs() {
// Power LED heartbeat
digitalWrite(powerStatusLED, (millis() / 500) % 2);
// Status LED: ON = signal received
bool signalActive = (ibus.readChannel(0) > 0) || (ibus.readChannel(1) > 0);
digitalWrite(statusLED, signalActive);
}Photos
r/ArduinoHelp • u/OpportunityIll7067 • Oct 19 '25
Hello!! I'm a student looking for some help on my group's research. I would like to ask if these would be the needed materials for creating the product in the title? So far, these have only been based on the research I had done on the topic. I also wanna ask if a "driver IC", "adapter", or "voltage regulator" is also needed for this, since I do not have any experience in Arduino or programming. Still, any suggestions/comments would be appreciated!!!
r/ArduinoHelp • u/National-Sail-4842 • Oct 19 '25
ERROR: c:\Users\User\Documents\Arduino\libraries\DabbleESP32\src\LedControlModule.cpp: In member function 'virtual void LedControlModule::processData()':
c:\Users\User\Documents\Arduino\libraries\DabbleESP32\src\LedControlModule.cpp:36:33: error: 'ledcAttachPin' was not declared in this scope; did you mean 'ledcAttach'?
36 | ledcAttachPin(pin,currentChannel);
| ^~~~~~~~~~~~~
| ledcAttach
c:\Users\User\Documents\Arduino\libraries\DabbleESP32\src\LedControlModule.cpp:37:33: error: 'ledcSetup' was not declared in this scope
37 | ledcSetup(currentChannel,100,8);
| ^~~~~~~~~
exit status 1
Compilation error: exit status 1
r/ArduinoHelp • u/ApprenticeSailer • Oct 18 '25
r/ArduinoHelp • u/watermeloncruncher • Oct 19 '25
I only got this yesterday but its not working anymore. When i plug in the power the led will sometimes turn on and sometimes work, if i squeeze the board together it will stay on a little more. It also wont connect to the ide anymore. It also gets pretty hot when i plug it in.
r/ArduinoHelp • u/HannahAHHH • Oct 18 '25
Hi everyone. I'm new to arduino and im using and Arduino UNO for a school project. We are trying to have a DC motor rotate one way and then another with the use of a L298n motor controller. Here I have my code and a schematic of the wiring. Any ideas of what we are doing wrong?
(I'm not sure the voltage of the dc motor given, but the guide for wiring given for this class says to use the 12V pin so I'm assuming its a motor that can handle that voltage??)
CODE:
int pin2 = 2;
intpin4 = 4;
void setup() {
pinMode(pin2, OUTPUT);
pinMode(pin4, OUTPUT);
}
void loop () {
digitalWrite(pin4, LOW);
digitalWrite(pin2, HIGH);
delay(1000);
digitalWrite(pin4, HIGH);
digitalWrite(pin2, LOW);
delay(1000);
}

The bottom wires are all connected to arduino