r/ArduinoHelp • • Aug 06 '26

Arduino uno and l293d power supply

4 Upvotes

Hi so we are doing a project on arduino the objective is to build a robot similar to obstacle avoiding and line tracking robot but when we connect two 18650 3.7V batteries in series motors don't run simultaneously and when we ask ai about that it says power supply is insufficient what should we do


r/ArduinoHelp • • Jul 28 '26

Can Arduino 5V power a high torque servo, or will it cause jerking and low power?

4 Upvotes

I am planning to use a high torque servo motor (MG996R) with an Arduino. If I connect the servo directly to the Arduino 5V pin, will it cause problems such as jerking movement or loss of power due to insufficient current supply?

The servo has a stall current of around 1.5A. Is an external 5–6V power supply recommended instead?


r/ArduinoHelp • • Jul 21 '26

Arduino receiving input from Minecraft?

4 Upvotes

Recently got an Elegoo Uno (off brand Arduino uno) and I'm wondering if it's possible to make it so that when something happens in a game, like minecraft, I can feed that to the arduino and for example print something on an LCD screen, turn on some LED's, or activate a buzzer. I want to make it so that whenever a specific message is sent in minecraft chat, something is printed on the LCD screen. is something like this possible? would I maybe need a different arduino?


r/ArduinoHelp • • Jul 20 '26

This components are burned?

Post image
4 Upvotes

I made an additional post in other reddit, but I gonna repost it here too


r/ArduinoHelp • • Jul 16 '26

Arduino setup esp32

Thumbnail
gallery
4 Upvotes

Hi!!! Can someone please check if something is wrong with my setup? I use esp32 and every time we try to code it, the oled doesn't seem to work. It says "i2c scanner, done" and that's all
Esp32 is probably working properly so i guess it's something with how i constructed everything?
To clarify-
Gnd oled - gnd esp
Vcc oled - 3v3 esp
Scl oled - d22 esp
Sda oled - d21 esp
It's my first time touching arduino and i'm not sure if we did everything correctly so i would love to hear some advice!


r/ArduinoHelp • • Jun 16 '26

Low-spec microcontroller for lights in a model car

4 Upvotes

Hi folks. I am COMPLETELY new to electronics and working through the Elegoo super starter kit. I am also working up to helping on a project with my partner. They want to make a model car, and have a simple LED lights system inside where you can turn on different sets of lights, e.g headlights, reverse, turn signal, etc. in series, as thats how real lights in a car work, and they don't want full control of all the lights, just to turn on and off a few pairs that work individually (we debated for a long time if a serial register would be useful and ultimately concluded that it would be overcomplicated).

As at least one of the patterns needs to blink (turn signal) I was thinking this needs a microcontroller. However it also seems like overkill? I was looking at specs for a raspberry pi pico, and even that seems extremely overpowered for what we want to do. I tried googling 'low spec microcontrollers' and 'LED drivers', but couldn't find anything useful and I don't really know what keywords I should be searching.

Any suggestions on an extremely beginner friendly and simple way to achieve this, or principles and components I should research? Thanks


r/ArduinoHelp • • Jun 14 '26

autonomous boat and mpu-6050

4 Upvotes

I'm working on a project of a little boat that needs to navigate on a straight line for 15 meters and stop. one of my biggest concerns is stabilizing the course of the boat so it doesn't drift away. Claude recommended using the mpu-6050 sensor but I don't have the knowledge to understand if it's a viable solution. Can someone help me understand?


r/ArduinoHelp • • Jun 12 '26

DIY Instrument Cluster for my EV 4 Wheeler

4 Upvotes

I want to make a fully functional instrument cluster with a tft display, it should show soc, motor rpm, wheel speed, turn indicators and others.

By checking with claude,

for SOC , it says get the bms data via blutooth using an esp32 from the battery's internal BMS (Note: theres an phone applcation to check the soc and cell voltages).
for speedometer, THeres a speed signal wire on my motors controller. (not sure if this actually works)
for indicators it says use an optocoupler to know when the indicators are in HIGH state and correspondingly blink arrows on the display
motor rpm can be derived forom my gear ratio of the vehicle

so these are the ways of gathering data right now i dont have access to the battery and controllers, but does these methods work, I have another idea where i can embedd magnets on the wheels and use a hall sensor to detect pulses to find the vehicle speed. My question i that are there any more alternate data collection methods


r/ArduinoHelp • • May 26 '26

Is that valid electrically ?

Post image
4 Upvotes

Summer is back, so time to bring my Rafraichissator 6000 back ! (My fan. It's a PC fan controlled by Arduino.)

Last year the arduino was in series with a bunch of resistors to bring down the 11-13V alim to more reasonable levels

Now I'm realizing tho that I could use the fact that the alim is just 3 batteries, to feed the Arduino no more than 8V without a lot of wasteful resistors

Am I right ?


r/ArduinoHelp • • May 22 '26

Ayuda con mi código

Post image
4 Upvotes

Estoy haciendo mi TFG y con ayuda de tutoriales, chatgpt y ideas mias he creado el código para un seguiodor solar pero no me funciona alguno me puede echar una mano?

//Codigo

//Bilioteca

#include <AccelStepper.h>

#include <LiquidCrystal.h>

//Motores

//Pines de los motores

AccelStepper MotorGiro(AccelStepper::HALF4WIRE, 46, 50, 48, 52); //Nombramos la variable para cada motor elegimos el tipo de de aceleracion

AccelStepper MotorIncl(AccelStepper::HALF4WIRE, 47, 51, 49, 53); // y si va a 4 o a 2 cables y los pines

//Variables

//velocicidad

int Velo1 = 800; // las rpm de los motores

int Velo2 = 800;

//Aceleracion

int Acel1 = 400; // la aceleracion que tienen

int Acel2 = 400;

//calaculos movimiento de motor

//variables long pasos =(Grados * PasosM * Relacion) / 360.0

float GradosG = 5; // grados que movemos el panel

float GradosI = 5;

float RelacionG = 8; // se usa en la formula es para el calculo de proporcion de engranajes

float RelacionI = 8;

float PasosM = 4096; // revisar si son esos pasos y no 2048

long pasos1; // variable para que en la formula mueva ese numero de pasos

long pasos2;

//Pantalla LCD

//pines de conexion

int rs = 13;

int e = 12;

int d4 = 11;

int d5 = 10;

int d6 = 9;

int d7 = 8;

LiquidCrystal lcd(rs, e, d4, d5, d6, d7);

//Sensores

//Selector

//pines

int SAM = 23;

int SMP = 25;

//variables

int RSAM; //1 manual 0 automatico

int RSMP; //1 marcha 0 paro

//FotoResistencia

//Pines

int LdrA = A0; // Arriba izquierda

int LdrD = A1; // Arriba derecha

int LdrB = A2; // Abajo izquierda

int LdrI = A3; // Abajo derecha

//Valor

int RLdrA;

int RLdrD;

int RLdrB;

int RLdrI;

//Calculos

int MLdrGI;

int MLdrGD;

int MLdrGA;

int MLdrGB;

//Sensibilidad

int SensIn = 40; //inclinacion

int SensRo = 40; //rotacion

//Movimiento manual

int BAr = 4;

int BAb = 3;

int BIz = 5;

int BDe = 2;

int RBAr;

int RBAb;

int RBIz;

int RBDe;

//tiempos

int dt1 = 1000;

int dt2 = 100;

//Valores para ubicar grados del motor

float GGiro = 0;

float GIncl = 0;

void setup() {

//Pantalla de ordenador

Serial.begin(9600);

//pantalla LCD

lcd.begin(16, 2);

//pines movimiento

pinMode(BDe, INPUT);

pinMode(BIz, INPUT);

pinMode(BAr, INPUT);

pinMode(BAb, INPUT);

//Pines de sensores

//Selectores

pinMode(SAM, INPUT);

pinMode(SMP, INPUT);

//fotoresistencia

pinMode(LdrA, INPUT);

pinMode(LdrD, INPUT);

pinMode(LdrB, INPUT);

pinMode(LdrI, INPUT);

//Motor

//Giro

MotorGiro.setMaxSpeed(Velo1);

MotorGiro.setAcceleration(Acel1); //codigo en ingles

//Inlcinacion

MotorIncl.setMaxSpeed(Velo2);

MotorIncl.setAcceleration(Acel2);

}

void loop() {

lcd.setCursor(0, 0); //lcd.print(" ") empieza a escribir

RSAM = digitalRead(SAM);

RSMP = digitalRead(SMP);

if (RSMP == 1) {

if (RSAM == 1) {//movimiento automatico dado por las resistencias

//Lectura sensores

RLdrA = analogRead(LdrA);

RLdrD = analogRead(LdrD);

RLdrB = analogRead(LdrB);

RLdrI = analogRead(LdrI);

//Medias

MLdrGI = RLdrI - RLdrD;

MLdrGD = RLdrD - RLdrI;

MLdrGA = RLdrA - RLdrB;

MLdrGB = RLdrB - RLdrA;

//IF decide si mueve o no

//gira hacia la izquierda

if (RLdrI > RLdrD && MLdrGI > SensRo) {

pasos1 = (GradosG * PasosM * RelacionG) / 360.0;

GGiro += GradosG;

MotorGiro.move(pasos1);

}

//gira hacia la derecha

if (RLdrD > RLdrI && MLdrGD > SensRo) {

pasos1 = (GradosG * PasosM * RelacionG) / 360.0;

GGiro -= GradosG;

MotorGiro.move(-pasos1);

}

//inclina hacia arriba

if (RLdrA > RLdrB && MLdrGA > SensIn) {

pasos2 = (GradosI * PasosM * RelacionI) / 360.0;

GIncl += GradosI;

MotorIncl.move(pasos2);

}

//inclina hacia abajo

if (RLdrB > RLdrA && MLdrGB > SensIn) {

pasos2 = (GradosI * PasosM * RelacionI) / 360.0;

GIncl -= GradosI;

MotorIncl.move(-pasos2);

}

MotorGiro.run();

MotorIncl.run();

//cerramos movimiento automatico

}

if (RSAM == 0){

//

RBAr = digitalRead(BAr);

RBAb = digitalRead(BAb);

RBDe = digitalRead(BDe);

RBIz = digitalRead(BIz);

//movimiento manual

if(RBIz > 0){

pasos1 = (GradosG * PasosM * RelacionG) / 360.0;

GGiro += GradosG;

MotorGiro.move(pasos1);

MotorGiro.run();

}

if(RBDe > 0){

pasos1 = (GradosG * PasosM * RelacionG) / 360.0;

GGiro -= GradosG;

MotorGiro.move(-pasos1);

MotorGiro.run();

}

if(RBAr > 0){

pasos2 = (GradosI * PasosM * RelacionG) / 360.0;

GIncl += GradosI;

MotorIncl.move(pasos2);

MotorIncl.run();

}

if(RBAb > 0){

pasos2 = (GradosI * PasosM * RelacionG) / 360.0;

GIncl -= GradosI;

MotorIncl.move(-pasos2);

MotorIncl.run();

}

}

//carramos si da marcha o no

}

//LCD

lcd.clear();

lcd.setCursor(0, 0);

lcd.print("Giro ");

lcd.print(GGiro);

lcd.setCursor(0, 1);

lcd.print("Incl ");

lcd.print(GIncl);

}


r/ArduinoHelp • • May 14 '26

Need help making N2222 transistor work

Thumbnail
gallery
4 Upvotes

The problem is that the n2222 piece gets really hot when I connected the fan. I don’t want to purchase the L298n motor since I’ve read that I can get it to work with the n2222. What am I doing wrong?

The fan did turn on after I pushed the blade a little bit.


r/ArduinoHelp • • May 05 '26

My Robot Was Working… Now It Won’t Connect no worris got it in hand

4 Upvotes

I built a robot and right now it has some connection issues. Ssh and tailscale

In a later video, I’ll fix everything so we can keep going with the project.

Also, quick note — in this video there’s a joke about soldering safety.

Please just wear basic safety glasses, you don’t need a full suit 😅

Thanks for watching, and feel free to share your thoughts —

I’d really like to know what you think about the video.

Thank you!


r/ArduinoHelp • • Apr 16 '26

5 Channel IR sensor array Value got stuck on 981

Post image
4 Upvotes

My 5 Channel IR sensor array Value got stuck on 981 analog value and it's doesn't change until i completetly touch the ir sensor with the surface no gap between them. I thought the sensor it damaged so i changed to new one but problem not solved its showing same thing with new ir sensor array. So i think its not ir sensor problem maybe the code i wrote. So can anyone help me with this issue 😭


r/ArduinoHelp • • Apr 14 '26

Downloaded sketch doesn't work

4 Upvotes

I downloaded an arduino project online, but the code won't compile. Can someone help me?I get an error message that says:

In file included from C:\Users\joshu\AppData\Local\Temp\.arduinoIDE-unsaved2026314-15064-1n28yyq.xhpef\sketch_apr14a\sketch_apr14a.ino:1:
C:\Users\joshu\OneDrive\Documents\Arduino\libraries\HID-Project\src/HID-Project.h:35:2: error: #error HID Project can only be used with an USB MCU.
   35 | #error HID Project can only be used with an USB MCU.
      |  ^~~~~
In file included from C:\Users\joshu\OneDrive\Documents\Arduino\libraries\HID-Project\src/HID-Project.h:39:
C:\Users\joshu\OneDrive\Documents\Arduino\libraries\HID-Project\src/SingleReport/SingleAbsoluteMouse.h:28:10: fatal error: HID.h: No such file or directory
   28 | #include "HID.h"
      |          ^~~~~~~
compilation terminated.
exit status 1

Compilation error: exit status 1

Here's the code

#include "HID-Project.h"
//NOTE!! You need to add the above HID-Project library for this code to work.
//https://github.com/NicoHood/HID
//The device will show up as a gamepad/joystick in windows called "Seeed"

const int pinEject = 2;
const int pinArm = 3;

void setup() {
  pinMode(pinEject, INPUT_PULLUP);
  pinMode(pinArm, INPUT_PULLUP);

  // Sends a clean report to the host. This is important on any Arduino type.
  Gamepad.begin();
}

void loop() {

  //check EJECT
  if (!digitalRead(pinEject)) {
    static uint8_t count = 0;
    count = 0;
    while (count<=2) {
      count++;
      Gamepad.press(1);
      Gamepad.write();
      delay(50);
      Gamepad.release(1);
      Gamepad.write();
    }}
    else {
      Gamepad.release(1);
    }
  

  //Check ARM
  if (!digitalRead(pinArm)) {
    Gamepad.press(2);
    Gamepad.release(3);
  }
  else {
    Gamepad.release(2);
    Gamepad.press(3);
  }

  Gamepad.write();

    // Simple debounce
    delay(50);
    
  }

r/ArduinoHelp • • Apr 06 '26

Arduino safe around magnets?

4 Upvotes

Looking into an accessory that has magnetic helping hands, a light and, other doodads.

If I get one of these magnets too close to the Arduino will it cause damage or wipe data?

Edit: I believe this question has been fully answered in the comments but I am leaving it up in case someone else is worried. In short yes it is safe to use magnets around Arduino controllers.

A sincere thank you to the members of this community for their help.


r/ArduinoHelp • • Feb 24 '26

Why is this TIA-circuit not working?

4 Upvotes

Ive made this circuit for measuring low light and it worked before but then i left it for a week and when i plugged it back in nothing worked as it should. Vout are just random values that doesnt seem to follow any logic. Should this circuit below be working normally?

Im using an OPA128, FDS100

Are there typical errors that can appear by wiring this kind of circuits?


r/ArduinoHelp • • Feb 13 '26

Where to start?

4 Upvotes

Fascinated by things I saw on Instagram. If I had to learn Adruino how/where should I start? What do I need ?( Don't wanna spend too much rn) Some wisdom from you experience would be extremely helpful🙏🏻


r/ArduinoHelp • • Dec 19 '25

Stepper motor encoders

Thumbnail gallery
4 Upvotes

r/ArduinoHelp • • Nov 24 '25

How do I Wire Microstepping on a CNCv3?

Thumbnail
gallery
4 Upvotes

I have a CNCv3 with A4988 drivers on top of an arduino Mega. I need my stepper motors to move slowly and smoothly hence the need for microstepping. Every guide I’ve seen online has the chart of pins and stuff, but not how to actually wire it. In my first picture I have circled what I believe are the microstepping pins. I have removed the driver from that bit so you can see, but the driver is usually on top like the one next to it. I have never worked with steppers or a cnc shield before and i have no idea what to do.


r/ArduinoHelp • • Oct 28 '25

What am I doing wrong

4 Upvotes

r/ArduinoHelp • • Oct 18 '25

Potentiometers just spitting out random values

Thumbnail gallery
4 Upvotes

r/ArduinoHelp • • Sep 17 '25

BYE

4 Upvotes

Well, I’ve been on Reddit/subreddits for about 10 years now. Last week I was blocked from commenting, for seven days because. I said someone needs a slap. No violence on this sub, but OK on Fight Porn? Yesterday, I had a post removed. I don’t know why. Thus, I will be leaving Reddit and its anal subs. Also, got message saying “Reddit. is a vast network of communities run and populated by people like you....In order to keep communities welcoming, safe, and great places to be, everyone who uses the platform operates by a shared set of rules. Duhhh! So I’ll be gone soon. Fuck Reddit!


r/ArduinoHelp • • Sep 16 '25

Battery for Arduino

4 Upvotes

Hello everyone! I have questions about the project I'm working on. It's about agroclimatic monitoring. The point is that it'll be autonomous, use five sensors, and take measurements every hour for 10 seconds for a month. The consumption estimates are 414 mAh for that month. I want to choose a battery that meets certain specifications, such as: regulated 5V output, overcharge protection, low-current mode, direct USB connection with Arduino and without the need to use modules to raise voltage. I have researched and have a few options for power banks but I am not sure if my choice will be the right one. That is why I am turning to you please, for guidance as I don't want my system to be damaged. I share with you the battery options I have consulted: •Xiamo ultra slim power bank 5000 mAh •Haitronic 5V 3200mAh lithium battery

Sorry if i misspelled, english is not my native language 😅

Thank you!


r/ArduinoHelp • • Sep 09 '25

What is the best way to power this? (More in desc)

Post image
4 Upvotes