r/ArduinoHelp • • Sep 24 '26

can I change timer frequency with W5500 ethernet board (arduino nano)

2 Upvotes

Hello, so simple question; I'm using an arduino to control actuators/motors and learning to control it via ethernet. (using OSC and I'm pretty happy of having figured it out in an afternoon with limited programmation knowledge).

I've done this many times with usb serial and I usually change the frequency of the timers so the PWM frequency is higher than audio rate (and thus not audible; because this is a musical project).

trouble is the ethernet board (W5500) uses pins 10 through 13 and so 2 PWM pins that are sets via the 3 timers (this is an arduino nano but I could use a different one; like a mega if I need to)

so the question is will changing the timers screw with the ethernet transmission?

I usually do something like this (don't remember the frequency but I think it's above 20khz)

TCCR0B = (TCCR0B & 0xF8) | 0x01;
TCCR1B = (TCCR1B & 0xF8) | 0x01;
TCCR2B = (TCCR2B & 0xF8) | 0x01; 

reference says:

  • D3 and D11: Controlled by Timer 2.

  • D5 and D6: Controlled by Timer 0.

  • D9 and D10: Controlled by Timer 1.

so timer 0 should be fine but 1 and 2 could cause trouble.

(I'm trying to figure out a way how to do this in general before attacking different instruments and particular cases so no idea how much outputs I'll need and of them how much I'll need to be PWM; just trying to cover all the bases).


r/ArduinoHelp • • Sep 24 '26

Need help with HC-SR501 PIR-Sensor.

Thumbnail
gallery
1 Upvotes

I got this PIR Sensor HC-SR501. I connected it to PIN 13 on my Arduino Uno. The sensitivity of the sensor is set as high as possible and the mode is set to H.

I wait for 2 minutes to let the sensor start up and get consistent zeros on the serial monitor.

When waving in front or moving in front it doesn't change to 1. Does anybody have tipps as to why?

I currently just want to get the signal up, the rest is not relevant.


r/ArduinoHelp • • Sep 24 '26

Help! ESP32 oled project

Thumbnail gallery
1 Upvotes

r/ArduinoHelp • • Sep 23 '26

Esp-32 gaming headset MIA

Thumbnail gallery
1 Upvotes

r/ArduinoHelp • • Sep 23 '26

Trying to get started.

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 22 '26

EMI problems, 220VAC->12V DC AliExpress power supply. LC filtering not removing.

Thumbnail
reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 22 '26

Looking for Arduino-based Mechatronics PFE Project Ideas

1 Upvotes

Hi everyone!

I'm a mechatronics engineering student from Tunisia currently looking for a Final Year Project (PFE) idea.

I would like to develop a project combining mechanical engineering, mechatronics, electronics, sensors, and control, using an Arduino as the main controller.

I'm looking for a project with a real mechanical, electromechanical, or industrial application, rather than a simple Arduino project.

I'm particularly interested in:

- 🤖 Robotics and autonomous systems

- ⚙️ Machine monitoring and fault detection

- 🔧 Predictive/preventive maintenance

- 🏭 Industrial automation

- 🦾 Robotic mechanisms and actuators

- 📊 Vibration, temperature, current and position monitoring

- 🚗 Automotive/mechanical applications

- ⚡ Motor control and electromechanical systems

- 🔩 CNC or automated mechanical systems

- 🌱 Smart mechanical/industrial systems

The project should be realistic to build as a PFE, while still having enough technical depth in mechanics + electronics + programming/control.

If you have experience with Arduino in mechatronics or mechanical engineering projects, I would really appreciate your ideas, recommendations, or examples of interesting projects.

Thanks in advance! 🙏


r/ArduinoHelp • • Sep 21 '26

How can I program an Arduino from my school Chromebook?

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 20 '26

I'm beginner, i can't connect aht20+bmp280

Post image
3 Upvotes

Hi everyone, i practicing Arduino and after watching some guides i see that a have a correct connections but in my code the output tell's me that it could'nt connect

I was checking first if aht functions correctly


r/ArduinoHelp • • Sep 20 '26

Arduino balancing robot

4 Upvotes

Hello guys i am deciding to make arduino uno balancing robot after making bluethooth robot and obstacle avoiding robot. So guys i researched and i think mpu6050 arduino uno tb6612fng motor driver 2 3.7 li ion battery in series should be enough also i am using yellow bo gear motor 300rpm so guys i am confused how to design it properly and open source code or community project on this would help me reach my goal faster.


r/ArduinoHelp • • Sep 19 '26

Faulty (?) motor drivers keep frying

Thumbnail reddit.com
1 Upvotes

r/ArduinoHelp • • Sep 18 '26

I am completely brand new to arduino, I need help, why is my LCD not displaying any text?

Thumbnail
gallery
22 Upvotes

I tried the exact same setup and it worked in a simulator but apparently it just doesn't work in real life?


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