Craig Moore - Electronic Objects Blog

Logo

Professor - Rob Duarte - Spring 2023

View the Project on GitHub CraigMoore3/ElecObjBlog

Lab 7 - Sensor Changes - February 07, 2023

Connecting the joystick to arduino, responding to changes in sensor data, writing with specific instead of constant serial data

Prep

Some notes from reviewing the lab doc:

Process

Excercise 1: Reading potentiometer and switch data from the joystick

Photo of joystick connected to arduino

Screenshot of serial monitor displaying an erroneous wall of data from the joystick

Screenshot of properly functioning serial monitor

Screenshot of properly functioning serial monitor, now displaying switch value

Excersise 2: Responding to Changes in the State of a Sensor

Screenshot of serial monitor displaying "Button state changed!"

Excercise 3: Analog Input Threshold

Screenshot of serial monitor accurately displaying threshold message

Conclusion