Need a method to de...
 
Notifications
Clear all

Need a method to determine walked distance.

5 Posts
3 Users
4 Likes
310 Views
ALHAM
(@alham)
Active Member
Joined: 11 months ago
Posts: 7
Topic starter  

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!


   
Inst-Tech reacted
Quote
Inq
 Inq
(@inq)
Noble Member
Joined: 8 months ago
Posts: 959
 

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.

image

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, Access Point 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


   
ALHAM and Inst-Tech reacted
ReplyQuote
Inst-Tech
(@inst-tech)
Reputable Member
Joined: 1 year ago
Posts: 333
 
Posted by: @alham

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


   
ALHAM reacted
ReplyQuote
ALHAM
(@alham)
Active Member
Joined: 11 months ago
Posts: 7
Topic starter  
Posted by: @inq

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... 😍 ❤️ ❤️ 

 
 

 

 


   
ReplyQuote
ALHAM
(@alham)
Active Member
Joined: 11 months ago
Posts: 7
Topic starter  

@inst-tech 

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 😍 ❤️ 


   
ReplyQuote