Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with Uno R4 Minima and WIFI #27

Open
MrYsLab opened this issue Jul 13, 2023 · 2 comments
Open

Incompatible with Uno R4 Minima and WIFI #27

MrYsLab opened this issue Jul 13, 2023 · 2 comments

Comments

@MrYsLab
Copy link

MrYsLab commented Jul 13, 2023

I tested the following sketch using a TB6600 on the Arduino UNO R3, R4 Minima, and R4 WIFI. The R3 works perfectly, but the R4 boards do not. The motor attempts to turn but simply stutters. If I instantiate a WiFiServer in the sketch for the R4 WIFI, the motor still stutters, but it does so at a much slower rate than when the WiFIServer is not instantiated.

// Bounce.pde
// -*- mode: C++ -*-
//
// Make a single stepper bounce from one limit to another
//
// Copyright (C) 2012 Mike McCauley
// $Id: Random.pde,v 1.1 2011/01/05 01:51:01 mikem Exp mikem $

#include <AccelStepper.h>
#define dirPin 9
#define stepPin 8
#define motorInterfaceType 1

// Create a new instance of the AccelStepper class:
AccelStepper stepper = AccelStepper(motorInterfaceType, stepPin, dirPin);

void setup()
{  
  // Change these to suit your stepper if you want
  stepper.setMaxSpeed(900);
  stepper.setAcceleration(500);
  stepper.moveTo(1500);
}

void loop()
{
    // If at the end of travel go to the other end
    if (stepper.distanceToGo() == 0)
      stepper.moveTo(-stepper.currentPosition());

    stepper.run();
}
@rxelizondo
Copy link

I offer no fix for this but just wanted to voice out that I too have similar issues with the AccelStepper running under Arduino R4 Wifi.. In my case, I have a program that runs perfectly fine under Arduino R3 but acts erratically when the exact same program runs under the new Arduino R4 Wifi. In my case, I am using DM542T drivers to control the steppers motors.

@rvanderwerf
Copy link

+1 same here. It makes weird noises and control is erratic!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants