Skip to content

kevin866/Sensor_Modules

Repository files navigation

Arduino Sensor Modules Collection

This repository contains Arduino code for a variety of sensor modules used in the ops course. Each folder includes code for each sensor module for replication.

Table of Contents


Distance Sensor Module

This module demonstrates how to read distance data using various types of sensors:

  • Ultrasonic Sensor Component: SparkFun Ultrasonic Sensor Uses sound waves to measure the distance to an object.

  • Infrared Sensor Component: GP2Y0A41SK0F Short-range analog IR sensor ideal for precise detection of nearby objects.

  • Micro LiDAR Module Component: TFMini Plus A compact time-of-flight distance sensor for higher accuracy and longer range.


GPS & IMU Sensor Module

This module combines GPS positioning with motion and orientation sensing.


Line Sensor Module

Used for line-following robots and navigation over predefined paths.

  • Line Follower Array Component: SparkFun Line Follower Array 8-channel reflectance sensor array to detect line position with high precision.

  • Industrial Scale Line Follower Component: Industrial Grade Line Sensor (Insert your specific model here.) Designed for robust line tracking in factory environments.


Environment Sensor Module

Collects environmental data and detects physical interactions.

  • Gas, Temperature, Humidity, Pressure Sensor Component: Adafruit BME688 A powerful sensor for collecting air quality, gas levels, temperature, humidity, and pressure data.

  • Collision Detection Component: Roller Microswitch Simple mechanical switch for detecting contact/collisions with objects.


Camera Module

Coming Soon Includes Arduino-based interface for image or video capture. (Details and code will be added.)


Lidar Module

Coming Soon Standalone Lidar module with real-time 2D/3D scanning support. (Details and code will be added.)


Encoders

This module demonstrates different ways to measure rotational position using incremental, absolute, and analog position sensors.

  • Quadrature Incremental Encoder
    Component: Rotary Encoder 1024 P/R Quadrature
    Outputs two digital signals, Channel A and Channel B, that are offset from each other. The Arduino reads these signals to determine rotation direction and count position changes. This encoder is useful for measuring relative motion, wheel rotation, and speed feedback.

  • Absolute SPI Encoder
    Component: Same Sky AMT22
    Uses SPI communication to report the shaft’s absolute angular position. Unlike an incremental encoder, it can provide the current position immediately after startup without needing to return to a home position.

  • Multi-Turn Potentiometer
    Component: Bourns 3590S-2-201L
    A 10-turn analog position sensor that changes resistance as the shaft rotates. The Arduino reads the wiper voltage through an analog input and maps it to position. It is simple to use and useful for manual position feedback over a limited range.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages