![]() In Blue are shown the pins connected in the previous step. Picture 4 shows in Red where are the Ground, Digital 6 and Digital 7 pins of the Arduino Nano.Connect the Male ends of the 3 Power wires ( Red wires ) - from the Rotary Encoder Module, the Stepper Motor Driver, and the Arduino together as example with the help of a Breadboard ( Picture 3 ) - In my case I used a small Breadboard.Connect the Direction wire ( Purple wire ) to Digital pin 7 of the Arduino board( Picture 2 ).Connect the Clock wire ( Gray wire ) to Digital pin 6 of the Arduino board( Picture 2 ).Connect the other end of the Ground wire ( Black wire ) to Ground pin of the Arduino board( Picture 2 ).Every click moves the motor a set distance. Instead I want the rotary encoder to move the motor a set angle on the step of the encoder then stop. Connect the other end of the Power wire ( Red wire ) to the 5V power pin of the Arduino board( Picture 2 ) The main issue I am having is the rotary encoders are giving a constant movement in the motors in between steps of the 12 step encoder and stopping on the complete step.Connect Ground ( Black wire ), Direction ( Purtle wire ), and Clock ( Gray wire ) to the Rotary Encoder Module ( Picture 1 ).Connect the Female end of a Female-Male Power ( Red wire ) to the power pin of the Rotary Encoder Module ( Picture 1 ).Step 3: Connect the Rotary Encoder to the Arduino Picture 5 shows where are the Ground, 5V Power, and Digital 2 to Digital 5 pins of the Arduino Nano.Connect the IN4 wire ( Orange wire ) to the Digital pin 5 of the Arduino board ( Picture 4 ).Connect the IN3 wire ( Yellow wire ) to the Digital pin 4 of the Arduino board ( Picture 4 ).Connect the IN2 wire ( Green wire ) to the Digital pin 3 of the Arduino board ( Picture 4 ).Connect the IN1 wire ( Blue wire ) to the Digital pin 2 of the Arduino board ( Picture 4 ).Connect the other end of the Ground wire( Black wire ) to Ground pin of the Arduino board ( Picture 3 ).Connect the Female End of another Female-Male Power wire ( Red wire ) to the 5V power pin of the Arduino board ( Picture 3 ).Connect the Female end of a Female-Male Power ( Red wire ), to the Power(+) pin of the Stepper Driver Module ( Picture 2 ).Connect Female-Female Ground ( Black wire ), to the Ground(-) pin the Stepper Driver Module ( Picture 2 ). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |