exercise_sheets: [ ./exercise_sheets/Exercise Sheet 6 - Digital Electonics 1.pdf, ./exercise_sheets/Exercise Sheet 7 - Digital Electonics 2.pdf ]
---
<details>
<summary>
# Errata
</summary>
## Lecture Slides 5, p56
1. The graph showing values of $O_1$, $O_2$, and $O_3$ are incorrect:
- $O_3$ should stay low throughout
- $O_2$ should stay low until after the fourth pulse
- $O_1$ should be low until the third pulse, high between third and fourth, and then go back to low
2. There is no mention that $O_4$ is the most significant bit and $O_1$ the least.
## Lecture Slides 5, p62-91
1. The title should be *Digital-to-Analog Converter (DAC)*
</details>
# Shaft Encoder
A shaft encoder can provide angular position, angular speed, and direction.
![A simple shaft encoder which can only detect speed by using a light source and a light dependent resistor.](./images/vimscrot-2023-03-02T11:20:42,254588604+00:00.png)
![A motor position encoder provides the angle of the shaft, allowing the angular velocity to be calculated.](./images/vimscrot-2023-03-02T11:21:28,818484079+00:00.png)
![An incremental shaft encoder has a pulse Z which gives speed and outputs A and B can be used to detect the direction of rotation as the pulses are phase shited by a quarter cycle.](./images/vimscrot-2023-03-02T11:23:18,428027299+00:00.png)
# Memory in Computers
An OR gate can be used to create a *latch* which will stay high until it is reset:
![A shift register composed of 4 flip flops. $O_4$ is the most significant bit and $O_1$ the least.](./images/vimscrot-2023-03-02T12:00:50,868501744+00:00.png)