Now it's time to plug my stepper motor onthe CNC shield.
I read this tip: "Do NOT connect or disconnect a motor while the driver is energized. This will cause permanent damage." -- Sparkfun
As per the specification of my 42BYGH47401A stepper motor, the wiring of the 4 leads are ordered as:
As per http://www.selene.co/Articles/WiringConfigurations.aspx, "Bipolar motors are the simplest of the configurations presented here. Bipolar motors have 4 leads and two windings. Only one configuration is possible with a bipolar motor, as shown to the right. What is important for a bipolar motor configuration is the polarity of each winding. The windings must be symmetric (A+ and B+ winding leads must be connected to the same end of the winding."
So I decided to wire it as
So I am now ready for my first test:
In the Arduino IDE, I open a serial monitor (under Tools / Serial monitor):
It means "move x-axis by 4 mm at a feed rate of 25 mm per minute". And it works !!
Now the same in video: yeah !! :-)
As a recap, this video is also a pretty good introduction by John to getting started with Arduino CNC Shield.
I read this tip: "Do NOT connect or disconnect a motor while the driver is energized. This will cause permanent damage." -- Sparkfun
As per the specification of my 42BYGH47401A stepper motor, the wiring of the 4 leads are ordered as:
- RED Phase: A
- BLUE Phase: A Return
- GREEN Phase: B
- BLACK Phase: B Return
As per http://www.selene.co/Articles/WiringConfigurations.aspx, "Bipolar motors are the simplest of the configurations presented here. Bipolar motors have 4 leads and two windings. Only one configuration is possible with a bipolar motor, as shown to the right. What is important for a bipolar motor configuration is the polarity of each winding. The windings must be symmetric (A+ and B+ winding leads must be connected to the same end of the winding."
So I decided to wire it as
- B2: black wire
- B1: green wire
- A1: red wire
- A2: blue wire
So I am now ready for my first test:
- Switch on the main alim
- Plug in the USB cable into the Arduino
In the Arduino IDE, I open a serial monitor (under Tools / Serial monitor):
- I type in $$ + send, to check that I am properly connected: I get my default parameter setup
- Now I can type in my first G-Code command:
It means "move x-axis by 4 mm at a feed rate of 25 mm per minute". And it works !!
Now the same in video: yeah !! :-)
As a recap, this video is also a pretty good introduction by John to getting started with Arduino CNC Shield.
No comments:
Post a Comment