Introduction: Arduino Motor Control With Rotary Encoder

Picture of Arduino Motor Control With Rotary Encoder

Hi, today we are going to control the motor with rotary encoder. You know Rotary Encoder is a very hard part of Arduino. Most of people can confuse codes. We will give a code and you will learn this part.

Step 1: Connections

Picture of Connections

For Rotary Encoder;

PinCLK=2;

PinDT=3;

PinSW=4;

For l298n;

motor pin1 = 10;

motor pin2 = 11;

We will use only one channel of l298n.

Step 2: Arduino Code;

Picture of Arduino Code;

You can get code from this link;

https://drive.google.com/open?id=0B6EUM2JQFzOhSm1f...

You should organize the variables.

Comments

About This Instructable

1,601views

19favorites

License:

Bio: BIG THINKS, BIG THINGS! FOLLOW US ON YOUTUBE: https://www.youtube.com/channel/UCODcdPwhBerlNMSHB_ATEow
More by ensarlevent:SMART MINI GREENHOUSEBayern München Spinning WhellTURN ON LIGHTS WITH RFID CARD
Add instructable to: