r/ArduinoHelp • • Jan 15 '25

Need Help

2 Upvotes

Title: Need Help with Arduino Maze-Solving Robot (Left Wall-Following Method)

Have less than 10 hours to make this ready please help

Description:
I'm building an Arduino-based maze-solving robot using the left wall-following method and need assistance. Here's my setup:

  • 3 ultrasonic sensors (front, left, right)

  • 2 mini motors controlled by an L298N motor driver

  • 3.7V battery powering both the L298N and Arduino

Problem:
The robot spins in circles when I test the current code (which is not the expected behavior). I've reversed the motor wiring on the L298N, but the issue persists.

What I need help with:

  1. A working code to implement the left wall-following method.

  2. Proper turning logic to ensure the robot accurately follows the left wall.

  3. Correct motor control, accounting for reversed wiring.

Any help would be appreciated! I have only less than 10 hours to make this ready

Made this using here https://maker.pro/arduino/projects/how-to-build-an-arduino-based-maze-solving-robot


r/ArduinoHelp • • Jan 04 '25

MG90 motor not working with signal

Post image
2 Upvotes

Hi friends, I am trying to make an MG90 servo motor work back / forth when I touch a proximity sensor. Circuit diagram attached. I am using an Arduino nano without a serial number. I put an LED between the yellow wire and the black wire at the input of the motor to check if the motor is getting signal from Arduino or not and I am seeing that it’s getting the signal as the LED stops light when I touch the proximity sensor and lights up again when I move away from the sensor. The input voltage to the motor is around 5v, so the voltage may not be the issue. I also observed that the motor works sometimes properly but 90% of the time it doesn’t work. Can you please help me understand the root cause of this… Thank you!


r/ArduinoHelp • • Jan 01 '25

Help with config and sketch Arduino Uno R3

2 Upvotes

Need help and am willing to pay someone for a tutorial on this. Simple project with touchscreen LCD to mimic a popular game, Buzzword. I cannot get the LCD to use any examples, library is installed but no examples will work. At this point I just want to pay someone to help me, maybe we do a TEAMS call? Could Venmo, ping me if interested thank you.

Arduino Uno R3, 2.8" UNO Module ILI9341

https://www.alexdglover.com/arduino-project-7-buzzword/


r/ArduinoHelp • • Dec 28 '24

Need guidance

Post image
2 Upvotes

r/ArduinoHelp • • Dec 27 '24

Arduino board identification trouble / what does it do? / what else can I make it do?

2 Upvotes

I am new to using Arduino and I have this board that I ordered from amazon a while ago. I was able to connect it with the Arduino IDE and upload the code into it. I modified the blink default program and it is 100% able to be connected and compatible. However, I want to figure out what else I can do with this specific board other than just blinking an LED differently. Please let me know if you know what board this is and/or what else this specific model can be used for. I tried the internet but am still having trouble finding instructions for this specific board and figuring what it does exactly and how to do it. Do I need to buy sensors or other parts for this one?


r/ArduinoHelp • • Dec 25 '24

NEMA 17 Stepper Motor with MKS SERVO42A and GenL V2.1 - No Device Detected

2 Upvotes

Hi all,

I am working on setting up a smart stepper motor using MKS SERVO42A board and Gen LV2.1 motherboard. It is powered using 24 DC supply and I am using the firmware corresponding to Misfittech Stepper Nano (https://github.com/Misfittech/nano_stepper).

I am using the setup to drive a linear rail system for the time being. However, my board is not being detected by my PC. There is a driver (https://github.com/makerbase-mks/MKS-SERVO42A/tree/master/Firmware) that is required as per Misfittech and MKS. But, it keeps failing. Would appreciate some advice!

Apologies if this is not the correct avenue for this!


r/ArduinoHelp • • Dec 01 '24

Stuck at this point

2 Upvotes

Imagine this as sequential shifter,

i have add to push buttons as shift up and shift down.

9 Leds has added. first one for neutral and other 8 as gears.

everthing works well,

if im at 6th gear and wants to shift to neutral or 1st gear, i need to press shift down button again and again, its to hard. so now i want to add two more push buttons ,

one for neutral led

one for first gear

then when i press one of them, quickly it will shift to neutral or first gear

can someone tell me how to add those two new buttons to work like this,,

code is below

int FWGear = 3; //foward button

int BWGear = 4; //backward button

//variables

int GearCount = 0;

int FWGearNew;

int FWGearOld = 1;

int BWGearNew;

int BWGearOld = 1;

// led pins

int NLed = 7;

int G1Led = 8;

int G2Led = 9;

int G3Led = 10;

int G4Led = 11;

int G5Led = 12;

int G6Led = 14;

int G7Led = 15;

int G8Led = 16;

void setup ()

{

pinMode(FWGear, INPUT_PULLUP); //foward button

pinMode(BWGear, INPUT_PULLUP); //backward button

pinMode(NLed, OUTPUT);

pinMode(G1Led, OUTPUT);

pinMode(G2Led, OUTPUT);

pinMode(G3Led, OUTPUT);

pinMode(G4Led, OUTPUT);

pinMode(G5Led, OUTPUT);

pinMode(G6Led, OUTPUT);

pinMode(G7Led, OUTPUT);

pinMode(G8Led, OUTPUT);

}

void loop ()

{

FWbutton();

BWbutton();

Neutral();

First();

Second();

Third();

Forth();

Fifth();

Sisth();

Seventh();

Eighth();

}

// Foward Gear Button Count

void FWbutton()

{

FWGearNew=digitalRead(FWGear);

delay(100);

if(FWGearOld==1 && FWGearNew==0 && GearCount <8)

{

GearCount = GearCount += 1;

}

FWGearOld=FWGearNew;

}

// Backward Gear Button Count

void BWbutton()

{

BWGearNew=digitalRead(BWGear);

delay(100);

if(BWGearOld==1 && BWGearNew==0 && GearCount >0)

{

GearCount = GearCount -= 1;

}

BWGearOld=BWGearNew;

}

// Led Funtions Based On Button Count

void Neutral()

{

if(GearCount==0)

{

digitalWrite(NLed, HIGH);

}

else

{

digitalWrite(NLed, LOW);

}

}

void First()

{

if(GearCount==1)

{

digitalWrite(G1Led, HIGH);

}

else

{

digitalWrite(G1Led, LOW);

}

}

void Second()

{

if(GearCount==2)

{

digitalWrite(G2Led, HIGH);

}

else

{

digitalWrite(G2Led, LOW);

}

}

void Third()

{

if(GearCount==3)

{

digitalWrite(G3Led, HIGH);

}

else

{

digitalWrite(G3Led, LOW);

}

}

void Forth()

{

if(GearCount==4)

{

digitalWrite(G4Led, HIGH);

}

else

{

digitalWrite(G4Led, LOW);

}

}

void Fifth()

{

if(GearCount==5)

{

digitalWrite(G5Led, HIGH);

}

else

{

digitalWrite(G5Led, LOW);

}

}

void Sisth()

{

if(GearCount==6)

{

digitalWrite(G6Led, HIGH);

}

else

{

digitalWrite(G6Led, LOW);

}

}

void Seventh()

{

if(GearCount==7)

{

digitalWrite(G7Led, HIGH);

}

else

{

digitalWrite(G7Led, LOW);

}

}

void Eighth()

{

if(GearCount==8)

{

digitalWrite(G8Led, HIGH);

}

else

{

digitalWrite(G8Led, LOW);

}

}


r/ArduinoHelp • • Nov 22 '24

Is this possible

Post image
2 Upvotes

I’m making a science fair project where I need to measure the output of some different solar panels over some time. I just want to measure the output of amp and volts at different times of the day, but I want nothing to do with the charge it generates, i just want it to kinda go away. Would it be fine as a closed circuit like how it’s set up or should I throw in a LED or something to consume the charge as it’s being created in without impacting the volts or amps. i can elaborate further if needed, cuz this probably sounds confusing as hell.


r/ArduinoHelp • • Nov 12 '24

ESP8266 NODEMCU ERROR

Thumbnail
gallery
2 Upvotes

I tried changing drivers, updating, reinstalling, corrct port, install esp board manager Still doesn't work My computer shows it as USB-SERIAL CH340(com6) Please help🙏🙏


r/ArduinoHelp • • Nov 03 '24

Why a 4G shield is so expensive compared to a 4G USB Modem?

2 Upvotes

I was looking for 4G shields and I found a lot of them, all over $30.00... and then I remembered from my childhood, when we needed to use internet outside home we had an USB modem. We stick that on the notebook and we were ready to use the internet.

So I did a really superficial research and I found some USB 4G modem for $10.00 or less... This make think.

Is this really a 4G LTE working dongle? And, if yes, why the hell are we paying 30 bucks on a shield where we still need to implement everything under the hood?

And finally, how are you Guys handling remote network access?


r/ArduinoHelp • • Oct 14 '24

Simon says 3x3

2 Upvotes

Hello, right now I am coding an Arduino Simon says program for school but doesn't work and wanted to ask now if someone has a program or some advice for it. We are using 9 LEDs and 9 buttons for the 3x3 field and an LCD display for the round counter and if you lose. Also a Red Led If you lose. The LCD isnt working and the Game it self doenst really work any Problem in the program maybe? It also includes Levels. Thanks for help and advices.

include <Wire.h>

include <LiquidCrystal_I2C.h>

// Initialisiere das LCD-Display mit der I2C-Adresse 0x27 (kann je nach Display unterschiedlich sein) LiquidCrystal_I2C lcd(0x27, 16, 2);

const int ledPins[9] = {2, 3, 4, 5, 6, 7, 8, 9, 10}; const int buttonPins[9] = {A0, A1, A2, A3, A4, A5, A6, A7, A8}; const int redLedPin = 13;

int sequence[5]; int userSequence[5]; int level = 0;

void setup() { lcd.uttonPins[i], INPUT_PULLUP); } pinMode(redLedPin, OUTPUT);

randomSeed(analogRead(0)); generateSequence(); }begin(); lcd.backlight(); lcd.print("Simon Says");

for (int i = 0; i < 9; i++) { pinMode(ledPins[i], OUTPUT); pinMode(b

void loop() { playSequence(); getUserInput(); checkSequence(); }

void generateSequence() { for (int i = 0; i < 5; i++) { sequence[i] = random(0, 9); } }

void playSequence() { for (int i = 0; i < 5; i++) { digitalWrite(ledPins[sequence[i]], HIGH); delay(500); digitalWrite(ledPins[sequence[i]], LOW); delay(500); } }

void getUserInput() { for (int i = 0; i < 5; i++) { bool buttonPressed = false; while (!buttonPressed) { for (int j = 0; j < 9; j++) { if (digitalRead(buttonPins[j]) == LOW) { userSequence[i] = j; buttonPressed = true; while (digitalRead(buttonPins[j]) == LOW); // Warten bis der Taster losgelassen wird } } } } }

void checkSequence() { bool correct = true; for (int i = 0; i < 5; i++) { if (userSequence[i] != sequence[i]) { correct = false; break; } }

if (correct) { lcd.clear(); lcd.print("Win!"); } else { lcd.clear(); lcd.print("Verlierer"); digitalWrite(redLedPin, HIGH); delay(1000); digitalWrite(redLedPin, LOW); } delay(2000); lcd.clear(); generateSequence(); }


r/ArduinoHelp • • Oct 10 '24

Hi guys, this Is my first post, and I really need help with my physics proyect

Thumbnail
gallery
2 Upvotes

(I'm using Google translate because I'm not very good with english) I'm making a project for my physics class. It's a tank which has a movable turret that works with Arduino, as a firing method I'm using parts of an automatic hydrogel gun. When the ultrasonic sensor detects something the gun should fire but when it does in practice it doesn't work. I'm still quite a novice in the Arduino area, although I find it something amazing, this is my second project and I would like to do more in the future. The blue battery Is form the gun

The code Is here: https://drive.google.com/file/d/1l7ySIFyJXcR5RHBync3Ps7ufaUmirIbB/view?usp=drive_link


r/ArduinoHelp • • Oct 08 '24

Trying to connect Arduino Nano RP2040 connect to WIFI

2 Upvotes

Hi Community,

Q1) I have a specific library that i have trained from Edge Impulse and the code runs smoothly on the device. What I want to do is to make the device portable by attaching to a power bank. So what is the additional coding that i have to do to get the WIFININA library working.

Q2) I need to create a dashboard for the out put that i get. I saw someone else has done it but i need few more clarifications on the steps (Smart Jacket for Fall Detection: A Human Activity Recognition (HAR) Application for Healthcare | Arduino Project Hub. )

Please help me with this team,

Thank you


r/ArduinoHelp • • Sep 30 '24

Can't get motor to spin

Post image
2 Upvotes

I'm brand new to the game here. I have a project in mind that I want to build but am basically just doing each task one at a time. I'll then compile everything into one project. Part one of this is getting a motor to run for two minutes when a button is pushed, and then shut off. I believe my code is correct here. But my motor does not spin after the button is pressed.


r/ArduinoHelp • • Sep 26 '24

HELP ASAP

2 Upvotes

what sensor can we use, that is compatible with arduino, that can detect car collision or car accidents? NEED HELP ASAP!!!!! #help #arduinohelp


r/ArduinoHelp • • Sep 25 '24

Long-Range RFID Reader for Goat Tagging Project – Any Suggestions?

2 Upvotes

Hey everyone!

We're currently working on a project involving goats and are using an Arduino Uno with the MFRC522 RFID reader. The problem is, the MFRC522 has a very short range and requires the tag to be almost in contact with the reader, which isn't practical for our setup.

We're in need of an RFID reader that can scan from a longer distance. Has anyone used a better alternative that might fit this scenario? Any recommendations would be greatly appreciated!


r/ArduinoHelp • • Sep 16 '24

Who likes building Cuberpunk projects? Anyone have any sourcing resources to help?

Thumbnail
gallery
2 Upvotes

I want to build something like this. Any advice?


r/ArduinoHelp • • Aug 07 '24

Comprehensive Tutorial about using 3.5 inch TFT LCD shields with Arduino UNO R3/R4 or Mega

2 Upvotes

Hope everyone's doing well. Here is a multi-part comprehensive tutorial I have created on using 3.5 inch TFT LCD shields (sometimes called 3.5 inch MCUFRIEND shields) with an Arduino UNO R3/R4 or Mega.

A few months ago, when I bought the display and decided to mess with it, I realized that the existing tutorials were either hard to follow, not detailed or not comprehensive enough for me to be able to build complex applications with it. They would cover the basics, but it was hard to build projects where the display would be a single component along with several other components. Finally, none of them showed how to use the display with the Arduino UNO R4 Minima/WiFi, which is what Arduino recommends for most people moving forward.

This tutorial aims to provide a complete guide with end-to-end coverage of the topic. The full tutorial is divided into 6 parts, and it covers the following -

  1. Setting up the software libraries to use the display.

  2. Architecture of programs that use displays and graphics, along with good and bad patterns.

  3. Calibrating the touchscreen (an explanation of the calibration process, the program as well as a video demonstration of the process).

  4. Using the builtin SD Card slot to load and store images, separate from the Arduino's internal storage.

  5. Using text-files with the SD Card in creative ways, such as storing configuration data, logging etc.

  6. Building a paint app (including a canvas, color-selector and stroke selector), as well as Tic-Tac-Toe (including a starting menu and ending screens).

It includes high quality images, diagrams and video demonstrations where required and divides each task and topic into easy-to-follow steps.

I would appreciate everyone's feedback and comments on this series, as well as ways to make it better. Here are some pictures from the projects given in the series -

The code for all these are available on Github as well (links are in the website, but I am open to sharing it here as well).


r/ArduinoHelp • • Jul 25 '24

Using Arduino IDE and ESP32 Board

2 Upvotes

I've been using UNO exclusively but just got the ESP32. Is it just a matter of selecting the ESP32 board from the IDE and then including any other libraries I need for a successful sketch? Tks Ron


r/ArduinoHelp • • Jul 25 '24

Arduino on Linux help

2 Upvotes

How to use Arduino in Linux? I m using fedora 39, hyprland, and my laptop can't detect the port sometimes and if it does it doesn't work.


r/ArduinoHelp • • Jun 03 '24

LED Strip Confusion

2 Upvotes

Hey everyone! I am new to using Arduinos and I am trying to wire up some LED strips (Type WS2811 to be exact) I think I am wiring it correct but for some reason it is not working. I think I am mostly confused on the 5 wires (2 white, 2 red, and 1 green) and how I need to add the 12V power into the strip but control it with the Arduino. I created a sketch of the wiring I have but am hoping someone can tell me what I am doing wrong. I am also going to add a photo of the end of the LED strip and the 5 wires as well as the 12V wires I have that is going into it. Thanks in advance because I am lost.

On the circuit sketch the top bread board is to symbolize the LED strip and the 5 wires coming from it. The Solar panel is for the 12V input wires. The Yellow wires is the white ground (I was going to use white but it was hard to see). And the green is green, and the red is red.


r/ArduinoHelp • • Jun 02 '24

LED Stripes not working

Thumbnail
gallery
2 Upvotes

hello yesterday i found a broken fan in the streets, so i took it home and disassembled. i found some led strips around here so i tried connecting tjen to my arduino but they don't work. does anyone have any clue why this happens?? idk what model of leds they are or anything, i just know that they where controlled by a remote cause there was one just besides the fan. thanks a million, i've tried several codes and it never works


r/ArduinoHelp • • May 26 '24

i need help with my code and its a bit urgent can someone help me with it? And ill pay u for it

2 Upvotes

r/ArduinoHelp • • May 17 '24

Nano ESP32 HID

2 Upvotes

Hello,

I need some kind of... thing, that will press "Enter" 5 minutes after the host PC has turned on, is it possible to do it with the Nano ESP32 emulating a keyboard? It's to bypass a fan alert on a Dell Workstation

TIA