[Arduino] Arduino Pig Head Notes

Source: Internet
Author: User

1. Stepper Motor Drive

Only today to find out .... Originally in the different stepper motor drive module inside, the cycle clock is not the same ....

Stepper Motor Drive module and circuit configuration:

The main parts of the driver code:

int sp_param = 16383;

Digitalwrite (motorstp_a, high);
Delaymicroseconds (Sp_param);

Digitalwrite (motorstp_a, low);
Delaymicroseconds (Sp_param);

(The top 16383 is the maximum number of unsigned int, or 16ms, or the maximum value of the Delaymicroseconds input parameter)

Can be in my experiment, to some of the drive board, with the theory of the slowest value also turn whining, very fast. But for some normal drive plates, the turn is slow (as expected)

"Not finish the treatment, busy this a burst of research on the Stepper Motor Drive board principle, quite interesting ... Yes, I'm a vegetable chicken. 】

[Arduino] Arduino Pig Head Notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.