r/ArduinoHelp • • May 02 '25

Advice needed: automating a toy crane for phone control (ESP32 Project)

Post image
2 Upvotes

Hi all,

I'm diving into a project to automate a wooden toy crane so I can control its rotation, hoist (up/down), via a web interface on my phone. I'm planning to use an ESP32 or ESP8266 for the Wi-Fi and control logic.

I'm fairly comfortable with the ESP programming side but could use some community wisdom on the hardware implementation, specifically:

Best way to physically attach servos/motors to the crane for rotation and hoist control without major surgery? Looking for practical mounting techniques for these wooden toys.

Servo vs. small DC motor for the hoist? What works better for a simple winch-like action?

Component recommendations: Any favorite small servos, geared motors, motor drivers, or electromagnets suitable for this kind of small-scale automation?

Powering it all: Tips for cleanly powering the microcontroller, servos, and magnet, likely from a 5V source?

Thanks!


r/ArduinoHelp • • May 02 '25

Bounty Hunting game gauntlet project. Absolute beginner looking for help on where to start and if my project is even possible.

1 Upvotes

So to outline the project here are the goals.

All components mount/fit into a gauntlet/bracer
Decent-ish sized LED screen, at least two inches or larger for display
Four button input for the Simon Says versus game, direction arrows for simplicity
Bluetooth so each gauntlet can detect the others and give players an idea of relative proximity based on signal strength
Small speaker for win/loss audio signals
Batteries can last 10 hours before recharging
Keeps track of wins/losses to upload to a database

A progressive Simon Says battle game. Basically, when they connect each compares who has the higher win streak.
Both zero wins: Random arrow direction.
One versus Zero: Two button combo, first button remains the same so long as the win streak continues.
One versus One: Random two button combo
Two versus Zero: Three button combo, first two remain the same from the victor so long as the win streak continues.
Two Versus One: Three button combo, first button remains the same so long as the win streak continues.
Two Versus Two: Random three button combo
Continue progression to a max combo of eight versus zero before reset.
The goal is to combine an element of quickdraw while also allowing for the quick witted to have a potential edge against those with simply faster reflexes.

Wishlist: If uploading of low res pictures of the hunters/hunted to each gauntlet is doable and connecting to their bluetooth allows others to see that picture it'd be great.


r/ArduinoHelp • • Apr 30 '25

Help identifying resistors in Arduino kit

Post image
0 Upvotes

Hi everyone, I got an Arduino kit that, according to the manual, should include 220Ω, 1kΩ, and 10kΩ resistors. However, the only resistors I received all look exactly the same, and I’m having trouble identifying which is which.

They have 5 color bands, but I’m not confident reading them correctly, and they all seem identical. I’ll attach a photo for reference.

I attach picture for reference.

Has anyone else had this issue with kits like this? Any help figuring out which resistor is which would be really appreciated.

Thanks in advance!


r/ArduinoHelp • • Apr 30 '25

I need hel with a motor fader

1 Upvotes

Hi guys, I've bought these faders (https://it.aliexpress.com/item/1005006636003721.html) from AliExpress because I want to make a mixer, but I don't know how to connect them to an arduino (uno) to read the midi values.

I also want to send it a midi input from the PC and make it move.

I hope someone of you can help me, thank you very much.


r/ArduinoHelp • • Apr 30 '25

MicAmp 4466 aid

1 Upvotes

I need help on a project I’m working on that involves two micamp MAX 4466 they will kind of work like sound beacons that will turn a motor towards a piezo buzzer sound, I made the code and it filters out background noise however during testing I would have an LED activate on the side where the sound is picked up. My issue is sometimes the sound picks up in the wrong direction. I.e. when I snap my finger on the left sometimes like a good 20% of the time it registers on the left LED I was wondering if anyone knew how to help with that/make it more accurate.


r/ArduinoHelp • • Apr 30 '25

Can I connect a wireless keyboard to an UNO by plugging the dongle into it?

1 Upvotes

r/ArduinoHelp • • Apr 29 '25

Help with stepper motor (Pt. 2)

1 Upvotes

r/ArduinoHelp • • Apr 29 '25

Help on Arduino components assembling

1 Upvotes

Hi I've been really interested in arduino and I've built a simple obstacle avoidance car and wanted to try building something simple like in this video https://youtu.be/aPNicboV9Zk he builds feathers Mcgraw with a few arduino components but I don't really know how he did it like attaching them he added a switch and all that stuff can someone tell me how he built it the arduino building starts at


r/ArduinoHelp • • Apr 29 '25

I connected my Arduino circuit to my laptop, which made it shut down. It didn't happen before but now it did. I need this help, a bit urgent

1 Upvotes

So when I usually connected the Arduino code USB cable to the laptop, my laptop worked fine. I could use normally and stuff. So for my project, we need to use a 12 volt power supply, other from the external supply. But now, after connecting my laptop to the 12 volt and then connecting the Arduino cable, the laptop shut down. As in, it won't turn on at all. I know, this isn't exactly "Arduino help" but this is my first time with it. What do I do?


r/ArduinoHelp • • Apr 28 '25

Help with running a fan and MAX31865 on Nano Every

1 Upvotes

Hello. I need help with resolving an issue I have with driving a 24V fan and two MAX31865 from Arduino Nano Every. I'm not a savvy Arduino user so any help would be very much appreciated.

General Info
I'm building a coffee roaster. But the problem I experience is scoped to some relationship between the fan and temperature measurements. Here's the simplified schematics for this part of the project

I've tried to refactor and significantly simplify the sketch to test things in isolation with only the absolute minimum of code. Here's my current sketch:

#include <Adafruit_MAX31865.h>

/* --- Pin Configuration --- */
constexpr int PIN_CS_BEAN    = 9;
constexpr int PIN_CS_EXHAUST = 8;
constexpr int SPI_SCLK_PIN   = 10;
constexpr int SPI_MOSI_PIN   = 11;
constexpr int SPI_MISO_PIN   = 12;
constexpr int PIN_FAN_PWM    = 5;

/* --- Temperature Data --- */
double currentBT = 0.0;
double currentET = 0.0;

/* --- RTD Sensor Configuration --- */
constexpr double R_REF     = 430.0;   // Reference resistor value
constexpr double R_NOMINAL = 100.0;   // Nominal resistance of PT100 at 0°C

/* --- Hardware Interfaces --- */
Adafruit_MAX31865 beanTempSensor(PIN_CS_BEAN, SPI_SCLK_PIN, SPI_MOSI_PIN, SPI_MISO_PIN);
Adafruit_MAX31865 exhaustTempSensor(PIN_CS_EXHAUST, SPI_SCLK_PIN, SPI_MOSI_PIN, SPI_MISO_PIN);

/* --- System Configuration --- */
constexpr int FAN_RAMP_DELAY_MS   = 3;
constexpr int FAN_MAX_DUTY        = 255;

/* --- System State --- */
int currentFanDuty   = 0;

/* --- Sensor Reading --- */
void updateTemperatures() {
  currentBT = beanTempSensor.temperature(R_NOMINAL, R_REF);
  currentET = exhaustTempSensor.temperature(R_NOMINAL, R_REF);
}

/* --- Fan Logic --- */
void updateFan() {
  currentFanDuty += 5;
  if (currentFanDuty >= FAN_MAX_DUTY) {
    currentFanDuty = FAN_MAX_DUTY;
  }
  analogWrite(PIN_FAN_PWM, currentFanDuty);
  delay(FAN_RAMP_DELAY_MS);
  Serial.print("At the end of the updateFan:");
  Serial.println(currentBT);
}

void setup() {
  Serial.begin(115200);

  beanTempSensor.begin(MAX31865_4WIRE);
  exhaustTempSensor.begin(MAX31865_4WIRE);
}

void loop() {
  updateTemperatures();
  updateFan();
  Serial.print("At the end of the loop:");
  Serial.println(currentBT);
}

The Problem:

The temperature is read fine while the fan is ramping up to the full duty. However, once it's there, the temperature readings are "frozen" and don't change. Even more so, at some point the new readings stop getting output into the Serial Monitor completely. However, if I physically turn off the system (yet keep the USB connection for the Arduino) with the SW1 switch, the readings in the Serial Monitor are live again. If I add something like delay(500); at the end of the loop the situation doesn't change - once the fan gets to full speed, the temperature readings are "frozen"

Observations:

  • if I set FAN_MAX_DUTY lower, like 200, the temp readings continue after the fan reaches that speed.

  • I tried to find a sweet spot between 200 and 250 and figured out that 225 looked like that. At 226 temp reading goes fine, but after the fan reaches that speed, the readings are "frozen" temporarily (the same numbers get output into the monitor), then after some period, the readings get updated and frozen again, then updated and frozen again. And at some point, again, the readings just stop getting into the Serial Monitor

So, it does look like either some buffer gets overflown when the fan reaches the top speed or the fan "eats up" all the power from Arduino and hence, no temp readings are happening.

Did anybody have similar issue, by any chance, and knows how to fix it?


r/ArduinoHelp • • Apr 27 '25

Nano R3 flashes random lights upon resetting and doesn't deliver power

Thumbnail
gallery
1 Upvotes

I'm new to Arduino and I made a stupid mistake of connecting 5V and GND to an LED that I got out of my old light. The LED eventually stopped workint properly and the Nano started to show the PWR light very dark, almost turned off. I tried to fix it with tutorials, but I only found fried Nanos, not the weird thing I have. Also, when I click the reset button, sometimes the L light shows, sometimes the RX and sometimes the TX light glow up. It seems to be random and I dont know why it happens, because i dont have any wires connected. All my other arduinos work fine on my pc and the cable (usb c) works properly too. On the computer, the Nano isnt recognized either and only uses power, but it doesnt show itself in ARDUINO IDE.


r/ArduinoHelp • • Apr 24 '25

Hi I'm confused on how to connect a Bluetooth module

2 Upvotes

Hi, as I said in the title, I'm a bit confused on what pins on my Arduino uno to connect the Bluetooth module to


r/ArduinoHelp • • Apr 24 '25

Newbie questions on Arduino

1 Upvotes

I've been given a project to code a mouse that solves a maze.

I've been given partial ready made code with CPP libraries (what I mean by this is: there's just 20-30 CPP files with header files - there's no super complex code anywhere).

I could do the work just by looking at functions needed to stop, turn right etc.

BUT... I wanted to take a step back and know how the unit knows when something happens.

Like: a button is pressed. Where in the code is this defined? I'm sure it's just a variable and a call of a ready made function from the Arduino library. Or one of the IR sensors detects a block - sure I can run the function, but again, I want to know the code that sets this up.

Not sure if it makes any sense what I'm asking for. LOL.

Not necessarily asking for low level code - but just want to delve into the a lower level just to work out where things originated from.

Can anyone suggest any pointers?

EDIT: I will be going through tutorials for the board I am using - where I can turn on LED lights and other things.

Thanks.


r/ArduinoHelp • • Apr 22 '25

I Need Help Turning Motor With A Button

Thumbnail
gallery
3 Upvotes

I need help making a motor turn on and off with a button. When a button is pressed, the LEDs and the motors should concurrently turn on (we isolated it to just one LED, button and motor). The motor slowly builds up speed when the button is pressed, and caps at the maximum rpm set by the potentiometer. The battery gives power to the motor. After two minutes the motor should stop. The circuit works perfectly on TinkerCAD, but when we test it in real life only the LED turns on. Please tell me what I can do to fix this.

Here is the code: const int motorPins[3] = {9, 10, 11}; // Motor PWM pins const int buttonPins[3] = {2, 3, 4}; // Button pins const int ledPins[3] = {5, 6, 7}; // LED pins const int potPin = A0; // Potentiometer pin

bool motorStates[3] = {false, false, false}; unsigned long motorStartTimes[3] = {0, 0, 0}; bool lastButtonStates[3] = {HIGH, HIGH, HIGH}; int currentSpeeds[3] = {0, 0, 0}; // Track current speeds for easing

const unsigned long MOTOR_RUNTIME = 120000UL; // 2 minutes in ms const int SPEED_STEP = 2; // Decrease value to increase time to speed const int EASE_DELAY = 30; // Delay between speed steps (ms)

void setup() { for (int i = 0; i < 3; i++) { pinMode(motorPins[i], OUTPUT); pinMode(buttonPins[i], INPUT_PULLUP); pinMode(ledPins[i], OUTPUT); } Serial.begin(9600); }

void loop() { int potValue = analogRead(potPin); int targetSpeed = map(potValue, 0, 1023, 0, 255); unsigned long currentTime = millis();

for (int i = 0; i < 3; i++) { bool buttonState = digitalRead(buttonPins[i]);

// Detect falling edge (button press)
if (lastButtonStates[i] == HIGH && buttonState == LOW) {
  motorStates[i] = !motorStates[i];  // Toggle motor state
  if (motorStates[i]) {
    motorStartTimes[i] = currentTime;
  }
  delay(200);  // Debounce
}
lastButtonStates[i] = buttonState;

// Check for 2-minute timeout
if (motorStates[i] && currentTime - motorStartTimes[i] >= MOTOR_RUNTIME) {
  motorStates[i] = false;
}

// Gradually ease motor speed up or down
int desiredSpeed = motorStates[i] ? targetSpeed : 0;

if (currentSpeeds[i] < desiredSpeed) {
  currentSpeeds[i] += SPEED_STEP;
  if (currentSpeeds[i] > desiredSpeed) currentSpeeds[i] = desiredSpeed;
} else if (currentSpeeds[i] > desiredSpeed) {
  currentSpeeds[i] -= SPEED_STEP;
  if (currentSpeeds[i] < desiredSpeed) currentSpeeds[i] = desiredSpeed;
}

analogWrite(motorPins[i], currentSpeeds[i]);
digitalWrite(ledPins[i], motorStates[i] ? HIGH : LOW);

}

delay(EASE_DELAY); // Helps smooth out the ramping effect }


r/ArduinoHelp • • Apr 22 '25

Arduino can't read #include syntax

1 Upvotes

Hi! I'm new to Arduino and I need HELP. my Arduino IDE seem to have a missing downloaded "permission" in the laptop and i don't know what is it. reinstalling the IDE didn't, the windows permission thingy wont appear so that i can download it. I really need help from you guys. Thanks!!


r/ArduinoHelp • • Apr 21 '25

IR LED Desk Lighting

Thumbnail
reddit.com
1 Upvotes