Figure 1: LED blinks while button is kept pressed.
Description:
- (When program initialised, motor changes from turning to stop.)
- Servo motor starts turning when button is pressed. Speed increases gradually to final speed. Maintain rotation until new button press.
- If button is pressed when motor is turning, motor decreases speed gradually until it stops and waits for new button press to start.

Figure 2: Set up of assignment 2.

Figure 3: Set up of assignment 3, 100uF capacitor between wires and temperature sensor.

Figure 4: Example output of assignment 3.

Figure 5: Set up of assignment 4.

Figure 6: Example output of assignment 4.
TC74A2-5.0VAT Datasheet MCP3201-CI/P Datasheet

Figure 7: Set up of assignment 5.

Figure 8: Example output of assignment 5.