Interfacing Optocoupler motor speed sensor with raspberry pi

Before you begin reading this blog, if you have not checked my previous blog about coupling the IMU with raspberry pi, then read the blog.

Speed Sensor for raspberry pi.
Acrylic disk a.k.a. encoder
Encoder in between the sensor.
Console output gives the motor rpm.
Photo by NeONBRAND on Unsplash
Photo by Tyler Nix on Unsplash

Autonomous Vehicles Algorithm Developer