UMSAE-Formula-Electric / SCU

Sensor Control Unit
0 stars 0 forks source link

Implement Rotary Encoder #33

Open Sedkian opened 9 months ago

Sedkian commented 9 months ago

We have a Heidenhain ROC 413 encoder that we want to integrate to the SCU. I have attached all the system documents/ manuals for the encoder to this issue. I have also attached an image of the encoder itself. It looks like there are some decent work to be done here.

This task includes:

A rotary encoder module is an electromechanical device that converts the position of the shaft angle to digital data. It consists of a circular plate with holes and two channels, A and B. By rotating the circular plate, when A and B channels pass the holes, a connection between that channel and a common base is established. These interruptions cause a square wave in the output channel. By counting these pulses, we can find the amount of rotation. Channels A and B have a 90-degree phase difference, so you can also find the rotation direction depending on which channel pulse is ahead.

The most common type of rotary encoder module has 5 pins: CLK, DT, SW, VCC, and GND1. CLK and DT are the A and B channels respectively. SW is a push button on the module. Check the manuals attached for more information.

Rotary encoder modules are used in electric vehicles (EVs) for various purposes. They are commonly employed to sense rotational motion related to the motor shaft and provide feedback to the control system. Depending on the type of encoder used, they can provide information about change in position, absolute position, and even the speed of the shaft.

Rotary encoders are also used to measure the rotation of a vehicle’s wheel or axle. They can help in applications such as speed control feedback in DC motors, where they provide precise speed control by measuring the speed of the rotor and providing closed-loop feedback to the drive.

For more detailed information about rotary position sensing in electric vehicles, you may find this article from EDN Design helpful.

PR_Cables_and_Connectors_ID1206103_en.pdf PR_Interfaces_ID1078628_en.pdf PR_Rotary_Encoders_ID349529_en.pdf ROC_4xx_ROQ_4xx_Mounting.pdf Image