NodeMCU step rate

771 views
Skip to first unread message

Miguel Sánchez

unread,
Sep 26, 2016, 1:51:35 PM9/26/16
to accelstepper
Hi all,

I am new to this group. I was testing how far NodeMCU (ESP8266) processor could go with AccelStepper at 160MHz. It seems it can reach the 37Khz of step frequency, which is amazing.


I have selected 1 microsecond pulse-width time for that, that seems to work nicely with my DRV8825 board. 


I am planning to use if with a CNC shield and a Wemos D1 (Arduino-like board that features a ESP-12E) for controlling a couple of steppers. Of course if using the built-in wifi I would expect any sort of timing artifacts.


And in case that you wonder, yes, AccelStepper library runs unchanged on the ESP (using Arduino IDE). 


It is interesting to note that from 20.000 steps/second on the real step frequency lags behind the programmed value, till it reaches what it seems the 37Khz limit. 


Cheers,


misan





Mike McCauley

unread,
Sep 26, 2016, 2:34:36 PM9/26/16
to accels...@googlegroups.com
Thanks for the report 
Cheers

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "accelstepper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to accelstepper...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mikolaj Kostuch

unread,
Mar 1, 2017, 6:08:51 PM3/1/17
to accelstepper
Why stepper motor doesn't run with my ESP8266  and AccelStepper 
I use commands 

stepper.moveTo(6600);
stepper.run();
With arduino uno, mega and due work fine
any idea ?

Mike McCauley

unread,
Mar 1, 2017, 8:02:19 PM3/1/17
to accels...@googlegroups.com
You will need to post your code before anyone can tell you the problem.

Perhaps you should read:

http://en.wikipedia.org/wiki/Wikipedia:Reference_desk/
How_to_ask_a_software_question
http://catb.org/~esr/faqs/smart-questions.html
http://www.chiark.greenend.org.uk/~shgtatham/bugs.html

Cheers.

On Wednesday, 1 March 2017 3:08:50 PM AEST Mikolaj Kostuch wrote:
> Why stepper motor doesn't run with my ESP8266 and AccelStepper
> I use commands
>
> stepper.moveTo(6600);
> stepper.run();
> With arduino uno, mega and due work fine
> any idea ?
>
>
> W dniu poniedziałek, 26 września 2016 19:51:35 UTC+2 użytkownik Miguel
>
> Sánchez napisał:
> > Hi all,
> >
> > I am new to this group. I was testing how far NodeMCU (ESP8266) processor
> > could go with AccelStepper at 160MHz. It seems it can reach the 37Khz of
> > step frequency, which is amazing.
> >
> >
> > <https://lh3.googleusercontent.com/-H5ep2eSrbsw/V-lem1FR9PI/AAAAAAAApto/o2
> > Cq-t5U-zwtKyijzTiCGpNplf1xoCgvACLcB/s1600/NewFile1.png>
> >
> >
> > I have selected 1 microsecond pulse-width time for that, that seems to
> > work nicely with my DRV8825 board.
> >
> >
> > I am planning to use if with a CNC shield and a Wemos D1 (Arduino-like
> > board that features a ESP-12E) for controlling a couple of steppers. Of
> > course if using the built-in wifi I would expect any sort of timing
> > artifacts.
> >
> >
> > And in case that you wonder, yes, AccelStepper library runs unchanged on
> > the ESP (using Arduino IDE).
> >
> >
> > It is interesting to note that from 20.000 steps/second on the real step
> > frequency lags behind the programmed value, till it reaches what it seems
> > the 37Khz limit.
> >
> >
> > Cheers,
> >
> >
> > misan


--
Mike McCauley VK4AMM mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com
Phone +61 7 5598-7474

Reply all
Reply to author
Forward
0 new messages