The rotary encoder we are using has a button inside the rotary encoder that activates if the top of the lever is pressed. SW stands for the switch pin of the rotary encoder. VCC is the power supply pin of the Rotary Encoder Module that can be connected to 5V or 3.3V of the supply. GND is the ground pin of the Rotary Encoder Module and it should be connected to the ground pin of the Arduino. The Pinout of a Rotary Encoder Module is shown below: All the pins of this sensor module are digital, except VCC and Ground. The Rotary Encoder Module has 5 pins those are GND, +(VCC), SW(Switch), DT, and CLK. So without further ado let's get right into it. For this article, we are going to use the incremental one and will let you know all the details about it. There are two types of rotary encoder: one is an absolute encoder and another is an incremental encoder. This encoder is constructed with mechanical parts thus sensors are very robust, and can be used in many applications like robots, computer mice, CNC machines, and printers. This type of sensor or module generates an electrical signal based on the movement and direction of the rotary shaft. In Blue are shown the pins connected in the previous step.A rotary encoder is a type of electromechanical position sensor that can be used to identify the angular position of the rotary shaft.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |