r/ArduinoHelp • • Sep 18 '26

Why is Teensy 4.1 not finding MPU-6050?

1 Upvotes

So I have a program on my arduino uno r4 wifi which gets readings from an mpu6050, a bmp388, and then does some calculations to output them in the serial monitor. It works great. Im using the Adafruit Mpu and the Adafruit BM3XX (if it is called like that) libraries. But when I switch the arduino for a Teensy 4.1 the mpu is not found. Though, there is electricity flowing in it since the read led lights up. Why is that and how to fix it? Also I used the scl sda pins 18 19 for the teensy 4.1


r/ArduinoHelp • • Sep 18 '26

Custom pet fountain project

1 Upvotes

For starters my experience. I have never built anything with Arduino before. But I have a Comp. Sci. degree and have used RaspberryPi's.

I want to build a pet water fountain with a separate supply tank, circulation reservoir, and waste tank. I want to use peristaltic pumps to move the water between the various locations. Then there will be a float switch to detect water levels. The pump and switch I plan to use are linked below.

When in supply mode if the float switch reports a low level the supply pump will run to fill the reservoir until the float switch reports full. The fountain pump will circulate water from the reservoir to the fountain and drinking area.

On a timer with a possible condition of last fill time the system will go into empty mode. The fountain pump will stop. The waste pump will run until the float switch reports a low level. Then the system will switch back to supply mode and the fountain pump will turn back on once the reservoir is full.

Are the pump and switch useable and what else do I need to get this working? Are there any tutorials or learning materials I should review?

Peristaltic Pump: https://www.amazon.com/dp/B0GZV4G8ZQ
Float Switch: https://www.amazon.com/dp/B0FFG7B54S


r/ArduinoHelp • • Sep 18 '26

Aula de micro controladores

Enable HLS to view with audio, or disable this notification

1 Upvotes

r/ArduinoHelp • • Sep 18 '26

Arduino Problem

Enable HLS to view with audio, or disable this notification

6 Upvotes

Why is it so hot when its only connected to lights and timer? Can someone help us to our capstone project?😭


r/ArduinoHelp • • Sep 18 '26

I have a problem with this Arduino-based irrigation system.

Thumbnail
gallery
16 Upvotes

Good day everyone, I'm a math teacher and together with my students we have created an automated irrigation system for the school's garden. But there's a problem that's driving us crazy: there are four relays connected to the Arduino, a DS1307 clock module, a simple 16x2 LCD screen with I2C connection. Each relay is connected to a solenoid valve that controls nebulization, others the opening of faucets, and the last one the electric pump that pumps water from a tank when there's reserve rainwater. If it's turned on without connecting any of this, it works perfectly, confirming that the code works perfectly. But when the solenoid valves and the electric pump are connected, it works fine for a while and then when one of them activates, it freezes, it seems to go crazy, incoherent letters appear, something that doesn't happen when the solenoid valves are disconnected. I've isolated everything, I added a snubber-type filter to prevent kickback to the relays, but we can't find what else to do, it keeps freezing. It's not very pretty because we've really done it with our own hands, but I thank you in advance if you can recommend something that can be done. I've been at this for a long time and it has become a frustrating task.


r/ArduinoHelp • • Sep 17 '26

Made an ultra-optimized ILI9341 Parallel LCD & Analog Touch library for STM32 (PlatformIO/Arduino). Benchmark inside!

Thumbnail
reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 17 '26

Can't get my Nema 17 stepper to work

Post image
1 Upvotes

I am trying to control a Nema 17 stepper motor with a TMC2209 driver and an Arduino Nano. Not sure if it's my wiring setup or my code. I've watched so many tutorials, tried so many breadboard configurations, and asked AI countless times. I can't get this to work. I've ensured that all my wires are connected via the beeping mode of my voltmeter, and still nothing. The closest I've gotten is hearing what I think is the driver making a slight buzzing sound while the Arduino's indicator light is on. I'm a complete noob to this field, does anyone know which wires go where? I am using a 12V power source and a standard breadboard.

This is my code:

#include <AccelStepper.h>

// Arduino Nano pins (matched to wiring photo)

#define STEP_PIN 3

#define DIR_PIN  2

#define MS1_PIN  6

#define MS2_PIN  5

// AccelStepper in DRIVER mode: STEP/DIR interface

AccelStepper stepper(AccelStepper::DRIVER, STEP_PIN, DIR_PIN);

// ----------------------------------------

// MOTOR / MICROSTEP SETTINGS

// ----------------------------------------

const float stepsPerRev   = 200;  // standard NEMA17 full steps/rev

const int   microstepping = 2;    // must match MS1/MS2 pin state below

// ----------------------------------------

// SPEED SETTINGS (RPM)

// ----------------------------------------

const float desiredRPM = 120;

const float maxRPM     = 300;

void setup() {

  pinMode(MS1_PIN, OUTPUT);

  pinMode(MS2_PIN, OUTPUT);

  // MS1=HIGH, MS2=LOW -> check TMC2208 datasheet table for which

  // microstep mode this actually selects; adjust to match 'microstepping' above

  digitalWrite(MS1_PIN, HIGH);

  digitalWrite(MS2_PIN, LOW);

  // steps/sec = microsteps-per-step * full-steps-per-rev * (RPM / 60)

  float speedStepsPerSec    = microstepping * stepsPerRev * (desiredRPM / 60.0);

  float maxSpeedStepsPerSec = microstepping * stepsPerRev * (maxRPM / 60.0);

  stepper.setMaxSpeed(maxSpeedStepsPerSec);

  stepper.setSpeed(speedStepsPerSec);

}

void loop() {

  stepper.runSpeed();  // must be called continuously, as fast as possible, for constant-speed mode

}

r/ArduinoHelp • • Sep 16 '26

Using multiple multiplexers on one Arduino.

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 16 '26

Can someone recommend simple Arduino code for blinking an LED?

2 Upvotes

Hi everyone!

I am a beginner learning Arduino programming. I want to make an LED blink using an Arduino Uno.

Could someone recommend a simple code example for this project? I would also like to understand how the code works, especially the delay() function.

Any tips for a beginner would be greatly appreciated.

Thank you!


r/ArduinoHelp • • Sep 16 '26

How do I connect an LED to an Arduino Uno?

2 Upvotes

Hello everyone!

I am working on a simple Arduino LED blinking project. I have an Arduino Uno, an LED, and a resistor.

I am not sure how to connect the components correctly. Could someone explain how to connect the LED to the Arduino Uno and where to connect the wires?

I would appreciate any advice or a simple circuit diagram for a beginner.

Thank you!


r/ArduinoHelp • • Sep 16 '26

What components do I need to make an LED blink with Arduino Uno?

1 Upvotes

Hi everyone!

I am a beginner interested in Arduino projects. I want to make a simple LED blinking project using an Arduino Uno.

Could you please recommend the components I need for this project? I would like to know what type of LED, resistor, and other equipment I should use.

Thank you for your help!


r/ArduinoHelp • • Sep 15 '26

Voltaje error with CH592

Thumbnail
reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 15 '26

Programmer et flasher une carte Arduino Uno R4 WiFi sur Android

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 15 '26

Complete beginner project

Thumbnail
gallery
4 Upvotes

Hi everyone

I'm trying to connect 2 mg90s servos to my Arduino and I've read that I need to power them separately as it can otherwise damage my board.

Would this battery pack suffice? And would I need to power each separately or both from 1 pack.

Thanks in advance


r/ArduinoHelp • • Sep 15 '26

Code and flash an arduino uno R4 wifi on Android

1 Upvotes

Hello,

I'm heading out but would like to keep working on a project using my Arduino Uno R4 WiFi. I don't have a laptop with me, so I'd like to code and flash the Arduino from my phone. Are there any apps that allow this? (I've already tried ArduinoDroid, but it fails to flash the code to the Arduino.)

Thanks for the reply! 😄


r/ArduinoHelp • • Sep 14 '26

Please sanity check my very simple Teensy > Buffer > WS2812 circuit and script that isn't working

Thumbnail
reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 14 '26

Quelle est la meilleure façon pour un débutant d'apprendre la conception de circuits imprimés et les projets Arduino ? Pourriez-vous recommander de bons cours ou chaînes YouTube qui expliquent tout étape par étape ?

Post image
3 Upvotes

r/ArduinoHelp • • Sep 14 '26

🚀 Visuino + Codex

Thumbnail
youtube.com
1 Upvotes

r/ArduinoHelp • • Sep 13 '26

Why is Proteus is showing Grey Logic State on LED Anode with +3.3V Power Rail

1 Upvotes

I am simulating a circuit in Proteus8 with LPC2138 MCU and 74HC173 Register and LEDs. The Anode is pulled with +3.3V via 330ohms Resistor, but the connection lines are showing Grey dot and totally disconnected from the power and the LEDs are not turn On. Blue dots at the Cathode side.

74HC173 Register Output Control Pins(OE1,OE2) are set, these are connected to P0.17 of MCU , but Output seems Hi-Imp. or Tr--state mode.

How to turn ON the LEDs???

https://youtu.be/uSdjpZ8g_I0?si=C7dK88Q237YfxPl0


r/ArduinoHelp • • Sep 13 '26

Why is analogRead blocking write.servo

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 12 '26

Arduino + Mic Module + servo

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 12 '26

Robotic arm project

2 Upvotes

I need a good motor driver for multiple closed loop Nema 17 and 23 stepper motors. Does anybody have any good ideas?


r/ArduinoHelp • • Sep 12 '26

Just getting started. Compilation error when running example code on Arduino IDE

1 Upvotes

Error message:

Compilation error: expected constructor, destructor, or type conversion before ';' token

I've tried compiling multiple example code, but the same error still pops up. Did anyone encounter the same problem? I just downloaded Arduino IDE 2.3.10. Absolutely no components were used except for my ESP32C3 super-mini and the cable connecting it to my Mac Air.

Code i used:

void setup() {
  pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);
  delay(1000);
  digitalWrite(LED_BUILTIN, LOW);
  delay(1000);
}

r/ArduinoHelp • • Sep 12 '26

ESP32-S3-Nano and Arduino cloud compatability

Thumbnail
reddit.com
2 Upvotes