for my project I'm creating a car using 5v motors.
in that I want to get the distance of car traveled and after reached my desired distance I want to take a turn (for that I can use a gyroscope)
so I want a method to measure the distance of car walked (without ultrasonic sensors,IR sensors, or any lasers) If there is any thing I can connect to the motor and take readings it would be great 🙂 I intended to use a esp32 for this project
thank you!
An encoder is what you're need to look into. They make electronic ones that can be attached to the motor shaft and give you a count of turns. If money is more of an issue, you can take apart an old computer mouse if you have one laying around. It must be one of the old ones that use a ball instead of an LED. In those you can find all the parts and mainly... the concept of an encoder. Note the wheel, emitter and receiver gives you the basic concept... or you can actually use those parts in your project.
You then do the Math for how many times each wheel moves to get distance and change in directions. The Math is strait forward, but tedious.
Depending on the accuracy you're looking for, the results are only as accurate as your definitions of wheel circumference. It also won't take into account any wheel slippage on the ground.
Hope this gets you started.
VBR,
Inq
3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide
for my project I'm creating a car using 5v motors.
in that I want to get the distance of car traveled and after reached my desired distance I want to take a turn (for that I can use a gyroscope)
so I want a method to measure the distance of car walked (without ultrasonic sensors,IR sensors, or any lasers) If there is any thing I can connect to the motor and take readings it would be great 🙂 I intended to use a esp32 for this project
thank you!
Hi @alham, Indeed, I agree with @inq that using encoders are the way to go for your projects specifications.
I've included a link to some videos that demonstrate how to use and program your mpu to use encoders.
https://forum.dronebotworkshop.com/user-robot-projects/henry-ix-a-fully-autonomous-robot-platform/
looking forward to seeing how your project shakes out..
regards,
LouisR
LouisR
An encoder is what you're need to look into
You mean a one like this
Right?
That's kinda working 🤩 I will give a try on that 😎
Thank you very much... 😍 ❤️ ❤️
Yeah! that's awesome project but it's pretty hard to understand when I got a free time I will take a look on that 😊
Thank you for helping 😍 ❤️