SEAME-pt / HotWheels-Cluster

Instrument Cluster repository of the SEA:ME Project 2024/2025 for Team01 (HotWheels)
0 stars 0 forks source link

Research speed sensor details #27

Closed reomelo closed 1 week ago

reomelo commented 1 week ago

Description: Study about the LM 393 speed sensor. What signal does it use? How do we connect it to the ARDUINO?


Definition of done: This issue is considered as done when the above questions are clearly answered

Fle-bihh commented 1 week ago

Speed Sensor Documentation

Voltage: 3.3V ~ 5V
Usage: Dynamo speed detecting, pulse counting, etc.
Output:
    Digital switch output (0 and 1)
    Analog output for sensitivity

Functionality:

Operates using infrared light emitted from the LED and received by the photo-transitor.
As the wheel spins, the light beam is alternately blocked and unblocked:
    Block → Unblock = Pulse

Connection to Arduino:

VCC → 5V pin on Arduino board
GND → GND
OUT → Digital input pin

Example: Calculating Speed

Measure the number of pulses over a fixed time period (e.g., 1 second).
Determine the distance covered per pulse (e.g., based on the wheel circumference).
Calculate speed using the formula:

Speed=Time (s)Pulses per second×Distance per pulse​

Fle-bihh commented 1 week ago

Useful link for setup with Arduino : https://www.brainy-bits.com/post/how-to-use-a-speed-sensor-with-arduino

reomelo commented 1 week ago

Simple explanation with an extra link for setup. Good job