Assignment 4: Libraries_Servo!!

Due Date: February 14th, 2022

Back to Project Page

Overview

The prompt is to create a schematic, circuit, and code that uses a part from your kit that requires a library (e.g. the remote control, capacitive touch, or the servo motor), and includes both an input part (sensor, e.g. capacitive touch) and an output part (actuator, e.g. servo).

In this assignment, I choose the Servo library. The purpose is to move the joystick (corresponding its x and y position) as an input to control the motor as output.

The also calibrates the input value from 0~1023 to 0~90 degrees.

FINAL GIF

Process

CIRCUIT

SCHEMATIC, CALCULATION

The below two components are connected in parallel.

ARDUINO CODE

Back to Project Page